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
033ac5b42cb933ad3ddd01f9391bd47273e14726
8,611
py
Python
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
106
2019-12-06T09:02:58.000Z
2020-09-09T07:12:21.000Z
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
null
null
null
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
15
2019-12-09T05:44:28.000Z
2020-09-04T03:43:56.000Z
import time import torch from torch import nn from transformers import GPT2Tokenizer, GPT2LMHeadModel, GPT2Config import lightseq.inference as lsi from lightseq.training.ops.pytorch.quantization import ( qat_mode, QuantLinear, TensorQuantizer, weight_quant_config, ) from lightseq.training.ops.pytorch.t...
34.170635
152
0.676344
1,118
8,611
4.929338
0.205725
0.052259
0.025404
0.013791
0.405915
0.335329
0.306659
0.259481
0.24569
0.24569
0
0.007518
0.196725
8,611
251
153
34.306773
0.789215
0.045291
0
0.243655
0
0
0.130022
0.03214
0
0
0
0
0
1
0.076142
false
0
0.040609
0
0.15736
0.147208
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
033c4e6e47b886b0874ca7cd97804e2f650bcb80
623
py
Python
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
""" 1. Clarification 2. Possible solutions - Cheat - Binary search II 3. Coding 4. Tests """ # T=O(n), S=O(1) class Solution: def findMin(self, nums: List[int]) -> int: if not nums: return int(-inf) return min(nums) # T=O(lgn), S=O(1) class Solution: def findMin(self, nums: List[int]...
20.766667
46
0.507223
86
623
3.674419
0.44186
0.085443
0.018987
0.050633
0.411392
0.411392
0.411392
0.411392
0.411392
0.411392
0
0.024938
0.35634
623
29
47
21.482759
0.763092
0.200642
0
0.4
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
033cec1f9ccce81f5733fb9f495e2a48d763be85
1,766
py
Python
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
18
2018-01-03T23:07:26.000Z
2021-12-30T11:44:43.000Z
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
null
null
null
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
6
2018-08-09T05:17:13.000Z
2020-05-07T09:45:33.000Z
import time from unittest import TestCase import grpc_testing from grpc import StatusCode from grpc.framework.foundation import logging_pool from cowsay_client import CowsayClient from cowsay_pb2 import DESCRIPTOR as COWSAY_DESCRIPTOR, QuoteRequest, QuoteResponse from cowsay_pb2_grpc import CowsayStub target_service...
36.791667
116
0.725934
215
1,766
5.637209
0.367442
0.039604
0.049505
0.064356
0.216997
0.168317
0.113861
0.113861
0.113861
0.113861
0
0.003427
0.173839
1,766
47
117
37.574468
0.827279
0
0
0
0
0
0.025481
0
0
0
0
0
0.090909
1
0.121212
false
0
0.242424
0
0.424242
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
03401c816f8f4430f92c4b87cef1da6e317a54e9
5,140
py
Python
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
20
2017-11-02T13:36:16.000Z
2021-07-23T12:44:28.000Z
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
30
2018-02-22T18:25:02.000Z
2019-11-06T15:03:34.000Z
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
9
2018-04-26T22:12:08.000Z
2020-08-06T01:04:54.000Z
#! /usr/bin/env python3 import sys import math import argparse as ap from json import dumps as jdumps from random import choices class LevelNotFoundException(Exception): pass def checkLevel(taxon, level): if level == 'species': return ('s__' in taxon) and ('t__' not in taxon) elif level == 'gen...
26.091371
78
0.510506
557
5,140
4.642729
0.281867
0.030936
0.024749
0.037123
0.200309
0.153906
0.122196
0.122196
0.122196
0.083527
0
0.015834
0.361089
5,140
196
79
26.22449
0.77162
0.013619
0
0.245399
0
0
0.074191
0
0
0
0
0
0.01227
1
0.092025
false
0.006135
0.030675
0.006135
0.220859
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
0343d8a19a30189bafdda72fb63bd75d656dfc89
1,061
py
Python
image_collection/migrations/0004_auto_20160113_0458.py
bitmazk/django-image-collection
73b05ff825d74bdab64609b531d5305f9332b702
[ "MIT" ]
null
null
null
image_collection/migrations/0004_auto_20160113_0458.py
bitmazk/django-image-collection
73b05ff825d74bdab64609b531d5305f9332b702
[ "MIT" ]
null
null
null
image_collection/migrations/0004_auto_20160113_0458.py
bitmazk/django-image-collection
73b05ff825d74bdab64609b531d5305f9332b702
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import image_collection.models class Migration(migrations.Migration): dependencies = [ ('image_collection', '0003_auto_20160113_0445'), ] operations = [ migrations.RemoveField( ...
33.15625
193
0.629595
115
1,061
5.617391
0.504348
0.069659
0.088235
0.106811
0.334365
0.334365
0.108359
0.108359
0
0
0
0.021465
0.253534
1,061
31
194
34.225806
0.794192
0.019793
0
0.4
0
0.08
0.282274
0.022158
0
0
0
0
0
1
0
false
0
0.12
0
0.24
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
0344447ad9ea2ba9e5f78647ef0e90f1b7786110
7,913
py
Python
hw1/hollygrimm_behavior_cloner.py
andyk/homework
6f31240e7b16bb94992a87fc764839591bd034af
[ "MIT" ]
null
null
null
hw1/hollygrimm_behavior_cloner.py
andyk/homework
6f31240e7b16bb94992a87fc764839591bd034af
[ "MIT" ]
null
null
null
hw1/hollygrimm_behavior_cloner.py
andyk/homework
6f31240e7b16bb94992a87fc764839591bd034af
[ "MIT" ]
null
null
null
# Copying Holly Grimm's solution https://github.com/hollygrimm/cs294-homework/blob/master/hw1/bc.py # Copy and pasting and merging it into a copy of my behavior_cloner.py code. import argparse import pickle import os import sys import tensorflow.compat.v1 as tf import numpy as np from sklearn.model_selection import tr...
41.429319
121
0.647289
1,078
7,913
4.5
0.237477
0.024737
0.022263
0.00907
0.248196
0.189239
0.105958
0.093589
0.06308
0.042053
0
0.01433
0.232782
7,913
190
122
41.647368
0.784714
0.248957
0
0
0
0
0.081712
0
0
0
0
0
0
1
0.035088
false
0
0.114035
0
0.184211
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
03470a7c37dd728524a1ea76f0cbdccac1e546fa
4,397
py
Python
tree/generate.py
xi-studio/DiscreteNN
85468da14bddfe4cbe2e07071454cdbc52ef915f
[ "MIT" ]
1
2019-08-15T09:43:21.000Z
2019-08-15T09:43:21.000Z
tree/generate.py
xi-studio/DiscreteNN
85468da14bddfe4cbe2e07071454cdbc52ef915f
[ "MIT" ]
null
null
null
tree/generate.py
xi-studio/DiscreteNN
85468da14bddfe4cbe2e07071454cdbc52ef915f
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.utils.data from torch import nn, optim from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.utils import save_image import numpy as np parser = argparse.ArgumentParser(description='VAE MNIST ...
28.185897
83
0.56766
611
4,397
3.9509
0.271686
0.03314
0.035211
0.031069
0.314416
0.299917
0.191384
0.168186
0.168186
0.052196
0
0.040947
0.289061
4,397
155
84
28.367742
0.731286
0.053218
0
0.091743
0
0
0.08639
0.006757
0
0
0
0
0
1
0.100917
false
0
0.082569
0
0.275229
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
0347e93cbe7693fc7a1ee576744efea58d5d82da
4,760
py
Python
wepy/io/yahoo.py
Jul13/wepy
3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7
[ "Apache-2.0" ]
null
null
null
wepy/io/yahoo.py
Jul13/wepy
3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7
[ "Apache-2.0" ]
null
null
null
wepy/io/yahoo.py
Jul13/wepy
3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7
[ "Apache-2.0" ]
null
null
null
# Author: Gheorghe Postelnicu from datetime import date import pandas as pd from io import BytesIO from urllib.request import urlopen class Yahoo(object): # Taken from http://www.jarloo.com/yahoo_finance/ yahoo_query_params = { 'ticker': 's', 'average_daily_volume': 'a2', 'dividend_yie...
36.335878
112
0.563655
602
4,760
4.225914
0.302326
0.04717
0.035377
0.033019
0.216195
0.188679
0.154874
0.142689
0.120676
0.120676
0
0.013674
0.308613
4,760
130
113
36.615385
0.759344
0.157563
0
0.05814
0
0
0.101762
0
0
0
0
0
0
1
0.116279
false
0
0.046512
0.011628
0.302326
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
034a4ded8103d6d6dff5e4e2de1713b5fd8b65e6
1,627
py
Python
physalia/fixtures/models.py
luiscruz/physalia
364951d94e02b60092785db46a8c7a7299ffe2a4
[ "MIT" ]
13
2017-02-14T10:35:43.000Z
2021-12-11T17:33:36.000Z
physalia/fixtures/models.py
luiscruz/physalia
364951d94e02b60092785db46a8c7a7299ffe2a4
[ "MIT" ]
3
2020-02-27T12:07:21.000Z
2021-07-25T12:52:36.000Z
physalia/fixtures/models.py
luiscruz/physalia
364951d94e02b60092785db46a8c7a7299ffe2a4
[ "MIT" ]
3
2019-10-06T14:01:58.000Z
2020-03-13T15:40:30.000Z
"""Fixtures for models module.""" from physalia.models import Measurement import numpy def create_measurement(use_case='login', app_pkg='com.package', duration=2, energy_consumption=30): """Fake data for measurement.""" return Measurement( ...
33.204082
70
0.543331
178
1,627
4.797753
0.376404
0.04918
0.063232
0.037471
0.220141
0.220141
0.220141
0.17096
0.17096
0
0
0.037791
0.365704
1,627
48
71
33.895833
0.789729
0.149969
0
0.157895
0
0
0.03321
0
0
0
0
0
0
1
0.078947
false
0
0.052632
0
0.210526
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
0354caf01e13d2c8ffb045f382e909588ad189a5
786
py
Python
setup.py
rrosajp/xdcc
e8ffa143cd48745824d077a686bfc0b3f0af6193
[ "MIT" ]
7
2020-06-03T06:24:23.000Z
2022-03-09T13:00:54.000Z
setup.py
thiagotps/xdcc
e8ffa143cd48745824d077a686bfc0b3f0af6193
[ "MIT" ]
3
2020-09-26T12:52:43.000Z
2022-01-22T23:17:19.000Z
setup.py
rrosajp/xdcc
e8ffa143cd48745824d077a686bfc0b3f0af6193
[ "MIT" ]
4
2020-09-26T01:17:00.000Z
2022-02-06T19:22:04.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="xdcc", version="0.0.3", author="Thiago T. P. Silva", author_email="thiagoteodoro501@gmail.com", description="A simple XDCC downloader written in python3", long_description=long_descrip...
30.230769
66
0.661578
91
786
5.538462
0.714286
0.119048
0.075397
0.119048
0
0
0
0
0
0
0
0.015674
0.188295
786
25
67
31.44
0.774295
0
0
0
0
0
0.398219
0.062341
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
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
035543c446ab93f942c4299a0b653ef67467158d
9,319
py
Python
draw-tsp-path.py
wenderlemes/gcc218_trabalho_pratico
e57aab3c1ebcbe92683052994de646d0f76e8eb8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
draw-tsp-path.py
wenderlemes/gcc218_trabalho_pratico
e57aab3c1ebcbe92683052994de646d0f76e8eb8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
draw-tsp-path.py
wenderlemes/gcc218_trabalho_pratico
e57aab3c1ebcbe92683052994de646d0f76e8eb8
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
"""Modified code from https://developers.google.com/optimization/routing/tsp#or-tools """ # Copyright Matthew Mack (c) 2020 under CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/ from __future__ import print_function import math from ortools.constraint_solver import routing_enums_pb2 from ortools.constraint_sol...
36.402344
111
0.65962
1,172
9,319
5.037543
0.234642
0.054539
0.007114
0.011179
0.166328
0.04895
0.026931
0
0
0
0
0.010317
0.240691
9,319
256
112
36.402344
0.824053
0.159352
0
0.027174
0
0
0.066401
0.007978
0
0
0
0
0
1
0.076087
false
0
0.048913
0
0.173913
0.081522
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
0357185cdbc8f0ba6e573ad391b048407dabd43e
1,027
py
Python
script/shaderutil.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
script/shaderutil.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
script/shaderutil.py
xzfn/toy
5d4f6e631c662634a059a4a178174032b01cc81a
[ "MIT" ]
null
null
null
import os import shadercompiler def spv_folder_to_glsl_folder(spv_folder): return os.path.join(spv_folder, '../../toy/shader') def glsl_from_spv(spv): spv_folder, spv_name = os.path.split(spv) glsl_folder = spv_folder_to_glsl_folder(spv_folder) glsl_name = spv_name[:-4] + '.glsl' glsl = os.path....
31.121212
65
0.666991
136
1,027
4.742647
0.279412
0.083721
0.086822
0.088372
0.093023
0.093023
0.093023
0
0
0
0
0.00128
0.239533
1,027
32
66
32.09375
0.824584
0
0
0
0
0
0.038986
0
0
0
0
0
0
1
0.111111
false
0
0.074074
0.037037
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
035a72cf11a14ddfaed1b39b4cd2c2f14c4da51e
2,046
py
Python
GeneralizeDEMConsole.py
tsamsonov/generalize-dem
4e180944cd3488654240d47464cf8a0b8a7bc640
[ "Python-2.0", "OLDAP-2.7" ]
16
2017-07-10T15:28:41.000Z
2021-12-30T16:25:06.000Z
GeneralizeDEMConsole.py
tsamsonov/Small-Scale-Terrain-Generalization
4e180944cd3488654240d47464cf8a0b8a7bc640
[ "Python-2.0", "OLDAP-2.7" ]
4
2017-07-17T13:35:25.000Z
2019-12-02T20:15:28.000Z
GeneralizeDEMConsole.py
tsamsonov/generalize-dem
4e180944cd3488654240d47464cf8a0b8a7bc640
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
import sys import time import arcpy import traceback import GeneralizeDEM if __name__ == '__main__': # SET PARAMETERS HERE # -------------------------------------------------------------------- demdataset = 'X:/Work/Scripts & Tools/MY/DEMGEN/mistral' marine = 'X:/Work/Scripts & Tools/MY/DEMGEN/DEMGENE...
31.476923
79
0.540078
215
2,046
5
0.516279
0.018605
0.022326
0.031628
0.046512
0.046512
0
0
0
0
0
0.030199
0.287879
2,046
64
80
31.96875
0.707618
0.076735
0
0.056604
0
0
0.212202
0.068435
0
0
0
0
0
1
0
false
0
0.09434
0
0.09434
0.113208
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
035c76dc73552701e77d5f647636dafc183b09c4
534
py
Python
reports/migrations/0097_auto_20171006_0951.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
3
2020-04-26T06:28:50.000Z
2021-04-05T08:02:26.000Z
reports/migrations/0097_auto_20171006_0951.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
10
2020-06-05T17:36:10.000Z
2022-03-11T23:16:42.000Z
reports/migrations/0097_auto_20171006_0951.py
CMU-TRP/podd-api
6eb5c4598f848f75d131287163cd9babf2a0a0fc
[ "MIT" ]
5
2021-04-08T08:43:49.000Z
2021-11-27T06:36:46.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('reports', '0096_auto_20170920_1521'), ] operations = [ migrations.AlterField( model_name='reporttype', ...
25.428571
130
0.644195
55
534
6.036364
0.818182
0
0
0
0
0
0
0
0
0
0
0.042607
0.252809
534
20
131
26.7
0.789474
0.039326
0
0
0
0
0.225049
0.04501
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
035ca68338c7107344756496893369eeae016a6c
513
py
Python
server/functions/calcdistance.py
yrpmsg/SCSV15
bbe953d676c082f4a30c4d5e0e0cbfcc624d969c
[ "Apache-2.0" ]
null
null
null
server/functions/calcdistance.py
yrpmsg/SCSV15
bbe953d676c082f4a30c4d5e0e0cbfcc624d969c
[ "Apache-2.0" ]
null
null
null
server/functions/calcdistance.py
yrpmsg/SCSV15
bbe953d676c082f4a30c4d5e0e0cbfcc624d969c
[ "Apache-2.0" ]
null
null
null
from math import radians, cos, sin, asin, sqrt, floor, pow import math lat1 = 11.00461011 lon1 = 76.95691543 lat2 = 11.0070471 lon2 = 76.96110704 lon1 = radians(lon1) lon2 = radians(lon2) lat1 = radians(lat1) lat2 = radians(lat2) # Haversine formula dlon = lon2 - lon1 dlat = lat2 - lat1 a = sin(...
19
63
0.62768
79
513
4.075949
0.531646
0.049689
0
0
0
0
0
0
0
0
0
0.182292
0.251462
513
26
64
19.730769
0.65625
0.177388
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
035cf0e95ad473da5f8cd509f8390672c271dc26
3,106
py
Python
xmppserver/xmpp/mechanisms.py
ovekaaven/django-xmpp-server
aa391173b4cdfc98e2f6de29d24aa4273b3620c3
[ "MIT" ]
null
null
null
xmppserver/xmpp/mechanisms.py
ovekaaven/django-xmpp-server
aa391173b4cdfc98e2f6de29d24aa4273b3620c3
[ "MIT" ]
null
null
null
xmppserver/xmpp/mechanisms.py
ovekaaven/django-xmpp-server
aa391173b4cdfc98e2f6de29d24aa4273b3620c3
[ "MIT" ]
null
null
null
from slixmpp.exceptions import XMPPError from ..conf import settings mechanisms = {} def sasl_mech(): def register(mech): mechanisms[mech.name] = mech return mech return register class Mechanism(object): name = None def __init__(self, auth): self.auth = auth @staticmetho...
26.775862
75
0.603348
345
3,106
5.350725
0.269565
0.043337
0.03792
0.05688
0.303359
0.211268
0.137595
0.097508
0
0
0
0.005064
0.300708
3,106
115
76
27.008696
0.844843
0.03123
0
0.388889
0
0
0.057903
0
0
0
0
0.008696
0
1
0.077778
false
0.044444
0.022222
0.033333
0.355556
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
0362625fd6644541d017afd28f886693da68a5e3
7,625
py
Python
arcade/examples/sprite_rotate_tank.py
DragonMoffon/arcade
98fb1809363ccc537d6852be487aeae0b5fb7fb8
[ "MIT" ]
null
null
null
arcade/examples/sprite_rotate_tank.py
DragonMoffon/arcade
98fb1809363ccc537d6852be487aeae0b5fb7fb8
[ "MIT" ]
null
null
null
arcade/examples/sprite_rotate_tank.py
DragonMoffon/arcade
98fb1809363ccc537d6852be487aeae0b5fb7fb8
[ "MIT" ]
null
null
null
""" Sprite Rotation With A Tank. Vehicles or tower defense turrets can have parts that can rotate toward targets. These parts are usually represented with separate sprites drawn relative to attachment points on the main body. Because these sprites are usually asymmetrical, we have to rotate them around their attachme...
37.377451
106
0.610098
1,025
7,625
4.39122
0.24
0.063986
0.043546
0.023328
0.301266
0.246168
0.227505
0.212842
0.182404
0.182404
0
0.011031
0.310426
7,625
203
107
37.561576
0.844998
0.296
0
0.240741
0
0
0.060145
0.022269
0
0
0
0
0
1
0.101852
false
0
0.018519
0.009259
0.148148
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
03636efc34bffdf5e5bc02cd6599c5ce0ac214e9
4,913
py
Python
api/modules/github/views.py
prabhakar267/travel-mate-server
2e0aa7c6ac9963c1ee95bda5966be01293935ded
[ "MIT" ]
43
2018-05-23T10:03:40.000Z
2021-09-02T15:55:52.000Z
api/modules/github/views.py
prabhakar267/travel-mate-server
2e0aa7c6ac9963c1ee95bda5966be01293935ded
[ "MIT" ]
141
2018-05-24T16:03:12.000Z
2021-04-30T23:47:59.000Z
api/modules/github/views.py
prabhakar267/travel-mate-server
2e0aa7c6ac9963c1ee95bda5966be01293935ded
[ "MIT" ]
77
2018-06-13T13:51:31.000Z
2021-06-16T16:10:18.000Z
import datetime import requests import requests_cache from rest_framework import status from rest_framework.decorators import api_view from rest_framework.response import Response from api.commonresponses import DOWNSTREAM_ERROR_RESPONSE from api.modules.github import constants from api.modules.github.github_response...
36.664179
101
0.612864
502
4,913
5.784861
0.227092
0.060606
0.046488
0.02927
0.599174
0.572658
0.572658
0.532025
0.51343
0.498278
0
0.010231
0.303684
4,913
133
102
36.93985
0.838644
0.09485
0
0.515464
0
0
0.085912
0
0
0
0
0
0
1
0.030928
false
0
0.092784
0
0.195876
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
036543a1fbcdcc35bf430e0b5d4150196450f6d6
4,910
py
Python
mkpy3/mkpy3_finder_chart_survey_fits_image_get_v1.py
KenMighell/mkpy3
598126136b43fa93bc4aded5db65a1251d60a9ba
[ "MIT" ]
null
null
null
mkpy3/mkpy3_finder_chart_survey_fits_image_get_v1.py
KenMighell/mkpy3
598126136b43fa93bc4aded5db65a1251d60a9ba
[ "MIT" ]
null
null
null
mkpy3/mkpy3_finder_chart_survey_fits_image_get_v1.py
KenMighell/mkpy3
598126136b43fa93bc4aded5db65a1251d60a9ba
[ "MIT" ]
1
2020-11-01T18:37:53.000Z
2020-11-01T18:37:53.000Z
#!/usr/bin/env python3 # file://mkpy3_finder_chart_survey_fits_image_get_v1.py # Kenneth Mighell # SETI Institute # ============================================================================= def mkpy3_finder_chart_survey_fits_image_get_v1( ra_deg=None, dec_deg=None, radius_arcmin=None, survey=No...
26.684783
87
0.627495
633
4,910
4.706161
0.333333
0.016784
0.03424
0.042296
0.098019
0.098019
0.098019
0.076536
0.027526
0.027526
0
0.024606
0.238493
4,910
183
88
26.830601
0.772132
0.352546
0
0.042105
0
0
0.087261
0
0
0
0
0
0
1
0.021053
false
0
0.105263
0
0.147368
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
0366c6b949b300f8072c9d5d7dfdc2a101c2a39c
1,737
py
Python
marathontcp.py
StevenPG/JMXMarathonDataAggregator
a976edc2ea27255dca36f584923e3a06dbdec8c6
[ "MIT" ]
null
null
null
marathontcp.py
StevenPG/JMXMarathonDataAggregator
a976edc2ea27255dca36f584923e3a06dbdec8c6
[ "MIT" ]
null
null
null
marathontcp.py
StevenPG/JMXMarathonDataAggregator
a976edc2ea27255dca36f584923e3a06dbdec8c6
[ "MIT" ]
null
null
null
""" marathontcp.py Author: Steven Gantz Date: 11/22/2016 These two classes are used as custom TCP Servers and its accompanying handler that defines each request. These class are what forward the data from the preset /metrics endpoints in the scaled marathon instances directly to the TCP servers running from this appli...
40.395349
110
0.727691
229
1,737
5.406114
0.528384
0.029079
0.031502
0.033926
0.138934
0.138934
0.095315
0.095315
0.095315
0
0
0.017693
0.186529
1,737
42
111
41.357143
0.858457
0.43293
0
0
0
0
0.124088
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.4
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
03672787b107ccc21fb75165c7801c0b958f1461
4,600
py
Python
tests/test_io.py
Laharah/horcrux
68f7c6aad0678b39bae888f0dfeb9d1926501a53
[ "MIT" ]
null
null
null
tests/test_io.py
Laharah/horcrux
68f7c6aad0678b39bae888f0dfeb9d1926501a53
[ "MIT" ]
null
null
null
tests/test_io.py
Laharah/horcrux
68f7c6aad0678b39bae888f0dfeb9d1926501a53
[ "MIT" ]
null
null
null
import pytest import io import random from copy import deepcopy from horcrux import io as hio from horcrux.hrcx_pb2 import StreamBlock from horcrux.sss import Share, Point @pytest.fixture() def hx(): return hio.Horcrux(io.BytesIO()) @pytest.fixture() def share(): return Share(b'0123456789abcdef', 2, Point...
27.218935
88
0.668696
709
4,600
4.143865
0.180536
0.038121
0.042886
0.042886
0.513955
0.42614
0.377127
0.322328
0.24983
0.24983
0
0.101824
0.201522
4,600
168
89
27.380952
0.698067
0
0
0.382353
0
0.036765
0.153043
0.12913
0
0
0
0
0.176471
1
0.110294
false
0
0.051471
0.022059
0.183824
0.022059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
0369ea60607087cd24210a21d5453a467593c1f0
1,817
py
Python
template/diff.py
Nauja/Entropy
e418a7db68a55f17fb3e6c0c3b5018aed7002d4d
[ "MIT" ]
null
null
null
template/diff.py
Nauja/Entropy
e418a7db68a55f17fb3e6c0c3b5018aed7002d4d
[ "MIT" ]
null
null
null
template/diff.py
Nauja/Entropy
e418a7db68a55f17fb3e6c0c3b5018aed7002d4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ A Pandoc filter to create non-code diffs. `add` and `rm` are the classes that can be added to a `Div` or a `Span`. `add` colors the text green, and `rm` colors the text red. For HTML, `add` also underlines the text, and `rm` also strikes out the text. # Example ## `Div` Unchanged portion...
25.236111
79
0.555861
232
1,817
4.206897
0.362069
0.043033
0.065574
0.038934
0.116803
0.063525
0.063525
0
0
0
0
0.0008
0.312053
1,817
71
80
25.591549
0.78
0.250963
0
0.166667
0
0
0.057692
0
0
0
0
0
0
1
0.027778
false
0
0.027778
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
036a6e6b57ea2d5221b7c56f2e175c6cb9c0ca3b
1,304
py
Python
paxful/exceptions.py
tholness/Paxful-API-Wrapper
c66620aa2ef40b97f2794998c63a6bd7504cea3c
[ "MIT" ]
null
null
null
paxful/exceptions.py
tholness/Paxful-API-Wrapper
c66620aa2ef40b97f2794998c63a6bd7504cea3c
[ "MIT" ]
null
null
null
paxful/exceptions.py
tholness/Paxful-API-Wrapper
c66620aa2ef40b97f2794998c63a6bd7504cea3c
[ "MIT" ]
3
2020-08-09T17:02:06.000Z
2021-04-13T17:45:39.000Z
from __future__ import absolute_import, unicode_literals class PaxfulError(Exception): """Base (catch-all) client exception.""" class RequestError(PaxfulError): """Raised when an API request to fails. :ivar message: Error message. :vartype message: str | unicode :ivar url: API endpoint. ...
28.977778
61
0.692485
153
1,304
5.751634
0.359477
0.061364
0.071591
0.078409
0.068182
0
0
0
0
0
0
0
0.220092
1,304
44
62
29.636364
0.86529
0.486963
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
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
036bed92a5a2372689c9a48c62d3c2e337ec2c9b
1,459
py
Python
cogs/logs.py
CoffeeOrg/Coffee
73bf194c3811bb9cf776a0a4db4c6234e471d5ce
[ "MIT" ]
6
2021-02-06T05:43:40.000Z
2021-08-01T22:55:33.000Z
cogs/logs.py
elfw/Coffee
e83868a323084b96b0df3f916090dd17ce34de93
[ "MIT" ]
2
2021-02-06T07:18:10.000Z
2021-02-06T18:42:07.000Z
cogs/logs.py
elfw/Coffee
e83868a323084b96b0df3f916090dd17ce34de93
[ "MIT" ]
10
2021-02-06T03:31:26.000Z
2021-09-22T04:00:23.000Z
import discord from discord.ext import commands from utils.database import sqlite, create_tables class Events(commands.Cog): def __init__(self, bot): self.bot = bot self.db = sqlite.Database() def logs(self, guild_id): data = self.db.fetchrow("SELECT * FROM Logging WHERE guild_id=?", (guild_id,))...
29.77551
154
0.651131
192
1,459
4.833333
0.333333
0.064655
0.029095
0.051724
0.396552
0.323276
0.323276
0.24569
0
0
0
0.010213
0.194654
1,459
48
155
30.395833
0.777872
0
0
0.307692
0
0.051282
0.217272
0.139136
0
0
0.010966
0
0
1
0.076923
false
0
0.076923
0
0.25641
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
036e3669e539c1ee359752125217465762d9b017
4,151
py
Python
scripts/text/text_particles.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
4
2020-08-18T18:33:05.000Z
2021-05-18T23:55:56.000Z
scripts/text/text_particles.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
null
null
null
scripts/text/text_particles.py
mou3adb/spread_the_particle
6cc666fded62f07380ed1e3ed52969c436295906
[ "MIT" ]
2
2021-03-03T18:57:06.000Z
2021-05-18T20:43:44.000Z
""" The outfile structure is the following: diameter density birth lifetime is_captured stuck_to_geometry theta (blank line) Re Ur (blank line) n_trajectory x1 y1 up1 vp1 Uf1 Vf1 gradpx1 gradpy1 ap_x1 ap_y1 af_x1 af_y1 x2 y2 up2 vp2 Uf2 Vf2 gradpx2 gradpy2 ap_x2 ap_y2 af_x2 af_y2 ... xNt yNt upNt vpNt UfNt VfNt gradpx...
25.466258
79
0.578897
580
4,151
4.024138
0.218966
0.050129
0.047986
0.056984
0.153385
0.064267
0.015424
0.015424
0
0
0
0.016081
0.26596
4,151
162
80
25.623457
0.749918
0.141171
0
0.20202
0
0
0.020563
0
0
0
0
0
0
1
0.060606
false
0
0.030303
0.020202
0.131313
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
03740eb7b2e0fb107f339fc022308a8b7f886123
3,195
py
Python
csrv/model/deck.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
null
null
null
csrv/model/deck.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
null
null
null
csrv/model/deck.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
1
2020-09-20T11:26:20.000Z
2020-09-20T11:26:20.000Z
"""A collection of cards.""" import random from csrv.model import cards from csrv.model.cards import card_info # This import is just to pull in all the card definitions import csrv.model.cards.corp import csrv.model.cards.runner class Deck(object): def __init__(self, identity_name, card_names): self.identity...
35.10989
114
0.699531
475
3,195
4.498947
0.235789
0.037436
0.028077
0.028077
0.321011
0.220402
0.13664
0.13664
0.13664
0.13664
0
0.004252
0.190297
3,195
90
115
35.5
0.821801
0.16338
0
0.233333
0
0
0.108945
0
0
0
0
0
0
1
0.15
false
0
0.083333
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
0
0
0
0
0
0
0
1
0
03766bbc82ca9d0b806101dbc0e7af7f9c47c209
476
py
Python
data_structures_and_algorithms/04_menu.py
dileepabandara/return-python
fc269d577eade231bc9e3813654ce9c5848837ca
[ "MIT" ]
1
2022-01-12T17:44:51.000Z
2022-01-12T17:44:51.000Z
data_structures_and_algorithms/04_menu.py
dileepabandara/return-python
fc269d577eade231bc9e3813654ce9c5848837ca
[ "MIT" ]
null
null
null
data_structures_and_algorithms/04_menu.py
dileepabandara/return-python
fc269d577eade231bc9e3813654ce9c5848837ca
[ "MIT" ]
null
null
null
ans = True while ans: print(""" 1.Add a Student 2.Delete a Student 3.Look Up Student Record 4.Exit/Quit """) ans = input("What would you like to do? ") if ans == "1": print("\nStudent Added") elif ans == "2": print("\n Student Deleted") elif ans == "3": pr...
22.666667
46
0.521008
66
476
3.757576
0.590909
0.096774
0.104839
0
0
0
0
0
0
0
0
0.025316
0.336134
476
20
47
23.8
0.759494
0
0
0
0
0
0.460084
0
0
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
0376ebb01bd1aa62d9b4075181468b5d09068e7f
525
py
Python
libok.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
null
null
null
libok.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
9
2015-10-30T12:46:53.000Z
2015-11-25T03:27:49.000Z
libok.py
txt/se4dm
c38c742039eaa7a15730eb655c4eed067c8a5409
[ "Unlicense" ]
2
2018-06-22T15:23:44.000Z
2020-11-05T01:47:54.000Z
from __future__ import print_function, division import sys sys.dont_write_bytecode = True from lib import * @ok def _rseed(): rseed(1) one = list('abcdefghijklm') assert shuffle(one) == ['m', 'h', 'j', 'f', 'a', 'g', 'l', 'd', 'e', 'c', 'i', 'k', 'b'] @ok def _defDict(): d = DefaultDict(lambda: []...
22.826087
50
0.491429
78
525
3.192308
0.74359
0.040161
0
0
0
0
0
0
0
0
0
0.044041
0.264762
525
22
51
23.863636
0.601036
0
0
0.111111
0
0
0.085714
0
0
0
0
0
0.111111
1
0.111111
false
0
0.166667
0
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
037803daf8f26a1fd6b807cb352e059357d3aa0d
734
py
Python
setup.py
ignalex/HAP-python
855577cfcde1bf2f8562caf9fbefda3e4fa8b497
[ "Apache-2.0" ]
1
2018-09-23T20:44:46.000Z
2018-09-23T20:44:46.000Z
setup.py
ignalex/HAP-python
855577cfcde1bf2f8562caf9fbefda3e4fa8b497
[ "Apache-2.0" ]
1
2019-10-02T11:12:13.000Z
2019-10-02T11:12:13.000Z
setup.py
ilyamordasov/HAP-python
698eb612c35b5672c4aab9d7896093924cbd358c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup import pyhap.const as pyhap_const PROJECT_NAME = 'HAP-python' URL = 'https://github.com/ikalchev/{}'.format(PROJECT_NAME) PROJECT_URLS = { 'Bug Reports': '{}/issues'.format(URL), 'Documentation': 'http://hap-python.readthedocs.io/en/latest/', 'Source': '{}/tree/master'.format...
27.185185
71
0.709809
96
734
5.114583
0.458333
0.101833
0.069246
0
0
0
0
0
0
0
0
0
0.117166
734
26
72
28.230769
0.757716
0
0
0
0
0
0.257493
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
037a4b8c8dc9b844a65be270c4263033b7498224
1,291
py
Python
experiments/2014_PLOS-Comp-Bio_Wikidemics-feasibility/scrape_mmwr.py
casmlab/quac
f7b037b15f5ff0db1b9669159f645040abce1766
[ "ECL-2.0", "Apache-2.0" ]
34
2015-01-10T05:44:02.000Z
2021-05-18T02:57:19.000Z
experiments/2014_PLOS-Comp-Bio_Wikidemics-feasibility/scrape_mmwr.py
casmlab/quac
f7b037b15f5ff0db1b9669159f645040abce1766
[ "ECL-2.0", "Apache-2.0" ]
14
2015-02-15T21:58:09.000Z
2020-06-05T18:31:47.000Z
experiments/2014_PLOS-Comp-Bio_Wikidemics-feasibility/scrape_mmwr.py
casmlab/quac
f7b037b15f5ff0db1b9669159f645040abce1766
[ "ECL-2.0", "Apache-2.0" ]
19
2015-02-08T02:24:15.000Z
2020-11-07T13:39:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Scrape the MMWR morbidity tables at http://wonder.cdc.gov/mmwr/mmwrmorb.asp. No processing is done; we simply save the files for potential offline processing. """ # Copyright (c) Los Alamos National Security, LLC and others. from __future__ import print_function, d...
32.275
130
0.670023
200
1,291
4.22
0.55
0.037915
0.061611
0.056872
0.122038
0
0
0
0
0
0
0.030047
0.175058
1,291
39
131
33.102564
0.762441
0.202169
0
0
0
0.045455
0.263261
0.027505
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
0
0
0
0
0
0
0
0
1
0
037b522742c7eb6098ac17119575246e7a1d22e3
6,970
py
Python
cluster_status.py
jtimberlake/hyper-kube-config
d624f81e04d1560b584bb7b748451dd5181e15bf
[ "MIT" ]
29
2018-10-11T17:34:33.000Z
2019-10-09T04:24:22.000Z
cluster_status.py
silvermullet/kube-auth-store
a9c6966fe7b29e0bf80f9e40027310fd4a07dbc3
[ "MIT" ]
14
2018-12-18T18:14:19.000Z
2019-10-19T18:38:12.000Z
cluster_status.py
silvermullet/kube-auth-store
a9c6966fe7b29e0bf80f9e40027310fd4a07dbc3
[ "MIT" ]
6
2018-11-06T09:32:40.000Z
2019-10-17T18:18:08.000Z
import json import logging import os import traceback from boto3.dynamodb.conditions import Attr, Key import storage from util import lambda_result logger = logging.getLogger('cluster_status') if os.environ.get('DEBUG'): logger.setLevel(logging.DEBUG) def set_cluster_status(event, context): """Set the sta...
32.877358
79
0.628264
771
6,970
5.48249
0.159533
0.070263
0.059617
0.059144
0.647268
0.614384
0.60634
0.583156
0.538443
0.506506
0
0.006692
0.271019
6,970
211
80
33.033175
0.825231
0.082066
0
0.496894
0
0
0.191258
0.019883
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.186335
0.006211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
037cb54aac999a27c21c13f841feb80028eba68f
1,366
py
Python
ote_sdk/ote_sdk/utils/labels_utils.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/utils/labels_utils.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
null
null
null
ote_sdk/ote_sdk/utils/labels_utils.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
1
2020-12-13T22:13:51.000Z
2020-12-13T22:13:51.000Z
""" This module implements utilities for labels """ # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # from typing import List, Optional from ote_sdk.entities.label import LabelEntity from ote_sdk.entities.label_schema import LabelSchemaEntity from ote_sdk.entities.scored_label impor...
27.32
78
0.7306
172
1,366
5.575581
0.366279
0.114703
0.072993
0.056309
0.120959
0.072993
0.072993
0
0
0
0
0.009883
0.185212
1,366
49
79
27.877551
0.851752
0.170571
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.166667
0
0.458333
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
cee3692c9f60cfa65662bb7421bd3d405f7b7920
4,329
py
Python
meggie/actions/spectrum_plot/controller/spectrum.py
Teekuningas/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
4
2020-04-29T08:57:11.000Z
2021-01-15T21:21:51.000Z
meggie/actions/spectrum_plot/controller/spectrum.py
Teekuningas/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
16
2019-05-03T10:31:16.000Z
2021-05-06T14:59:55.000Z
meggie/actions/spectrum_plot/controller/spectrum.py
cibr-jyu/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
3
2020-12-12T09:57:00.000Z
2020-12-20T17:12:05.000Z
""" Contains functions for plot spectrum action """ import mne import numpy as np import matplotlib.pyplot as plt from meggie.utilities.plotting import color_cycle from meggie.utilities.plotting import create_channel_average_plot from meggie.utilities.channels import average_to_channel_groups from meggie.utilities.c...
30.921429
85
0.612151
550
4,329
4.6
0.190909
0.024901
0.037549
0.016601
0.46087
0.330435
0.330435
0.318577
0.290909
0.290909
0
0.006392
0.2772
4,329
139
86
31.143885
0.802173
0.024255
0
0.347368
0
0
0.019341
0
0
0
0
0
0
1
0.042105
false
0
0.084211
0
0.136842
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
cee59d1b21ebd4c01ff98f1b398ff22e296663a6
7,733
py
Python
data/cyclesps.py
DawyD/UNet-PS-4D
bdd31308854dbd5f309aec9bcc1f7a35f267481d
[ "MIT" ]
1
2021-12-06T17:20:36.000Z
2021-12-06T17:20:36.000Z
data/cyclesps.py
DawyD/UNet-PS-4D
bdd31308854dbd5f309aec9bcc1f7a35f267481d
[ "MIT" ]
null
null
null
data/cyclesps.py
DawyD/UNet-PS-4D
bdd31308854dbd5f309aec9bcc1f7a35f267481d
[ "MIT" ]
3
2021-12-06T08:09:42.000Z
2022-03-12T08:09:34.000Z
""" DataGenerator for CyclesPS Dataset This file use substantial portion of code from the original CNN-PS repository https://github.com/satoshi-ikehata/CNN-PS/ """ import numpy as np import cv2 import os import gc from data.datagenerator import DataGenerator from data.utils import rotate_images from misc.projections ...
40.915344
120
0.557869
957
7,733
4.351097
0.23093
0.017291
0.019212
0.020173
0.25
0.206532
0.174832
0.163785
0.163785
0.141691
0
0.0262
0.323807
7,733
188
121
41.132979
0.770128
0.079917
0
0.179856
0
0
0.041212
0
0
0
0
0
0.014388
1
0.035971
false
0
0.057554
0
0.122302
0.028777
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
ceea1cba85bb3d624953e8ecf28fb6d54fd02614
4,429
py
Python
code/vocabulary.py
TimothyBenger/knausj_talon
10c2440fb3646abda1adc84ca9fd230f752eb353
[ "MIT" ]
null
null
null
code/vocabulary.py
TimothyBenger/knausj_talon
10c2440fb3646abda1adc84ca9fd230f752eb353
[ "MIT" ]
null
null
null
code/vocabulary.py
TimothyBenger/knausj_talon
10c2440fb3646abda1adc84ca9fd230f752eb353
[ "MIT" ]
null
null
null
from talon import Context, Module from .user_settings import get_list_from_csv mod = Module() ctx = Context() mod.list("vocabulary", desc="additional vocabulary words") # Default words that will need to be capitalized (particularly under w2l). # NB. These defaults and those later in this file are ONLY used when # a...
29.925676
121
0.64326
551
4,429
5.087114
0.471869
0.019979
0.019979
0.014984
0.121655
0.078131
0.060293
0.022833
0
0
0
0.000284
0.204561
4,429
147
122
30.129252
0.795345
0.290133
0
0.018018
0
0
0.482051
0
0
0
0
0
0
1
0
false
0
0.018018
0
0.018018
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
ceef88b42a5304577b2b39be8918b4680ae52465
9,605
py
Python
upetem_service.py
myroslav/robot_tests.broker.upetem
323314259faa60618113fbc37b5e1f1d79c2192b
[ "Apache-2.0" ]
null
null
null
upetem_service.py
myroslav/robot_tests.broker.upetem
323314259faa60618113fbc37b5e1f1d79c2192b
[ "Apache-2.0" ]
null
null
null
upetem_service.py
myroslav/robot_tests.broker.upetem
323314259faa60618113fbc37b5e1f1d79c2192b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from datetime import datetime, timedelta import dateutil.parser import pytz import urllib TZ = pytz.timezone('Europe/Kiev') def adapt_data(data): data['data']['procuringEntity']['name'] = 'testuser_tender_owner' for x in data['data']['items']: x['unit']['name'] = get_unit_name(x['...
30.785256
158
0.639771
1,143
9,605
5.210849
0.223972
0.044661
0.034755
0.004701
0.303056
0.238079
0.204668
0.180826
0.161854
0.161854
0
0.005233
0.204165
9,605
311
159
30.884244
0.77394
0.001249
0
0.168776
0
0.004219
0.28485
0.064644
0
0
0
0
0
1
0.147679
false
0
0.016878
0.016878
0.299578
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
ceefdd4f273021acf57a211bf9db5e4727c86333
1,638
py
Python
sway/tiling-indicator.py
iziGor/scripts
0076711ab6c423d97c2dad72119fbd57e27fb250
[ "BSD-2-Clause" ]
null
null
null
sway/tiling-indicator.py
iziGor/scripts
0076711ab6c423d97c2dad72119fbd57e27fb250
[ "BSD-2-Clause" ]
null
null
null
sway/tiling-indicator.py
iziGor/scripts
0076711ab6c423d97c2dad72119fbd57e27fb250
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Show split layout indicator Usage: ./tiling-indicator.py Suppoused to be used inside waybar or polybar. Config example: Waybar: "custom/ws": { "exec": "python -u $HOME/.config/sway/scripts/tiling-indicator-2.py 2> /dev/null } Polybar: [module/layout] type = custom/script exec...
22.135135
93
0.582418
196
1,638
4.826531
0.581633
0.047569
0.035941
0.021142
0.173362
0.114165
0.114165
0.114165
0.114165
0
0
0.063467
0.211233
1,638
73
94
22.438356
0.668731
0.600733
0
0
0
0
0.201908
0.033386
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
cef07786e7e7ac506670e6c1114e7cf83e1eb3a0
5,822
py
Python
cogs/tags.py
Chrovo/Productivity
4bdb7eecfb8ae16b013ce58a1b0421f8f791499e
[ "MIT" ]
null
null
null
cogs/tags.py
Chrovo/Productivity
4bdb7eecfb8ae16b013ce58a1b0421f8f791499e
[ "MIT" ]
null
null
null
cogs/tags.py
Chrovo/Productivity
4bdb7eecfb8ae16b013ce58a1b0421f8f791499e
[ "MIT" ]
null
null
null
from typing import Optional import discord import asyncpg from discord.ext import commands from .utils.pagination import create_paginated_embed class Tags(commands.Cog): """Productivity's tag system.""" def __init__(self, bot:commands.Bot) -> None: self.bot = bot self.emoji = "🏷️ " asy...
39.605442
124
0.5663
708
5,822
4.577684
0.220339
0.030238
0.051836
0.038877
0.379821
0.347115
0.339093
0.312249
0.293119
0.206726
0
0.008899
0.324459
5,822
147
125
39.605442
0.814645
0.004466
0
0.416667
0
0
0.251069
0
0
0
0
0
0
1
0.016667
false
0
0.041667
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cef53f21d6ccfd1533b28e30e6717c9396761c37
4,027
py
Python
terminalgame/world.py
naslundx/terminalgame
d855ec33ff8a057b1308ad30c54f138343baf56f
[ "MIT" ]
null
null
null
terminalgame/world.py
naslundx/terminalgame
d855ec33ff8a057b1308ad30c54f138343baf56f
[ "MIT" ]
null
null
null
terminalgame/world.py
naslundx/terminalgame
d855ec33ff8a057b1308ad30c54f138343baf56f
[ "MIT" ]
null
null
null
import curses from contextlib import contextmanager from time import sleep from typing import List, Tuple, TYPE_CHECKING from .actions import Action from .properties import Property if TYPE_CHECKING: from .object import Object class World: class __World: def __init__(self, fps: int, render: bool = T...
31.217054
83
0.48746
454
4,027
4.132159
0.231278
0.053305
0.048507
0.040512
0.15565
0.145522
0.145522
0.088486
0.036247
0.036247
0
0.008591
0.421902
4,027
128
84
31.460938
0.797251
0.024584
0
0.141414
0
0
0.003571
0
0
0
0
0
0.020202
1
0.121212
false
0
0.070707
0.040404
0.292929
0.010101
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
cef7c80ce2c92bb1a2333400473042e3222f6983
1,012
py
Python
data/data-pipeline/data_pipeline/etl/constants.py
vim-usds/justice40-tool
6691df3e318b531b0e05454a79b8560b7d307b36
[ "CC0-1.0" ]
null
null
null
data/data-pipeline/data_pipeline/etl/constants.py
vim-usds/justice40-tool
6691df3e318b531b0e05454a79b8560b7d307b36
[ "CC0-1.0" ]
null
null
null
data/data-pipeline/data_pipeline/etl/constants.py
vim-usds/justice40-tool
6691df3e318b531b0e05454a79b8560b7d307b36
[ "CC0-1.0" ]
null
null
null
DATASET_LIST = [ { "name": "tree_equity_score", "module_dir": "tree_equity_score", "class_name": "TreeEquityScoreETL", }, { "name": "census_acs", "module_dir": "census_acs", "class_name": "CensusACSETL", }, { "name": "ejscreen", "module...
23.534884
51
0.528656
82
1,012
6.134146
0.329268
0.143141
0.059642
0
0
0
0
0
0
0
0
0
0.302372
1,012
42
52
24.095238
0.712465
0
0
0
0
0
0.505929
0.075099
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
cefa905aac2153e51d910363e7adb666340184b1
1,955
py
Python
e2e/test_get.py
sturzl/guet
b8c453f07968b689b303e20e7a31b405c02c54ef
[ "Apache-2.0" ]
null
null
null
e2e/test_get.py
sturzl/guet
b8c453f07968b689b303e20e7a31b405c02c54ef
[ "Apache-2.0" ]
null
null
null
e2e/test_get.py
sturzl/guet
b8c453f07968b689b303e20e7a31b405c02c54ef
[ "Apache-2.0" ]
null
null
null
from e2e import DockerTest class TestGet(DockerTest): def test_get_current_prints_currently_set_committers(self): self.guet_init() self.git_init() self.guet_add('initials1', 'name1', 'email1') self.guet_add('initials2', 'name2', 'email2') self.guet_start() self.guet...
38.333333
89
0.658824
253
1,955
4.750988
0.29249
0.086522
0.139767
0.159734
0.618136
0.556572
0.413478
0.413478
0.222962
0.222962
0
0.025675
0.223018
1,955
50
90
39.1
0.765635
0
0
0.384615
0
0
0.261381
0
0
0
0
0
0.307692
1
0.102564
false
0
0.025641
0
0.153846
0.102564
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
cefff0cd7583924688b44d3f4da180ddf1bf3140
1,813
py
Python
lesion_tool/waimea.py
alaurent4/nighres
ffb4a478a224190ffe0112f7e4d214ad6825716e
[ "Apache-2.0" ]
null
null
null
lesion_tool/waimea.py
alaurent4/nighres
ffb4a478a224190ffe0112f7e4d214ad6825716e
[ "Apache-2.0" ]
null
null
null
lesion_tool/waimea.py
alaurent4/nighres
ffb4a478a224190ffe0112f7e4d214ad6825716e
[ "Apache-2.0" ]
1
2019-01-21T10:53:38.000Z
2019-01-21T10:53:38.000Z
#!/usr/bin/env python """ """ from xml.etree.ElementTree import Element import xml.etree.ElementTree as etree import xml.dom.minidom import re import sys import getopt import os from time import gmtime, strftime from nipype import config, logging from nighres.lesion_tool.lesion_pipeline import Lesion_extractor d...
29.241935
117
0.529509
222
1,813
4.18018
0.391892
0.037716
0.053879
0.030172
0.172414
0.172414
0.172414
0.172414
0.172414
0.172414
0
0.008382
0.341975
1,813
62
118
29.241935
0.769489
0.02096
0
0.12
0
0.04
0.199321
0
0
0
0
0
0
1
0.02
false
0
0.2
0
0.22
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3002f09ad0b6466dc363ed3ed13747fd93bb53e6
2,208
py
Python
system/__init__.py
JHUAPL/meta-system
d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03
[ "Apache-2.0" ]
5
2021-07-30T00:59:59.000Z
2022-03-23T16:52:46.000Z
system/__init__.py
JHUAPL/meta-system
d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03
[ "Apache-2.0" ]
null
null
null
system/__init__.py
JHUAPL/meta-system
d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03
[ "Apache-2.0" ]
null
null
null
# ********************************************************************** # Copyright (C) 2020 Johns Hopkins University Applied Physics Laboratory # # All Rights Reserved. # For any other permission, please contact the Legal Office at JHU/APL. # # Licensed under the Apache License, Version 2.0 (the "License"); # y...
32.955224
87
0.682065
281
2,208
5.217082
0.44484
0.057299
0.037517
0.047749
0.088677
0
0
0
0
0
0
0.004452
0.186141
2,208
66
88
33.454545
0.811352
0.379076
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.294118
0
0.382353
0.147059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
30050dc99f412b59d4c595ff2aeb87a711b709c5
1,262
py
Python
main.py
hakierspejs/corononews
f1103da57d5c39694649bf7d7ba7748541dcfbe0
[ "WTFPL" ]
null
null
null
main.py
hakierspejs/corononews
f1103da57d5c39694649bf7d7ba7748541dcfbe0
[ "WTFPL" ]
null
null
null
main.py
hakierspejs/corononews
f1103da57d5c39694649bf7d7ba7748541dcfbe0
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python import flask import requests import lxml.html import logging app = flask.Flask(__name__) LOGGER = logging.getLogger(__name__) HN_BASE_URL = 'https://news.ycombinator.com/' def has_virus(url): if not url.startswith('http://') and not url.startswith('https://'): return True s = re...
28.681818
72
0.568938
173
1,262
3.976879
0.433526
0.040698
0.039244
0
0
0
0
0
0
0
0
0.006244
0.23851
1,262
43
73
29.348837
0.709677
0.015848
0
0.055556
0
0
0.262691
0.068493
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.277778
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
3007056835a3f4cdbc36d9cf5d7aec07fbd6a6ae
7,134
py
Python
code/func/func.py
lindenmp/neurodev_long
d6efc6b2e212bc6fc0669c80efcfa0b67d1e4b06
[ "MIT" ]
null
null
null
code/func/func.py
lindenmp/neurodev_long
d6efc6b2e212bc6fc0669c80efcfa0b67d1e4b06
[ "MIT" ]
5
2020-03-24T17:56:29.000Z
2021-12-13T20:35:48.000Z
code/func/func.py
lindenmp/neurodev_long
d6efc6b2e212bc6fc0669c80efcfa0b67d1e4b06
[ "MIT" ]
null
null
null
# Functions for project: NormativeNeuroDev_Longitudinal # Linden Parkes, 2019 # lindenmp@seas.upenn.edu from IPython.display import clear_output import numpy as np import scipy as sp from scipy import stats import pandas as pd from statsmodels.stats import multitest def get_cmap(which_type = 'qual1', num_classes = 8...
36.963731
123
0.528595
1,008
7,134
3.619048
0.343254
0.026316
0.024671
0.037007
0.219298
0.186678
0.171875
0.157072
0.141173
0.141173
0
0.141251
0.31427
7,134
192
124
37.15625
0.604456
0.094477
0
0.215827
0
0
0.032389
0
0
0
0
0
0
1
0.071942
false
0
0.043165
0
0.179856
0.007194
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
3007a5e506648223a9acc7a03be0c3a03d473f6f
15,808
py
Python
sympy/simplify/sqrtdenest.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
2
2015-05-11T12:26:38.000Z
2016-08-19T00:11:03.000Z
sympy/simplify/sqrtdenest.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
sympy/simplify/sqrtdenest.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
from sympy.functions import sqrt, sign, root from sympy.core import S, Wild, sympify, Mul, Add, Expr from sympy.core.function import expand_multinomial, expand_mul from sympy.core.symbol import Dummy from sympy.polys import Poly, PolynomialError from sympy.core.function import count_ops def _mexpand(expr): return ...
32.459959
79
0.546748
2,365
15,808
3.570402
0.150106
0.026646
0.004263
0.022383
0.230104
0.185812
0.128375
0.090123
0.084439
0.072359
0
0.037244
0.322305
15,808
486
80
32.526749
0.750957
0.38044
0
0.250923
0
0
0.000108
0
0
0
0
0
0
1
0.04797
false
0.00738
0.0369
0.00369
0.269373
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
3007da11fc7ae07380226f4b542b097442751381
17,074
py
Python
backend/modules/doc/views/doc.py
YouFacai/iWiki
7a2cbb514f25b72932b0212f6165cdb426243243
[ "MIT" ]
null
null
null
backend/modules/doc/views/doc.py
YouFacai/iWiki
7a2cbb514f25b72932b0212f6165cdb426243243
[ "MIT" ]
null
null
null
backend/modules/doc/views/doc.py
YouFacai/iWiki
7a2cbb514f25b72932b0212f6165cdb426243243
[ "MIT" ]
null
null
null
import datetime import os import shutil from django.conf import settings from django.contrib.auth import get_user_model from django.core.cache import cache from django.db import transaction, IntegrityError from django.db.models import Q, F from django.http import FileResponse from django.utils.encoding import escape_u...
38.541761
103
0.602554
2,003
17,074
4.987019
0.142786
0.014416
0.034037
0.039944
0.465312
0.388828
0.342377
0.322655
0.289018
0.247672
0
0.003979
0.278786
17,074
442
104
38.628959
0.807211
0.016516
0
0.357333
0
0.010667
0.177158
0.015288
0
0
0
0
0
1
0.053333
false
0
0.069333
0.002667
0.226667
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
3007e107fbb9661b8e7f7e4c1d4a01f5c735b272
21,175
py
Python
python/cli/report_study.py
mediumroast/mr_sdk
55c7a13c5cef73e677297026b41b7ec23855391f
[ "Apache-2.0" ]
1
2021-10-06T02:46:48.000Z
2021-10-06T02:46:48.000Z
python/cli/report_study.py
mediumroast/mr_sdk
55c7a13c5cef73e677297026b41b7ec23855391f
[ "Apache-2.0" ]
3
2021-10-16T03:34:07.000Z
2022-02-23T05:10:12.000Z
python/cli/report_study.py
mediumroast/mr_sdk
55c7a13c5cef73e677297026b41b7ec23855391f
[ "Apache-2.0" ]
null
null
null
#!/bin/env python3 import sys import argparse import configparser import docx from docx import Document from docx.shared import Pt, Inches from docx.enum.dml import MSO_THEME_COLOR_INDEX from docx.enum.section import WD_ORIENT, WD_SECTION from datetime import datetime from mediumroast.api.high_level import Auth as au...
39.653558
143
0.648501
2,754
21,175
4.736383
0.133624
0.037259
0.026219
0.030359
0.381631
0.312634
0.26104
0.231754
0.192426
0.189589
0
0.005774
0.231169
21,175
533
144
39.727955
0.795332
0.103566
0
0.28866
0
0
0.159712
0.004931
0
0
0
0
0
1
0.054124
false
0.005155
0.030928
0
0.100515
0.005155
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
300d26a47173ec68c9cbc913d71ba1fd8d873df4
17,388
py
Python
hubcheck/browser/browser.py
codedsk/hubcheck
2ff506eb56ba00f035300862f8848e4168452a17
[ "MIT" ]
1
2016-02-13T13:42:23.000Z
2016-02-13T13:42:23.000Z
hubcheck/browser/browser.py
codedsk/hubcheck
2ff506eb56ba00f035300862f8848e4168452a17
[ "MIT" ]
null
null
null
hubcheck/browser/browser.py
codedsk/hubcheck
2ff506eb56ba00f035300862f8848e4168452a17
[ "MIT" ]
null
null
null
import pprint import logging import datetime from selenium import webdriver import hubcheck.conf # block websites that make linkcheck slow # these are usually blocked by the workspace firewall # mozillalabs comes from using a nightly version of firefox browser # many of the others are from login authentication site...
45.046632
93
0.41868
1,428
17,388
5.037815
0.267507
0.055046
0.028913
0.040867
0.162775
0.034195
0.027245
0.019461
0.01112
0.01112
0
0.010867
0.470784
17,388
385
94
45.163636
0.770919
0.307223
0
0.093633
0
0
0.317729
0.180696
0
0
0
0
0
1
0.048689
false
0.007491
0.018727
0
0.097378
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
300f199f66802964a7132356800aed7b1a0be7f9
7,057
py
Python
appengine/gae_defer_manager/deferred_manager/tests.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
6
2018-07-31T16:48:07.000Z
2020-02-01T03:17:51.000Z
appengine/gae_defer_manager/deferred_manager/tests.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
41
2018-08-07T16:43:07.000Z
2020-06-05T18:54:50.000Z
appengine/gae_defer_manager/deferred_manager/tests.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
1
2018-08-07T16:40:18.000Z
2018-08-07T16:40:18.000Z
# -*- coding: utf8 -*- import datetime import mock import os import unittest import webapp2 from google.appengine.ext import testbed, deferred from google.appengine.api import queueinfo from . import models from .handler import application from .wrapper import defer TESTCONFIG_DIR = os.path.join( os.path.dirnam...
34.257282
102
0.69803
876
7,057
5.360731
0.186073
0.111158
0.035136
0.04983
0.585818
0.559412
0.465716
0.439523
0.439523
0.40609
0
0.008289
0.196542
7,057
205
103
34.42439
0.819929
0.016721
0
0.3125
0
0
0.053937
0.023652
0
0
0
0
0.270833
1
0.166667
false
0.020833
0.069444
0.006944
0.284722
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
30113171dc48ed74cadebf84f1f1fd11cb8f6566
4,023
py
Python
BdBG.py
rongjiewang/BdBG
b4a8fab0fa083aecab10f15431e37b0445722007
[ "MIT" ]
2
2018-11-21T06:39:34.000Z
2018-11-21T06:43:53.000Z
BdBG.py
rongjiewang/BdBG
b4a8fab0fa083aecab10f15431e37b0445722007
[ "MIT" ]
null
null
null
BdBG.py
rongjiewang/BdBG
b4a8fab0fa083aecab10f15431e37b0445722007
[ "MIT" ]
null
null
null
"""MIT License Copyright (c) 2018 rongjiewang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
36.243243
126
0.653492
517
4,023
4.984526
0.359768
0.046566
0.065968
0.032596
0.105937
0.074893
0.01785
0
0
0
0
0.006634
0.250559
4,023
110
127
36.572727
0.848093
0.268456
0
0.033333
0
0.016667
0.171731
0
0
0
0
0
0
1
0.033333
false
0
0.066667
0
0.116667
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
30119e15a78b5e7aea8cf1c27d45b2140994ce7e
10,820
py
Python
web/lib/console.py
jonathanverner/brython-jinja2
cec6e16de1750203a858d0acf590f230fc3bf848
[ "BSD-3-Clause" ]
2
2020-09-13T17:51:55.000Z
2020-11-25T18:47:12.000Z
web/lib/console.py
jonathanverner/brython-jinja2
cec6e16de1750203a858d0acf590f230fc3bf848
[ "BSD-3-Clause" ]
2
2020-11-25T19:18:15.000Z
2021-06-01T21:48:12.000Z
web/lib/console.py
jonathanverner/brython-jinja2
cec6e16de1750203a858d0acf590f230fc3bf848
[ "BSD-3-Clause" ]
null
null
null
""" This module provides the interactive Python console. """ import sys import traceback from browser import window class Console: """ A class providing a console widget. The constructor accepts a domnode which should be a textarea and it takes it over and turns it into a python inter...
39.926199
139
0.539464
1,154
10,820
4.906412
0.279029
0.059343
0.055104
0.039032
0.304839
0.237725
0.206111
0.183681
0.183681
0.175203
0
0.011079
0.365989
10,820
270
140
40.074074
0.814286
0.067837
0
0.361111
0
0
0.249673
0.004832
0
0
0
0
0
1
0.050926
false
0
0.013889
0
0.092593
0.023148
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
30124f8335d73ee7802841f7737a00cbfad26c9f
1,333
py
Python
lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
""" Test setting a breakpoint on an overloaded function by name. """ import re import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestBreakpointOnOverload(TestBase): mydir = TestBase.compute_mydir(__file__) def check_breakpoin...
35.078947
72
0.685671
170
1,333
5.247059
0.452941
0.084081
0.085202
0.089686
0.152466
0.152466
0
0
0
0
0
0.001942
0.227307
1,333
37
73
36.027027
0.864078
0.24006
0
0
0
0
0.131868
0
0
0
0
0
0.15
1
0.1
false
0
0.25
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30142c5188e376313f7d79178393a7007c7faa25
2,611
py
Python
Intermedio/28 Pomodoro/main.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
Intermedio/28 Pomodoro/main.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
Intermedio/28 Pomodoro/main.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
from tkinter import * # ---------------------------- CONSTANTS ------------------------------- # PINK = "#e2979c" RED = "#e7305b" GREEN = "#9bdeac" YELLOW = "#f7f5dd" FONT_NAME = "Courier" WORK_MIN = 25 SHORT_BREAK_MIN = 5 LONG_BREAK_MIN = 20 is_counting = False reps = 0 timer = None # ---------------------------- ...
27.484211
99
0.573727
332
2,611
4.36747
0.307229
0.055172
0.035862
0.046897
0.074483
0.034483
0.034483
0
0
0
0
0.041805
0.193795
2,611
94
100
27.776596
0.646556
0.146304
0
0.101449
0
0
0.066787
0
0
0
0
0
0
1
0.043478
false
0.014493
0.014493
0
0.057971
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
3017c55b6cc7146b6404407438f7cdac4217ef3c
2,529
py
Python
dtcwt/plotting.py
santosh653/dtcwt
01d9e87dc9abfa244a89c1f05aebf3dec6999f3a
[ "BSD-2-Clause" ]
61
2015-01-04T09:21:29.000Z
2022-03-07T16:25:02.000Z
dtcwt/plotting.py
santosh653/dtcwt
01d9e87dc9abfa244a89c1f05aebf3dec6999f3a
[ "BSD-2-Clause" ]
17
2015-04-02T13:37:07.000Z
2018-03-07T09:57:57.000Z
dtcwt/plotting.py
santosh653/dtcwt
01d9e87dc9abfa244a89c1f05aebf3dec6999f3a
[ "BSD-2-Clause" ]
26
2015-04-16T06:22:16.000Z
2021-12-07T09:17:44.000Z
""" Convenience functions for plotting DTCWT-related objects. """ from __future__ import absolute_import import numpy as np from matplotlib.pyplot import * __all__ = ( 'overlay_quiver', ) def overlay_quiver(image, vectorField, level, offset): """Overlays nicely coloured quiver plot of complex coefficients ...
34.643836
145
0.670621
349
2,529
4.819484
0.458453
0.017836
0.040428
0.017836
0.065398
0.043995
0.01308
0
0
0
0
0.034432
0.196125
2,529
72
146
35.125
0.792917
0.514433
0
0.090909
0
0
0.02415
0
0
0
0
0
0
1
0.045455
false
0
0.136364
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
301a3402ce430cb702ae2f205a2ed74937b55dc4
2,481
py
Python
graphdata/loglog.py
whalenpt/graphdata
d169150f860551d2049342ecf310dc1783987266
[ "MIT" ]
null
null
null
graphdata/loglog.py
whalenpt/graphdata
d169150f860551d2049342ecf310dc1783987266
[ "MIT" ]
null
null
null
graphdata/loglog.py
whalenpt/graphdata
d169150f860551d2049342ecf310dc1783987266
[ "MIT" ]
null
null
null
from graphdata.shared.shared1D import AuxPlotLabelLL1D from graphdata.shared.shared1D import ProcessData1D from graphdata.shared.shared1D import LoadData1D from graphdata.shared.figsizes import LogLogSize from graphdata.shared.shared import ExtendDictionary from graphdata.shared.shared import ProcessComplex from gr...
29.535714
96
0.646514
322
2,481
4.962733
0.360248
0.073217
0.071339
0.050688
0.13204
0.031289
0.031289
0
0
0
0
0.009424
0.272874
2,481
83
97
29.891566
0.876386
0.341798
0
0.133333
0
0
0.012402
0
0
0
0
0
0
1
0.022222
false
0
0.2
0
0.244444
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
301d726bb49a99005fdbccd8050406dd9847256c
5,387
py
Python
integration-testing/tests/suites/test_premium_account.py
pwei1018/bcrs-testing
318845dede6ce5994b74b976d01f36a503036551
[ "Apache-2.0" ]
2
2020-10-23T22:08:34.000Z
2021-10-19T19:37:21.000Z
integration-testing/tests/suites/test_premium_account.py
pwei1018/bcrs-testing
318845dede6ce5994b74b976d01f36a503036551
[ "Apache-2.0" ]
6
2020-09-29T23:05:34.000Z
2022-01-29T20:59:08.000Z
integration-testing/tests/suites/test_premium_account.py
pwei1018/bcrs-testing
318845dede6ce5994b74b976d01f36a503036551
[ "Apache-2.0" ]
10
2020-09-29T23:05:46.000Z
2021-11-29T23:07:10.000Z
import datetime import json import requests import pytest import random from tests.suites.test_payment import TestPayment from tests.utilities.settings import get_settings, get_test_data, setup_access_data @pytest.mark.incremental @pytest.mark.parametrize('login_session', setup_access_data('PREMIUM', ['BCSC']), indi...
51.304762
138
0.634305
599
5,387
5.427379
0.173623
0.16395
0.052292
0.070747
0.707782
0.689326
0.641956
0.605352
0.605352
0.507536
0
0.007954
0.253202
5,387
104
139
51.798077
0.800149
0.057732
0
0.518987
0
0
0.256915
0.164577
0
0
0
0
0.126582
1
0.126582
false
0.012658
0.088608
0
0.240506
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
30220c4e2730501b7f29fa25506bdd0fdf76716c
16,677
py
Python
ehr_ml/clmbr/__init__.py
som-shahlab/ehr_ml
4f83ac5b882916a175f0d242b38d914d00bf8a7c
[ "MIT" ]
4
2021-03-12T21:41:37.000Z
2021-06-25T16:49:52.000Z
ehr_ml/clmbr/__init__.py
som-shahlab/ehr_ml
4f83ac5b882916a175f0d242b38d914d00bf8a7c
[ "MIT" ]
22
2020-11-19T00:04:27.000Z
2022-03-02T18:16:08.000Z
ehr_ml/clmbr/__init__.py
som-shahlab/ehr_ml
4f83ac5b882916a175f0d242b38d914d00bf8a7c
[ "MIT" ]
2
2021-05-12T13:11:46.000Z
2021-10-15T18:30:14.000Z
from __future__ import annotations import argparse import pickle import numpy as np import json import logging import math import glob import random import os import sys import datetime import time from functools import partial from pathlib import Path from collections import defaultdict from shutil import copyfile f...
32.009597
128
0.59651
2,072
16,677
4.580598
0.179054
0.024655
0.04657
0.021073
0.340322
0.286482
0.227479
0.163629
0.10726
0.07544
0
0.012088
0.29064
16,677
520
129
32.071154
0.790194
0.01571
0
0.179775
0
0.002247
0.219906
0.025477
0
0
0
0
0.002247
1
0.013483
false
0
0.076404
0.006742
0.096629
0.022472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
302482d09ddf1f774c52862c7051a379cb2cfac1
8,215
py
Python
scenarios.py
Sanghyun-Hong/DeepSloth
92b3d0d3ef3f974d8bce7b4b4a1828776227e3c6
[ "MIT" ]
9
2020-12-16T04:55:57.000Z
2022-01-13T08:28:11.000Z
scenarios.py
Sanghyun-Hong/DeepSloth
92b3d0d3ef3f974d8bce7b4b4a1828776227e3c6
[ "MIT" ]
null
null
null
scenarios.py
Sanghyun-Hong/DeepSloth
92b3d0d3ef3f974d8bce7b4b4a1828776227e3c6
[ "MIT" ]
1
2021-10-11T06:21:04.000Z
2021-10-11T06:21:04.000Z
""" A script that partitions the dataset for transferability scenarios """ # basics import numpy as np from PIL import Image # torch... import torch # custom libs import utils # ------------------------------------------------------------------------------ # Misc. functions # ---------------------------------...
45.893855
216
0.667925
1,149
8,215
4.45953
0.136641
0.039032
0.046838
0.039032
0.622365
0.53064
0.356557
0.33509
0.32904
0.318891
0
0.014627
0.209373
8,215
179
217
45.893855
0.774288
0.102374
0
0.175258
0
0.020619
0.080312
0.041782
0
0
0
0
0
1
0.041237
false
0
0.041237
0
0.134021
0.072165
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
3026fa5fec5a07d66102ae71523732602b37bf87
6,637
py
Python
Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/games.py
TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning
2d8c12c2b5a4865c02934b63091945d3e2c92e90
[ "MIT" ]
null
null
null
Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/games.py
TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning
2d8c12c2b5a4865c02934b63091945d3e2c92e90
[ "MIT" ]
null
null
null
Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/games.py
TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning
2d8c12c2b5a4865c02934b63091945d3e2c92e90
[ "MIT" ]
null
null
null
# coding=utf-8 import numpy as np import imageio from gym import spaces import tkinter as tk from PIL import Image, ImageTk import matplotlib.pyplot as plt import time CELL, BLOCK, AGENT_GOAL, OPPONENT_GOAL, AGENT, OPPONENT = range(6) WIN, LOSE = 5, -5 UP, RIGHT, DOWN, LEFT, HOLD = range(5) UNIT = 40 class Soccer...
39.041176
178
0.552509
998
6,637
3.548096
0.152305
0.109291
0.012708
0.05281
0.57752
0.513697
0.487433
0.453544
0.433211
0.433211
0
0.042594
0.296068
6,637
169
179
39.272189
0.715325
0.061323
0
0.362903
0
0
0.009986
0
0
0
0
0
0
1
0.040323
false
0
0.056452
0
0.145161
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
302e8f1be7a7ffb783af9f6bd1bdc7f3405e6a18
745
py
Python
brainutils/context.py
jimbuho/django-brain
201237266a64e49b5c37f3d373ff6913dfbd099e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
brainutils/context.py
jimbuho/django-brain
201237266a64e49b5c37f3d373ff6913dfbd099e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
brainutils/context.py
jimbuho/django-brain
201237266a64e49b5c37f3d373ff6913dfbd099e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ .. module:: dbu - context :platform: Unix, Windows :synopsis: Contexto Principal por defecto .. moduleauthor:: Diego Gonzalez <dgonzalez.jim@gmail.com> """ from . import configuration from . import models def load_context(request): """ Load Context Description ...
19.102564
58
0.640268
74
745
6.297297
0.662162
0.038627
0.064378
0.06867
0
0
0
0
0
0
0
0.001792
0.251007
745
39
59
19.102564
0.833333
0.377181
0
0
0
0
0.082547
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
302ff0768eb4d4a5356d5db0b329d974eeccb455
689
py
Python
tests/trainer/test_multi_trainer.py
michael-aloys/knodle
393e7ba0558036828fb228875511977c40000ed5
[ "Apache-2.0" ]
71
2021-04-26T10:39:56.000Z
2022-03-28T14:36:16.000Z
tests/trainer/test_multi_trainer.py
michael-aloys/knodle
393e7ba0558036828fb228875511977c40000ed5
[ "Apache-2.0" ]
92
2021-04-08T12:49:38.000Z
2022-02-03T14:24:05.000Z
tests/trainer/test_multi_trainer.py
michael-aloys/knodle
393e7ba0558036828fb228875511977c40000ed5
[ "Apache-2.0" ]
10
2021-07-08T06:49:28.000Z
2022-01-15T23:28:13.000Z
from tests.trainer.generic import std_trainer_input_1 from knodle.trainer.multi_trainer import MultiTrainer def test_auto_train(std_trainer_input_1): ( model, model_input_x, rule_matches_z, mapping_rules_labels_t, y_labels ) = std_trainer_input_1 trainers = ["majority", "snorkel"...
25.518519
62
0.69521
94
689
4.691489
0.43617
0.090703
0.099773
0.108844
0.104308
0.104308
0
0
0
0
0
0.009416
0.229318
689
26
63
26.5
0.821092
0.053701
0
0
0
0
0.044615
0
0
0
0
0
0.052632
1
0.052632
false
0
0.105263
0
0.157895
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
3033df96925128ff7539e6a8f86e4620e486d85d
18,447
py
Python
iogt_content_migration/management/commands/load_v1_db.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
iogt_content_migration/management/commands/load_v1_db.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
iogt_content_migration/management/commands/load_v1_db.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path from django.core.management.base import BaseCommand from wagtail.core.models import Page, Site, Locale from django.core.files.images import ImageFile from wagtail.images.models import Image from wagtail_localize.models import Translation from wagtail_localize.views.submit_translations import Tr...
40.277293
152
0.58725
2,150
18,447
4.782791
0.11814
0.025382
0.015754
0.014004
0.4417
0.397744
0.350579
0.297092
0.273169
0.262958
0
0.006906
0.301404
18,447
457
153
40.365427
0.79103
0.001084
0
0.295567
0
0.002463
0.187246
0.010855
0
0
0
0
0
1
0.064039
false
0.012315
0.027094
0
0.115764
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
3033fd8167635b4a38bf68dbe82419686667a557
2,968
py
Python
run_files/cip_area_threshold/tissue_data/run_CIP_relaxation_times.py
jessiesrr/VTdyn
6f71ef94525d95221f5bd5e5290f4df10648cd18
[ "MIT" ]
null
null
null
run_files/cip_area_threshold/tissue_data/run_CIP_relaxation_times.py
jessiesrr/VTdyn
6f71ef94525d95221f5bd5e5290f4df10648cd18
[ "MIT" ]
null
null
null
run_files/cip_area_threshold/tissue_data/run_CIP_relaxation_times.py
jessiesrr/VTdyn
6f71ef94525d95221f5bd5e5290f4df10648cd18
[ "MIT" ]
null
null
null
import numpy as np import libs.contact_inhibition_lib as lib #library for simulation routines import libs.data as data import libs.plot as vplt #plotting library from structure.global_constants import * import structure.initialisation as init from structure.cell import Tissue, BasicSpringForceNoGrowth import matplotlib...
44.298507
143
0.738544
471
2,968
4.450106
0.312102
0.01813
0.017176
0.017176
0.11355
0.103053
0.069656
0.069656
0.069656
0.069656
0
0.032832
0.148248
2,968
67
144
44.298507
0.796282
0.065701
0
0
0
0
0.021763
0.01291
0
0
0
0
0
1
0.055556
false
0
0.166667
0.018519
0.240741
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
3035188b0c9611cb3581b6c9c987990a72ba1ab9
17,920
py
Python
TAPI_RI/flask_server/tapi_server/models/connection_end_point.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
TAPI_RI/flask_server/tapi_server/models/connection_end_point.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
TAPI_RI/flask_server/tapi_server/models/connection_end_point.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from tapi_server.models.base_model_ import Model from tapi_server.models.name_and_value import NameAndValue # noqa: F401,E501 from tapi_server.models.operational_state...
43.814181
536
0.69135
2,174
17,920
5.447562
0.101656
0.030904
0.123617
0.050156
0.777506
0.684877
0.611416
0.513806
0.42903
0.328717
0
0.015882
0.23404
17,920
408
537
43.921569
0.846933
0.461719
0
0.255952
0
0
0.177799
0.074395
0
0
0
0
0
1
0.154762
false
0
0.053571
0
0.291667
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
30357aaf0a514c1636520e15938cba9dc811ec7d
901
py
Python
idom_jupyter/jupyter_server_extension.py
idom-team/idom-jupyter
21037d41c51d4d9e23cca4486a850f2915f27d29
[ "MIT" ]
28
2020-09-12T19:59:27.000Z
2022-03-14T10:08:13.000Z
idom_jupyter/jupyter_server_extension.py
idom-team/idom-jupyter
21037d41c51d4d9e23cca4486a850f2915f27d29
[ "MIT" ]
11
2020-10-05T06:54:43.000Z
2022-02-19T21:16:31.000Z
idom_jupyter/jupyter_server_extension.py
idom-team/idom-jupyter
21037d41c51d4d9e23cca4486a850f2915f27d29
[ "MIT" ]
null
null
null
from urllib.parse import urljoin from appdirs import user_data_dir from notebook.notebookapp import NotebookApp from idom.config import IDOM_WED_MODULES_DIR from tornado.web import StaticFileHandler from tornado.web import Application IDOM_WED_MODULES_DIR.current = user_data_dir("idom-jupyter", "idom-team") def _l...
29.064516
73
0.712542
110
901
5.463636
0.4
0.039933
0.069884
0.084859
0.079867
0
0
0
0
0
0
0
0.206437
901
30
74
30.033333
0.840559
0.039956
0
0
0
0
0.067207
0.025492
0
0
0
0
0
1
0.045455
false
0
0.272727
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
303647975ecbe068790f55c360ba681d772f2c4f
1,033
py
Python
dobot_gym/envs/real/dobot_env.py
sandipan1/dobot_gym
acea98da2506653d45d55e15a036da583415f31d
[ "MIT" ]
1
2020-11-22T11:07:01.000Z
2020-11-22T11:07:01.000Z
dobot_gym/envs/real/dobot_env.py
sandipan1/dobot_gym
acea98da2506653d45d55e15a036da583415f31d
[ "MIT" ]
null
null
null
dobot_gym/envs/real/dobot_env.py
sandipan1/dobot_gym
acea98da2506653d45d55e15a036da583415f31d
[ "MIT" ]
1
2021-01-10T09:36:25.000Z
2021-01-10T09:36:25.000Z
## common class for only dobot with cam import gym from gym import utils from glob import glob from dobot_gym.utils.dobot_controller import DobotController from gym.spaces import MultiDiscrete class DobotRealEnv(gym.Env, utils.EzPickle): def __init__(self): super().__init__() # Find the port on ...
28.694444
60
0.648596
135
1,033
4.792593
0.481481
0.064915
0.046368
0
0
0
0
0
0
0
0
0.013141
0.263311
1,033
36
61
28.694444
0.837057
0.075508
0
0
0
0
0.047269
0
0
0
0
0
0
1
0.115385
false
0
0.192308
0.038462
0.423077
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3037ce4b050caa1080564ccd27af84ba3f81c62a
1,609
py
Python
Calibration/LumiAlCaRecoProducers/test/crab3_raw_corrC.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Calibration/LumiAlCaRecoProducers/test/crab3_raw_corrC.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Calibration/LumiAlCaRecoProducers/test/crab3_raw_corrC.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
######################### #Author: Sam Higginbotham ######################## from WMCore.Configuration import Configuration config = Configuration() #name='Pt11to30' config.section_("General") config.General.requestName = 'PCC_Run2017E_Corrections' config.General.workArea = 'RawPCCZeroBias2017' config.section_("JobT...
36.568182
163
0.778745
188
1,609
6.521277
0.579787
0.114193
0.030995
0.034258
0.04894
0.04894
0
0
0
0
0
0.100857
0.057178
1,609
43
164
37.418605
0.707317
0.252952
0
0
0
0.043478
0.371278
0.249562
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
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
3037ecccd158f87250f163febc7c04a882e857b4
6,819
py
Python
active_frame.py
binhhoangtieu/C3D-tensorflow
d85ef6156abc7fcdb4ab91e5b47a50c5ef5123c6
[ "MIT" ]
1
2019-02-11T15:47:52.000Z
2019-02-11T15:47:52.000Z
active_frame.py
binhhoangtieu/C3D-tensorflow
d85ef6156abc7fcdb4ab91e5b47a50c5ef5123c6
[ "MIT" ]
null
null
null
active_frame.py
binhhoangtieu/C3D-tensorflow
d85ef6156abc7fcdb4ab91e5b47a50c5ef5123c6
[ "MIT" ]
1
2018-12-04T04:55:19.000Z
2018-12-04T04:55:19.000Z
import cv2 import os import glob import numpy as np from operator import itemgetter # import matplotlib.pyplot as plt import math import scipy.stats as stats def main(): video_dir = './UCF-101' #./testdata result_dir = './UCF101-OF' #test-image loaddata(video_dir = video_dir, depth = 24, dest_forder=result_dir) de...
31.569444
110
0.706555
1,097
6,819
4.238833
0.195989
0.048387
0.014194
0.026022
0.34043
0.286237
0.224731
0.174624
0.174624
0.142581
0
0.029564
0.151782
6,819
216
111
31.569444
0.774378
0.137264
0
0.196319
0
0
0.009909
0
0
0
0
0
0
1
0.08589
false
0
0.042945
0.006135
0.202454
0.006135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
30393f74ae0c5c36f82aebb7e0b95f7f112a1231
1,133
py
Python
data_parser.py
JanoHorvath/k-means-clustering
c84e858c3e2bb417ffea11d441797a15c659a7ee
[ "MIT" ]
null
null
null
data_parser.py
JanoHorvath/k-means-clustering
c84e858c3e2bb417ffea11d441797a15c659a7ee
[ "MIT" ]
null
null
null
data_parser.py
JanoHorvath/k-means-clustering
c84e858c3e2bb417ffea11d441797a15c659a7ee
[ "MIT" ]
null
null
null
from random import randint class Dataset: def get_mock_scattered_dataset(self, numberOf, x_upper_bound, y_upper_bound): """ Mock 2D dataset with scattered data points. """ points = [] for i in range(numberOf): point = [randint(0,x_upper_bound), randint(0,y_upper_bound), 'blac...
33.323529
119
0.614298
151
1,133
4.470199
0.337748
0.118519
0.065185
0.048889
0.497778
0.385185
0.284444
0.284444
0.284444
0.284444
0
0.026829
0.276258
1,133
33
120
34.333333
0.796341
0.07767
0
0.421053
0
0
0.011737
0
0
0
0
0
0
1
0.105263
false
0
0.052632
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
303a0f7118c7766ed025bf5dc2723fe60db8bf3e
623
py
Python
backend/colleges/utils.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
4
2021-02-26T09:28:14.000Z
2021-07-08T19:21:57.000Z
backend/colleges/utils.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
35
2021-01-27T08:38:59.000Z
2021-12-13T19:42:38.000Z
backend/colleges/utils.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
5
2021-01-21T21:35:42.000Z
2022-01-06T10:07:58.000Z
from openpyxl import load_workbook def import_msmt_college_registry_xlsx(path, sheet_name): """ Import XLSX from https://regvssp.msmt.cz/registrvssp/cvslist.aspx (list of colleges and faculties). Parameters: path -- path to XLSX file sheet_name -- "ExportVS" or "ExportFakulty" """...
25.958333
69
0.638844
85
623
4.564706
0.576471
0.069588
0.030928
0
0
0
0
0
0
0
0
0.006424
0.250401
623
23
70
27.086957
0.824411
0.304976
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
303b9455bfc79c1d55b5b456a3c9a97a10ddaa26
5,706
py
Python
act/qc/arm.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
9
2019-03-11T19:41:34.000Z
2019-09-17T08:34:19.000Z
act/qc/arm.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
127
2019-03-18T12:24:17.000Z
2020-01-06T20:53:06.000Z
act/qc/arm.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
15
2019-03-11T15:30:56.000Z
2019-11-01T19:10:11.000Z
""" Functions specifically for working with QC/DQRs from the Atmospheric Radiation Measurement Program (ARM). """ import datetime as dt import numpy as np import requests from act.config import DEFAULT_DATASTREAM_NAME def add_dqr_to_qc( obj, variable=None, assessment='incorrect,suspect', exclude=No...
33.174419
91
0.608132
699
5,706
4.885551
0.354793
0.011713
0.015227
0.008785
0.115081
0.09019
0.054466
0.028111
0
0
0
0.004328
0.311602
5,706
171
92
33.368421
0.865071
0.400456
0
0.061728
0
0
0.163087
0.015251
0
0
0
0
0
1
0.012346
false
0
0.049383
0
0.074074
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
303d67c6ff0813b9d6fd68be88e83d8ab918ad04
9,018
py
Python
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 21 11:55:27 2021 Snow-Hydrology Repo for Evaluation, Analysis, and Decision-making Dashboard (shread_dash.py) Database Initialization This is part of dashboard loading database and other data into memory. The data for the database relies on a series of retrieval scripts ...
37.732218
118
0.662009
1,389
9,018
4.016559
0.237581
0.052698
0.045886
0.034415
0.253271
0.168668
0.04983
0.022943
0.013623
0
0
0.024575
0.178754
9,018
238
119
37.890756
0.728598
0.178643
0
0
0
0
0.247651
0.074881
0
0
0
0.004202
0
1
0.005917
false
0
0.04142
0
0.053254
0.017751
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
303f8a39fa8bc76e0faedd216816494e7f0cf74e
357
py
Python
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
import sys def write(): print('Creating new text file') name = 'test.txt' # Name of text file coerced with +.txt try: file = open(name,'a') # Trying to create a new file or open one file.close() except: print('Something went wrong! Can\'t tell what?') ...
22.3125
74
0.560224
50
357
4
0.72
0.08
0
0
0
0
0
0
0
0
0
0.004167
0.327731
357
16
75
22.3125
0.829167
0.246499
0
0
0
0
0.227092
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
304744cf40637da26f72f55057da5c765cb35850
27,025
py
Python
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
5
2021-08-19T15:24:08.000Z
2022-03-09T07:11:41.000Z
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
null
null
null
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
1
2021-11-10T07:55:06.000Z
2021-11-10T07:55:06.000Z
""" Construct, train neural-SDE models and simulate trajectories from the learnt models. """ # Copyright 2021 Sheng Wang. # Affiliation: Mathematical Institute, University of Oxford # Email: sheng.wang@maths.ox.ac.uk import numpy as np import os import pandas as pd import tensorflow as tf import tensorflow_probabilit...
35.006477
81
0.559704
3,483
27,025
4.069767
0.127476
0.018624
0.009877
0.008466
0.526702
0.454392
0.417213
0.385608
0.350335
0.333616
0
0.01626
0.342313
27,025
771
82
35.051881
0.781254
0.11704
0
0.347193
0
0
0.033069
0.015384
0
0
0
0
0
1
0.035343
false
0
0.02079
0
0.10395
0.008316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
304748bc2e685abf6332deae76ea083ce94212c7
2,641
py
Python
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
import random pedra = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' papel = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' tesoura = ''' _______ ---' ____)____ ______) __________) (____) -...
19.857143
99
0.584248
338
2,641
4.156805
0.180473
0.038434
0.064057
0.115302
0.495374
0.495374
0.478292
0.414235
0.397865
0.260498
0
0.008915
0.277925
2,641
132
100
20.007576
0.72732
0.040894
0
0.489362
0
0.106383
0.44396
0
0
0
0
0
0
1
0.095745
false
0
0.010638
0
0.106383
0.117021
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
30508657d97ad92eed583819ab3856787d5dae52
1,061
py
Python
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
from entity.message import Message from .databaserepo import DatabaseRepo class MessageDbRepo(DatabaseRepo): def __init__(self): super().__init__("Messages") def all(self, cid): query = "SELECT * FROM " + self.table + " WHERE conversation_id = '" + str(cid) + "'" m_results = self.db.s...
31.205882
93
0.556079
137
1,061
4.145985
0.335766
0.126761
0.047535
0.06338
0.397887
0.323944
0.323944
0.323944
0.323944
0.323944
0
0.017956
0.317625
1,061
33
94
32.151515
0.766575
0
0
0.392857
0
0
0.114986
0
0
0
0
0
0
1
0.142857
false
0
0.071429
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
3052b87761414206a80d473cc44e97d3436908e3
5,043
py
Python
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
1
2022-03-15T00:00:57.000Z
2022-03-15T00:00:57.000Z
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
null
null
null
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
null
null
null
import soundfile as sf from tqdm import tqdm import src.utils.interface_file_io as io import librosa import wave import multiprocessing import src.utils.interface_multiprocessing as mi import torchaudio import numpy as np import torch.nn.functional as F import torch torchaudio.set_audio_backend("sox_io") def audio_lo...
36.810219
114
0.691652
685
5,043
4.827737
0.281752
0.033263
0.036287
0.019958
0.166314
0.13547
0.095555
0.057454
0.057454
0.029634
0
0.021255
0.20702
5,043
136
115
37.080882
0.805701
0.052548
0
0.09901
0
0
0.049696
0.020969
0
0
0
0
0
1
0.108911
false
0
0.108911
0.009901
0.29703
0.029703
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
3052bcfb77f4439da2dc55fb76a58f27be220c78
6,318
py
Python
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
2
2022-01-16T16:16:52.000Z
2022-03-01T11:51:35.000Z
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
null
null
null
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
null
null
null
import math from typing import MutableSequence, Optional, TypeVar, Union import torch from torch import nn from torch import Tensor from torch.types import Number from einops import repeat T = TypeVar("T") def exists(val: Optional[T]) -> bool: return val is not None def default(val: Optional[T], d: T) -> T: ...
25.893443
80
0.623932
915
6,318
4.102732
0.250273
0.038359
0.03463
0.02797
0.225892
0.191529
0.111881
0.071923
0.036761
0.036761
0
0.011809
0.249446
6,318
243
81
26
0.77984
0.059513
0
0.195266
0
0
0.006254
0
0
0
0
0
0.011834
1
0.189349
false
0
0.04142
0.047337
0.426036
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
3053b63c3b7a677ef567ccc253454ec06d5b2791
828
py
Python
FB.py/blog.py
attia7/Test
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
null
null
null
FB.py/blog.py
attia7/Test
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
11
2020-03-24T17:40:26.000Z
2022-01-13T01:42:38.000Z
FB.py/blog.py
attia7/AttiaGit
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
null
null
null
class Blog: def __init__(self, title, photo, name,date,content): self.title = title self.photo = photo self.name = name self.date = date self.content = content blog1= Blog(title='python bisics', photo='https://images.pexels.com/photos/837140/pexels-photo-837140.jpeg', name='Yasser',date='10-06-2...
29.571429
109
0.711353
127
828
4.606299
0.330709
0.046154
0.076923
0.107692
0.536752
0.425641
0.425641
0.425641
0.425641
0.425641
0
0.096904
0.102657
828
27
110
30.666667
0.690444
0
0
0
0
0
0.380435
0
0
0
0
0
0
1
0.05
false
0
0
0
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
0
0
0
0
0
0
1
0
3057879143c17360d6498f89a5f3db75d2469ccb
4,075
py
Python
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
4
2019-03-26T15:54:35.000Z
2021-05-27T13:18:43.000Z
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
12
2019-04-23T14:45:04.000Z
2022-03-17T09:40:04.000Z
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
2
2019-06-15T17:21:14.000Z
2021-05-14T18:35:18.000Z
import logging from modules.common.GoogleBucketResource import GoogleBucketResource from modules.common.Utils import Utils from modules.common import create_output_dir, remove_output_dir from yapsy.PluginManager import PluginManager from definitions import PIS_OUTPUT_DIR logger = logging.getLogger(__name__) class Re...
43.351064
117
0.690307
518
4,075
5.225869
0.301158
0.049871
0.049132
0.019948
0.118212
0.070927
0
0
0
0
0
0.000319
0.230184
4,075
93
118
43.817204
0.862608
0.142822
0
0.044776
0
0
0.071901
0
0
0
0
0
0
1
0.134328
false
0
0.089552
0
0.268657
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
3062f03e110c5a790e2aa16881b269fc800f6f09
2,513
py
Python
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
1
2015-04-23T11:43:26.000Z
2015-04-23T11:43:26.000Z
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
#!python3 """ A simple script that uses Baidu Place API to search certain kinds of place in a range of circular space. This API can be called maximum 2000 times per day. """ import requests, json # import psycopg2 class ConvertFailure(Exception): def __str__(self): return "Convertion Failed." mykey = "In...
23.707547
78
0.634302
322
2,513
4.829193
0.425466
0.054019
0.048875
0.041158
0.236656
0.200643
0.150482
0.150482
0.150482
0.150482
0
0.029141
0.221647
2,513
105
79
23.933333
0.765849
0.221647
0
0.289855
0
0
0.184664
0.01252
0
0
0
0
0
1
0.043478
false
0.014493
0.014493
0.014493
0.086957
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
3063873cf1d375e656a6b627f5a8d2ac1ba1cb4a
2,293
py
Python
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
null
null
null
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
null
null
null
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
1
2021-06-11T12:38:38.000Z
2021-06-11T12:38:38.000Z
# -*- coding: utf-8 -*- import logging from pathlib import Path import click import torch from classifier import Classifier from torchvision import datasets, transforms @click.command() @click.argument('data_filepath', type=click.Path(), default='data') @click.argument('trained_model_filepath', type=click.Path(), ...
35.276923
78
0.645007
279
2,293
5.103943
0.476703
0.042135
0.042135
0.029494
0.082865
0.043539
0
0
0
0
0
0.006985
0.250763
2,293
64
79
35.828125
0.821886
0.163541
0
0
0
0
0.101526
0.024198
0
0
0
0
0
1
0.025
false
0
0.15
0
0.175
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
3068043469fb1de1fd2079110d1f76aaf77142ca
3,253
py
Python
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
from tkinter import* #=====importing self created module which will show the registartion form=======# import registrationform #=====importing self created module which will help in deleting student record from data base======# import deletestudent #=============importing selfcreated update student record ========...
61.377358
204
0.670765
411
3,253
5.209246
0.311436
0.087342
0.049043
0.058851
0.312471
0.236805
0.146193
0.146193
0.146193
0.146193
0
0.037509
0.106671
3,253
52
205
62.557692
0.698899
0.245927
0
0
0
0
0.173822
0.010101
0
0
0
0
0
1
0.026316
false
0
0.289474
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3069d018acdd28b4231703721ede5dfa5cd4942f
4,665
py
Python
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
124
2017-11-14T14:42:25.000Z
2022-03-31T08:02:07.000Z
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
65
2017-11-15T07:25:38.000Z
2022-01-31T10:38:45.000Z
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
31
2018-10-18T12:59:47.000Z
2022-02-11T16:54:43.000Z
"""Implementation of AvoidBlastMatches.""" from ..Specification import Specification, SpecEvaluation # from .VoidSpecification import VoidSpecification from ..biotools import blast_sequence from ..Location import Location class AvoidBlastMatches(Specification): """Enforce that the sequence has no BLAST matches ...
30.690789
78
0.609003
523
4,665
5.24283
0.313576
0.01787
0.030635
0.019694
0.080963
0.054705
0.027717
0.027717
0.027717
0
0
0.008772
0.315756
4,665
151
79
30.89404
0.850251
0.196999
0
0.04
0
0
0.017019
0
0
0
0
0
0
1
0.05
false
0.01
0.03
0.02
0.18
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
3069d773ef41f354c54cc922824a8eac7764671a
8,769
py
Python
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
2
2016-06-25T16:07:09.000Z
2020-01-18T01:56:30.000Z
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
null
null
null
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
null
null
null
from aadict import aadict from cachetools import LRUCache import ujson as json import regex from shortuuid import uuid from functools import wraps from glob import glob from time import time import logging import os import shutil import unicodedata _logger = logging.getLogger(__name__) _basepath = None _serialize =...
30.134021
73
0.655149
1,188
8,769
4.690236
0.207071
0.03733
0.022613
0.017947
0.174803
0.131371
0.092965
0.046662
0.046662
0.046662
0
0.001341
0.234462
8,769
290
74
30.237931
0.828691
0.294218
0
0.134503
0
0
0.046022
0
0
0
0
0
0.035088
1
0.134503
false
0.017544
0.070175
0
0.274854
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
306d9087bb69542cb8af6dee2a42b1098927e7a0
1,192
py
Python
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
"""Adds table for scicrunch rrids Revision ID: 39fa67f45cc0 Revises: 3452ca7b13e9 Create Date: 2020-12-15 18:16:03.581479+00:00 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "39fa67f45cc0" down_revision = "3452ca7b13e9" branch_labels = None depends_on = None ...
25.913043
65
0.605705
130
1,192
5.461538
0.492308
0.056338
0.084507
0.088732
0.349296
0.349296
0.267606
0.267606
0.143662
0.143662
0
0.061086
0.258389
1,192
45
66
26.488889
0.742081
0.266779
0
0.357143
0
0
0.148148
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
307114b26313aa3265e1bd2c48447893e64378ae
2,541
py
Python
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
import pymysql from tkinter import messagebox class Socios(): def abrir(self): bbdd= pymysql.connect( host= "localhost", user= "root", passwd="", db= "ejemplo1") return bbdd def alta(self,datos): ''' datos[0]: id datos[1]: nombre ''' bbdd=self.abrir() ...
21
104
0.547816
255
2,541
5.443137
0.301961
0.056196
0.057637
0.063401
0.603746
0.569885
0.526657
0.480548
0.434438
0.434438
0
0.009045
0.303817
2,541
120
105
21.175
0.775579
0.536009
0
0.4
0
0
0.059621
0
0
0
0
0
0
1
0.12
false
0.04
0.08
0
0.32
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
30713a8fbba0af913226f90bffb00ec0ccd49f74
1,420
py
Python
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import sys import json import das_client def dasFileQuery(dataset): query = 'dataset dataset=%s' % dataset host = 'https://cmsweb.cern.ch' # default idx = 0 # default limit = 0 # unlimited debug = 0 # defaul...
39.444444
86
0.554225
178
1,420
4.393258
0.38764
0.092072
0.053708
0.051151
0.222506
0.222506
0.222506
0.14578
0.14578
0.14578
0
0.014418
0.316197
1,420
35
87
40.571429
0.790937
0.141549
0
0.206897
0
0
0.18807
0
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.241379
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
3073c042c76656cc6f035106fb8e66424b847e5f
477
py
Python
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
import pickle # pickle can serialize python objects data = {1:"hi", 2: "there"} # convert to byte byte_data = pickle.dumps(data) # convert back to python object data2 = pickle.loads(byte_data) # ----------using with files---------- filename = "" # write to a file pickle.dump(data, open(filename, "wb" )) with op...
17.666667
58
0.677149
68
477
4.691176
0.558824
0.112853
0.087774
0
0
0
0
0
0
0
0
0.007481
0.159329
477
26
59
18.346154
0.78803
0.312369
0
0
0
0
0.040752
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
30750377e92de60cf64b84cb659e89e05ec986a3
4,676
py
Python
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
3
2020-10-22T06:18:17.000Z
2021-03-19T16:49:00.000Z
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
11
2019-11-01T23:04:31.000Z
2022-02-10T12:32:11.000Z
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
null
null
null
from os import sys, path from resolver.models import * sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) sys.path.append('/home/app') from client.lib.cactus_client import CactusClient def run(): Organization.objects.all().delete() Inchi.objects.all().delete() Publisher.objects.all().d...
27.833333
111
0.594311
523
4,676
5.24283
0.323136
0.03647
0.047411
0.054705
0.259664
0.213713
0.141867
0.112691
0.073304
0
0
0.028402
0.27716
4,676
167
112
28
0.78284
0.049829
0
0.096296
0
0
0.286262
0.026844
0
0
0
0
0
1
0.007407
false
0
0.022222
0
0.02963
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
307b75907e2ef43110ad5b30dc9de4dad44b596b
1,454
py
Python
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.utils.translation import ugettext_lazy as _ from .views import DeleteRole, EditRole, NewRole, RolesList, RoleUsers class MisagoAdminExtension(object): def register_urlpatterns(self, urlpatterns): # Permissions section urlpatterns.namespace(r'^permissio...
37.282051
79
0.586657
156
1,454
5.378205
0.365385
0.091776
0.059595
0.096544
0.085816
0.085816
0
0
0
0
0
0
0.253783
1,454
38
80
38.263158
0.773272
0.017194
0
0.129032
0
0
0.278401
0.143058
0
0
0
0
0
1
0.064516
false
0
0.096774
0
0.193548
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
307c7a8c88bf6ef5840be4d2b400a14178b101d4
5,138
py
Python
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
71
2020-04-06T08:23:30.000Z
2022-03-21T03:40:11.000Z
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
10
2020-04-11T14:45:52.000Z
2021-08-19T04:44:13.000Z
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
8
2020-05-19T12:18:49.000Z
2022-03-22T08:04:27.000Z
from base import * import utils.neuralrenderer_render as nr class Visualizer(object): def __init__(self,high_resolution=False): self.high_resolution = high_resolution self.renderer = nr.get_renderer(high_resolution=self.high_resolution).cuda() def visualize_renderer(self,verts,images):...
49.883495
194
0.571039
680
5,138
4.142647
0.214706
0.079517
0.022364
0.022719
0.28612
0.242102
0.220092
0.200923
0.122826
0.122826
0
0.033016
0.263137
5,138
103
195
49.883495
0.711041
0.107824
0
0.168831
0
0
0.017901
0
0
0
0
0
0
1
0.064935
false
0
0.025974
0
0.116883
0.025974
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
307f461b2850c76795bf48a0896004e467675d49
455
py
Python
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
3
2015-11-26T11:44:57.000Z
2021-12-07T18:08:53.000Z
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
5
2016-04-22T10:06:41.000Z
2022-02-27T02:53:10.000Z
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
null
null
null
import wsgiref.util import flask from proxy import proxy # pylint: disable=W0212 def test_happy_path(): environ = { "REQUEST_METHOD": "GET", "PATH_INFO": "/locationforecast/1.9/", "QUERY_STRING": "lat=59.31895603;lon=18.0517762", "HTTP_REFERER": "https://walles.github.io/weather...
21.666667
64
0.674725
54
455
5.5
0.722222
0.074074
0
0
0
0
0
0
0
0
0
0.06812
0.193407
455
20
65
22.75
0.741144
0.046154
0
0
0
0
0.321759
0.12037
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3080c9c3e2fa02a8d02d8a5c53a2bd5e45b99323
6,756
py
Python
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
17
2021-07-26T01:03:59.000Z
2022-01-23T10:31:56.000Z
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
2
2021-12-10T09:53:48.000Z
2022-01-25T17:08:41.000Z
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
3
2021-09-14T11:39:35.000Z
2022-01-23T06:51:48.000Z
import os import numpy as np import argparse import logging import random import pickle from pprint import pformat from exps.data import ParticleNetDataset from settree.set_data import SetDataset, OPERATIONS, merge_init_datasets import exps.eval_utils as eval from exps.eval_utils import create_logger data_root = '/ho...
43.87013
112
0.568532
789
6,756
4.532319
0.238276
0.061521
0.098434
0.031879
0.35962
0.311521
0.276846
0.141779
0.11717
0.11717
0
0.01313
0.312315
6,756
153
113
44.156863
0.756565
0.010213
0
0.15748
0
0
0.173399
0.02319
0
0
0
0
0
1
0.015748
false
0.007874
0.086614
0
0.11811
0.007874
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
061a89369cd09d094301833ef16484b3a48346f9
2,801
py
Python
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
103
2021-09-25T03:03:32.000Z
2022-03-20T19:13:48.000Z
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
null
null
null
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
6
2021-09-27T17:50:23.000Z
2022-02-15T22:44:12.000Z
"""Manage Wonk's configuration.""" import pathlib from typing import Any, Dict, List import yaml from pydantic import BaseModel from toposort import toposort_flatten # type: ignore from wonk.exceptions import UnknownParentError class PolicySet(BaseModel): """Describes a policy set.""" name: str manag...
30.11828
98
0.672617
367
2,801
4.978202
0.326975
0.098522
0.041051
0.01642
0.085386
0.067871
0.03503
0
0
0
0
0
0.241342
2,801
92
99
30.445652
0.859765
0.265976
0
0.08
0
0
0.011917
0
0
0
0
0
0
1
0.08
false
0
0.12
0
0.42
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
061be587da4bb712ec3ad5fa16ba9684df1988f9
5,325
py
Python
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
25
2021-11-08T12:48:09.000Z
2022-03-29T02:56:18.000Z
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
12
2021-10-04T05:59:56.000Z
2022-03-29T06:06:17.000Z
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
6
2021-11-26T09:27:18.000Z
2022-02-24T14:52:01.000Z
# Copyright 2021 Arm Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
40.037594
105
0.637934
725
5,325
4.441379
0.268966
0.047205
0.041925
0.039752
0.298137
0.206522
0.13882
0.13882
0.111801
0.08882
0
0.004831
0.261408
5,325
132
106
40.340909
0.813883
0.209765
0
0.2
0
0
0.011055
0
0
0
0
0
0
1
0.1
false
0
0.022222
0.011111
0.211111
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
061ff9f824e772b63623e52f1ce6ebb062cf98da
3,192
py
Python
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
65
2017-09-24T19:38:34.000Z
2022-01-18T16:07:05.000Z
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
null
null
null
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
22
2017-10-01T12:55:38.000Z
2022-01-13T19:33:15.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.466667
79
0.635965
410
3,192
4.736585
0.456098
0.030896
0.037075
0.021627
0.053553
0.027806
0
0
0
0
0
0.015344
0.285401
3,192
89
80
35.865169
0.836037
0.274123
0
0.036364
0
0
0.139687
0
0
0
0
0
0
1
0.018182
false
0
0.090909
0
0.109091
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0624b48ea9d4dc4aaa2193d16b26d5a5663fbaf2
1,578
py
Python
tests/cli_test.py
chineseluo/opensourcetest
b0d222c8b29ff8f70a740ac2b1588a437d41b761
[ "Apache-2.0" ]
69
2020-10-20T14:25:49.000Z
2022-02-18T02:50:20.000Z
tests/cli_test.py
aoozoo/opensourcetest
6eaff706c9397847834ef3eef7ad57d5b7f5c5a3
[ "Apache-2.0" ]
6
2020-11-23T06:56:09.000Z
2022-03-16T04:33:53.000Z
tests/cli_test.py
aoozoo/opensourcetest
6eaff706c9397847834ef3eef7ad57d5b7f5c5a3
[ "Apache-2.0" ]
8
2021-02-01T03:23:20.000Z
2022-02-18T02:50:47.000Z
#!/user/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------ @Project : opensourcetest @Time : 2020/11/12 15:01 @Auth : chineseluo @Email : 848257135@qq.com @File : cli_test.py @IDE : PyCharm ------------------------------------ """ import os import sys import unittest from op...
27.684211
49
0.591255
188
1,578
4.819149
0.335106
0.046358
0.072848
0.092715
0.646799
0.646799
0.560706
0.560706
0.560706
0.560706
0
0.023451
0.243346
1,578
56
50
28.178571
0.735343
0.166667
0
0.514286
0
0
0.063553
0
0
0
0
0
0.342857
1
0.171429
false
0
0.114286
0
0.314286
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
0625d68871943fd8a255cbe675fa3fb3bffccaf0
2,364
py
Python
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
null
null
null
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
2
2021-05-28T10:56:22.000Z
2021-05-28T10:56:35.000Z
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
1
2021-12-31T15:08:27.000Z
2021-12-31T15:08:27.000Z
import socket import struct import config import json import threading import random def multicast_handler(client_port: int): # create the datagram socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind(('', client_port)) # set a timeout so the socket does not block indefinitely when...
32.383562
94
0.629019
304
2,364
4.769737
0.427632
0.024828
0.049655
0.027586
0.089655
0.089655
0.089655
0
0
0
0
0.012317
0.278765
2,364
72
95
32.833333
0.838123
0.189086
0
0.18
0
0
0.163255
0.011024
0
0
0
0
0
1
0.04
false
0
0.12
0
0.16
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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