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
22f9996e35b6cbbaeea6e8c3929b7498dd603017
4,471
py
Python
ppq/utils/round.py
xiguadong/ppq
6c71adb3c2a8ca95967f101724b5e4b3e6f761ff
[ "Apache-2.0" ]
null
null
null
ppq/utils/round.py
xiguadong/ppq
6c71adb3c2a8ca95967f101724b5e4b3e6f761ff
[ "Apache-2.0" ]
null
null
null
ppq/utils/round.py
xiguadong/ppq
6c71adb3c2a8ca95967f101724b5e4b3e6f761ff
[ "Apache-2.0" ]
null
null
null
from decimal import ROUND_HALF_DOWN, ROUND_HALF_EVEN, ROUND_HALF_UP, Decimal from math import ceil, floor, log2 from typing import Union import torch from ppq.core import RoundingPolicy def ppq_numerical_round(value: float, policy: RoundingPolicy=RoundingPolicy.ROUND_HALF_EVEN) -> int: """ reference...
45.622449
138
0.698054
577
4,471
5.246101
0.188908
0.083251
0.121573
0.114965
0.588702
0.543773
0.429468
0.373637
0.305253
0.185993
0
0.011841
0.206665
4,471
97
139
46.092784
0.841556
0.294565
0
0.339623
0
0
0.098643
0
0
0
0
0
0.056604
1
0.056604
false
0
0.09434
0
0.358491
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22f9fe832c0a98e82946d0744a46553bfba443ca
11,944
py
Python
python/repair/train.py
maropu/scavenger
03a935968f4aa507d4d98c8ca528195b770757d9
[ "Apache-2.0" ]
null
null
null
python/repair/train.py
maropu/scavenger
03a935968f4aa507d4d98c8ca528195b770757d9
[ "Apache-2.0" ]
2
2019-12-22T13:29:07.000Z
2020-01-07T11:55:41.000Z
python/repair/train.py
maropu/scavenger
03a935968f4aa507d4d98c8ca528195b770757d9
[ "Apache-2.0" ]
1
2020-10-26T20:07:28.000Z
2020-10-26T20:07:28.000Z
#!/usr/bin/env python3 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "L...
40.62585
120
0.654638
1,668
11,944
4.433453
0.231415
0.019473
0.030291
0.029885
0.171738
0.108316
0.08073
0.072076
0.045166
0.036782
0
0.011068
0.228399
11,944
293
121
40.764505
0.791341
0.17289
0
0.080952
0
0
0.149049
0.0234
0
0
0
0.003413
0
1
0.052381
false
0
0.119048
0.009524
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22fa19437d01af6a56a8a1b30127d97248a1bdcd
519
py
Python
howl/roomsensor/urls.py
volzotan/django-howl
3b11c530da95d152844934da09592619b3d4497f
[ "MIT" ]
null
null
null
howl/roomsensor/urls.py
volzotan/django-howl
3b11c530da95d152844934da09592619b3d4497f
[ "MIT" ]
null
null
null
howl/roomsensor/urls.py
volzotan/django-howl
3b11c530da95d152844934da09592619b3d4497f
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from roomsensor import views urlpatterns = patterns('', url(r'^$', views.index, name='roomsensor'), # ex: /roomsensor/name/ url(r'^(?P<roomsensor_name>\w+)/$', views.display, name='roomsensor_display'), url(r'^(?P<roomsensor_name>\w+)/read/$', views.read, na...
37.071429
138
0.672447
69
519
4.956522
0.405797
0.046784
0.04386
0.131579
0.175439
0.175439
0
0
0
0
0
0
0.117534
519
14
139
37.071429
0.746725
0.096339
0
0
0
0.125
0.438972
0.304069
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22fc97fb3dafaa3d0c68a5549bbe8a39af3d15d4
7,031
py
Python
app.py
kosovojs/wikibooster
70a9d9d7bf41be9fa5e58d40fba216d9b6df008d
[ "MIT" ]
null
null
null
app.py
kosovojs/wikibooster
70a9d9d7bf41be9fa5e58d40fba216d9b6df008d
[ "MIT" ]
17
2019-07-08T15:32:18.000Z
2021-01-03T10:30:55.000Z
app.py
kosovojs/wikibooster
70a9d9d7bf41be9fa5e58d40fba216d9b6df008d
[ "MIT" ]
1
2019-08-28T21:23:48.000Z
2019-08-28T21:23:48.000Z
import flask from flask import Flask from flask import jsonify from flask import request from flask_cors import CORS, cross_origin from flask import render_template import mwoauth import requests_oauthlib import os import yaml import mwapi from tasks.main import Tasks from save import Save from db import DB from typ...
29.542017
156
0.729768
911
7,031
5.493963
0.232711
0.027173
0.028571
0.011988
0.314685
0.281718
0.275325
0.247752
0.214985
0.197802
0
0.001926
0.114066
7,031
238
157
29.542017
0.801573
0.039824
0
0.267045
0
0
0.171191
0.018098
0
0
0
0
0
1
0.107955
false
0
0.085227
0.005682
0.340909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22fcb38b78558c9add6900dca954fd92ecf359b7
1,483
py
Python
pre_embed.py
shelleyyyyu/few_shot
0fe54444e820fe3201927e6363682913b6d61028
[ "Apache-2.0" ]
253
2018-08-29T18:59:00.000Z
2022-03-15T04:53:47.000Z
pre_embed.py
shelleyyyyu/few_shot
0fe54444e820fe3201927e6363682913b6d61028
[ "Apache-2.0" ]
18
2018-10-24T09:49:44.000Z
2022-03-31T14:39:37.000Z
pre_embed.py
shelleyyyyu/few_shot
0fe54444e820fe3201927e6363682913b6d61028
[ "Apache-2.0" ]
38
2018-10-17T07:43:25.000Z
2022-03-05T12:20:33.000Z
import numpy as np from collections import defaultdict, Counter import random import json from tqdm import tqdm def transX(dataset): rel2id = json.load(open(dataset + '/relation2ids')) ent2id = json.load(open(dataset + '/ent2ids')) with open('../Fast-TransX/' + dataset + '_base/entity2id.txt', 'w') as...
32.23913
95
0.55091
202
1,483
3.915842
0.336634
0.075853
0.045512
0.068268
0.249052
0.158028
0.04804
0.04804
0
0
0
0.03318
0.268375
1,483
46
96
32.23913
0.695853
0
0
0.055556
0
0
0.121294
0.014151
0
0
0
0
0
1
0.027778
false
0
0.138889
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
22fd80b994ca4f5c482661c444d74e7a50232ab0
7,673
py
Python
botc/gamemodes/troublebrewing/FortuneTeller.py
Xinverse/BOTC-Bot
1932c649c81a5a1eab735d7abdee0761c2853940
[ "MIT" ]
1
2020-06-21T17:20:17.000Z
2020-06-21T17:20:17.000Z
botc/gamemodes/troublebrewing/FortuneTeller.py
BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot
1932c649c81a5a1eab735d7abdee0761c2853940
[ "MIT" ]
1
2020-07-07T03:47:44.000Z
2020-07-07T03:47:44.000Z
botc/gamemodes/troublebrewing/FortuneTeller.py
BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot
1932c649c81a5a1eab735d7abdee0761c2853940
[ "MIT" ]
1
2022-02-18T00:42:19.000Z
2022-02-18T00:42:19.000Z
"""Contains the Fortune Teller Character class""" import json import random import discord import datetime from botc import Action, ActionTypes, Townsfolk, Character, Storyteller, RedHerring, \ RecurringAction, Category, StatusList from botc.BOTCUtils import GameLogic from ._utils import TroubleBrewing, TBRole im...
41.032086
115
0.644598
898
7,673
5.292873
0.269488
0.065643
0.020198
0.024195
0.18178
0.132127
0.1174
0.045024
0.045024
0.025247
0
0.008134
0.263
7,673
186
116
41.252688
0.832361
0.17516
0
0.090909
0
0
0.136893
0.033433
0
0
0
0
0.018182
1
0.045455
false
0.027273
0.072727
0
0.163636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22fdcdf03da29d4d6e3f5e50e7e03925c3c15cdd
10,849
py
Python
src/schmetterling/build/tests/test_maven.py
bjuvensjo/schmetterling
0cdbfe4f379a081d9d4711dd21866b90983365cf
[ "Apache-2.0" ]
null
null
null
src/schmetterling/build/tests/test_maven.py
bjuvensjo/schmetterling
0cdbfe4f379a081d9d4711dd21866b90983365cf
[ "Apache-2.0" ]
null
null
null
src/schmetterling/build/tests/test_maven.py
bjuvensjo/schmetterling
0cdbfe4f379a081d9d4711dd21866b90983365cf
[ "Apache-2.0" ]
null
null
null
from unittest.mock import call, MagicMock, patch from schmetterling.build.maven import build_multi_modules from schmetterling.build.maven import create_build_result from schmetterling.build.maven import create_command from schmetterling.build.maven import create_multi_modules from schmetterling.build.maven import crea...
33.381538
107
0.461702
940
10,849
5.07234
0.138298
0.077601
0.091653
0.058725
0.540898
0.412752
0.353188
0.301594
0.226091
0.186661
0
0.008349
0.392755
10,849
324
108
33.484568
0.715392
0
0
0.51634
0
0
0.306849
0.076228
0
0
0
0
0.062092
1
0.026144
false
0
0.035948
0
0.062092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22fe0847296c50b27120f9c55084e9eba84b2a5a
1,753
py
Python
Copados y Clases/Mastermind_DEBUG.py
FdelMazo/7540rw-Algo1
8900604873195df9e902ead6bcb67723a8b654c8
[ "MIT" ]
1
2021-11-20T18:41:34.000Z
2021-11-20T18:41:34.000Z
Copados y Clases/Mastermind_DEBUG.py
FdelMazo/7540rw-Algo1
8900604873195df9e902ead6bcb67723a8b654c8
[ "MIT" ]
null
null
null
Copados y Clases/Mastermind_DEBUG.py
FdelMazo/7540rw-Algo1
8900604873195df9e902ead6bcb67723a8b654c8
[ "MIT" ]
null
null
null
#Sacar las lineas con DEBUG para que el juego funcione import random DIGITOS = 4 def mastermind(): """Funcion principal del juego Mastermind""" print("Bienvenido al Mastermind!") print("Instrucciones: Tenes que adivinar un codigo de {} digitos distintos. Tu cantidad de aciertos son los numeros que estan corr...
37.297872
263
0.697091
217
1,753
5.612903
0.410138
0.036946
0.01642
0.027915
0.029557
0
0
0
0
0
0
0.011855
0.181974
1,753
47
264
37.297872
0.837517
0.096977
0
0.102564
0
0.025641
0.322602
0
0
0
0
0
0
1
0.076923
false
0
0.025641
0
0.153846
0.179487
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22ffabcfd90f7354812821f61ad46409c8d4a120
15,233
py
Python
PyPortal_User_Interface/code.py
RichardA1/Adafruit_Learning_System_Guides
7d06d8a126f357a431384c3af73339cb46f44c19
[ "MIT" ]
1
2022-01-31T21:55:48.000Z
2022-01-31T21:55:48.000Z
PyPortal_User_Interface/code.py
aadisalimani/Adafruit_Learning_System_Guides
1b18cfcd6d426bf018545fd7b4102a8196c11c16
[ "MIT" ]
null
null
null
PyPortal_User_Interface/code.py
aadisalimani/Adafruit_Learning_System_Guides
1b18cfcd6d426bf018545fd7b4102a8196c11c16
[ "MIT" ]
null
null
null
import time import board import displayio import busio from analogio import AnalogIn import neopixel import adafruit_adt7410 from adafruit_bitmap_font import bitmap_font from adafruit_display_text.label import Label from adafruit_button import Button import adafruit_touchscreen from adafruit_pyportal import PyPortal #...
35.508159
89
0.594433
1,861
15,233
4.70446
0.192907
0.011879
0.012336
0.014392
0.380126
0.35671
0.339121
0.309766
0.256539
0.202513
0
0.051023
0.310379
15,233
428
90
35.591122
0.782294
0.164511
0
0.297214
0
0
0.048139
0.007205
0
0
0.034521
0
0
1
0.021672
false
0.027864
0.037152
0
0.068111
0.037152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe00cf45d1015948865b349bcd27a15e243e3e66
7,741
py
Python
btse_futures/order.py
yottatix/btse-python
1c5019d0a68dff797afc70c4cc32c1950c28af4e
[ "MIT" ]
null
null
null
btse_futures/order.py
yottatix/btse-python
1c5019d0a68dff797afc70c4cc32c1950c28af4e
[ "MIT" ]
null
null
null
btse_futures/order.py
yottatix/btse-python
1c5019d0a68dff797afc70c4cc32c1950c28af4e
[ "MIT" ]
null
null
null
import json from btse_futures.constants import OrderType, Side, TimeInForce class Order: """ Class to represent a BTSE Order ... Attributes ---------- size : int order quantity or size. e.g. 1 price : float price. e.g. 7000.0 side: str order side. B...
33.510823
274
0.612324
838
7,741
5.523866
0.186158
0.062
0.062216
0.009073
0.067617
0.041262
0.023763
0.023763
0.023763
0
0
0.023912
0.281488
7,741
230
275
33.656522
0.808342
0.245317
0
0.162963
0
0
0.076395
0.005057
0
0
0
0
0.066667
1
0.059259
false
0
0.014815
0.007407
0.133333
0.007407
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe00feaeeab5dd9b94bc8b6fc0a0dcbedc801a5d
2,037
py
Python
tests/mock_responses.py
md-reddevil/blinkpy
3c7892385352079227c6251eb88257870bea0bb3
[ "MIT" ]
null
null
null
tests/mock_responses.py
md-reddevil/blinkpy
3c7892385352079227c6251eb88257870bea0bb3
[ "MIT" ]
null
null
null
tests/mock_responses.py
md-reddevil/blinkpy
3c7892385352079227c6251eb88257870bea0bb3
[ "MIT" ]
null
null
null
"""Simple mock responses definitions.""" from blinkpy.helpers.util import BlinkURLHandler import blinkpy.helpers.constants as const LOGIN_RESPONSE = { 'region': {'mock': 'Test'}, 'networks': { '1234': {'name': 'test', 'onboarded': True} }, 'authtoken': {'authtoken': 'foobar123', 'message': 'au...
28.291667
65
0.573883
220
2,037
5.181818
0.377273
0.035088
0.031579
0.031579
0.049123
0.049123
0
0
0
0
0
0.028413
0.291605
2,037
71
66
28.690141
0.761608
0.106529
0
0.117647
0
0
0.134529
0
0
0
0
0
0
1
0.078431
false
0.019608
0.039216
0
0.215686
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe01b90ce53e119b08e13770e4500dbf262d962f
2,061
py
Python
fits_tools.py
steveschulze/Photometry
3bc4ce457a270962321176d0e3e288b5a96cd34b
[ "BSD-2-Clause" ]
6
2020-03-05T20:58:35.000Z
2022-02-13T20:18:46.000Z
fits_tools.py
steveschulze/Photometry
3bc4ce457a270962321176d0e3e288b5a96cd34b
[ "BSD-2-Clause" ]
1
2020-03-10T00:03:46.000Z
2020-03-10T00:03:46.000Z
fits_tools.py
steveschulze/Photometry
3bc4ce457a270962321176d0e3e288b5a96cd34b
[ "BSD-2-Clause" ]
1
2020-11-26T10:38:47.000Z
2020-11-26T10:38:47.000Z
from astropy import coordinates as coord from astropy import wcs from astropy.io import fits from astropy import units as u from misc import bcolors import numpy as np import os def convert_hms_dd(RA, DEC): ''' Convert HMS to DD system ''' if (':' in RA) and (':' in DEC): Coord_dd = coord.SkyCoord(RA, DEC...
21.247423
111
0.622028
327
2,061
3.856269
0.314985
0.00793
0.06027
0.054718
0.127676
0.0682
0.033307
0
0
0
0
0.013301
0.197477
2,061
96
112
21.46875
0.749093
0.068413
0
0.127273
0
0
0.094984
0
0
0
0
0
0
1
0.090909
false
0
0.127273
0
0.327273
0.054545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe028f3f35a9ad5d36908ec80630b139c6300e3c
2,155
py
Python
test_stbp_snn_eval.py
neurom-iot/n3ml
39c6b50661f293d58b4b37ef613643860724bb24
[ "MIT" ]
11
2019-03-15T17:20:54.000Z
2022-03-01T08:25:36.000Z
test_stbp_snn_eval.py
neurom-iot/n3ml
39c6b50661f293d58b4b37ef613643860724bb24
[ "MIT" ]
7
2019-03-15T16:02:51.000Z
2021-12-03T08:17:06.000Z
test_stbp_snn_eval.py
neurom-iot/n3ml
39c6b50661f293d58b4b37ef613643860724bb24
[ "MIT" ]
9
2019-10-14T12:38:19.000Z
2021-12-02T04:49:28.000Z
import argparse import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms from n3ml.model import DynamicModel_STBP_SNN def validate(val_loader, model, encoder, criterion, opt): model.eval() total_images = 0 num_corrects = 0 total_loss = 0 with torch.no_g...
28.355263
86
0.647332
277
2,155
4.837545
0.371841
0.033582
0.050746
0.032836
0.128358
0.061194
0.061194
0
0
0
0
0.014934
0.223202
2,155
75
87
28.733333
0.785544
0
0
0
0
0
0.05522
0.016241
0
0
0
0
0
1
0.039216
false
0
0.117647
0
0.176471
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe03d9810588ad4d8d061ca21558f5e026141e64
2,334
py
Python
kaggle_melanoma/schedulers.py
tinve/kaggle_melanoma
6d2d16d62a394fd9cc2498bdf1a19ce60fe047eb
[ "MIT" ]
8
2020-06-01T10:42:40.000Z
2022-02-17T08:42:49.000Z
kaggle_melanoma/schedulers.py
tinve/kaggle_melanoma
6d2d16d62a394fd9cc2498bdf1a19ce60fe047eb
[ "MIT" ]
null
null
null
kaggle_melanoma/schedulers.py
tinve/kaggle_melanoma
6d2d16d62a394fd9cc2498bdf1a19ce60fe047eb
[ "MIT" ]
2
2020-06-08T22:34:38.000Z
2022-02-24T03:15:59.000Z
import math from torch.optim.lr_scheduler import _LRScheduler from torch.optim.optimizer import Optimizer class PolyLR(_LRScheduler): """ Sets the learning rate of each parameter group according to poly learning rate policy """ def __init__(self, optimizer, max_iter=90000, power=0.9, last_epoch=-1):...
35.363636
114
0.641388
322
2,334
4.378882
0.232919
0.057447
0.039007
0.038298
0.186525
0.151064
0.124823
0.124823
0.073759
0.073759
0
0.012118
0.257498
2,334
65
115
35.907692
0.8015
0.071123
0
0.04
0
0
0.013011
0
0
0
0
0
0
1
0.1
false
0
0.06
0.02
0.26
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe056ef418d151035d2b9bd419b580cf756d0fd1
1,099
py
Python
utils.py
federicosapienza/InboxNotionTelegramBot
031d5e78cd352dfb692b93f3e0b421695f1dc18e
[ "MIT" ]
null
null
null
utils.py
federicosapienza/InboxNotionTelegramBot
031d5e78cd352dfb692b93f3e0b421695f1dc18e
[ "MIT" ]
null
null
null
utils.py
federicosapienza/InboxNotionTelegramBot
031d5e78cd352dfb692b93f3e0b421695f1dc18e
[ "MIT" ]
null
null
null
import json import logging logger = logging.getLogger(__name__) with open('configuration.json') as f: config = json.load(f) TELEGRAM_TOKEN = config["telegram-bot-token"] NOTION_TOKEN = config["notion-token"] NOTION_TABLE_URL = config["inbox_table"]["table_url"] def check_allowed_user(user_id): """ chec...
27.475
107
0.674249
143
1,099
4.958042
0.405594
0.076164
0.050776
0.088858
0.06488
0
0
0
0
0
0
0
0.22566
1,099
39
108
28.179487
0.833137
0.165605
0
0
0
0
0.173913
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe068879b9f1513a9f5e49e88200ed64c8fa16f1
12,623
py
Python
cassiopeia/datastores/riotapi/match.py
artemigkh/cassiopeia
fa78cb8f86ea21857916a707d04de6a05498033e
[ "MIT" ]
1
2021-09-07T05:26:21.000Z
2021-09-07T05:26:21.000Z
cassiopeia/datastores/riotapi/match.py
artemigkh/cassiopeia
fa78cb8f86ea21857916a707d04de6a05498033e
[ "MIT" ]
null
null
null
cassiopeia/datastores/riotapi/match.py
artemigkh/cassiopeia
fa78cb8f86ea21857916a707d04de6a05498033e
[ "MIT" ]
1
2016-10-20T11:54:20.000Z
2016-10-20T11:54:20.000Z
from time import time from typing import Type, TypeVar, MutableMapping, Any, Iterable, Generator, Union import arrow import datetime import math from datapipelines import DataSource, PipelineContext, Query, NotFoundError, validate_query from .common import RiotAPIService, APINotFoundError from ...data import Platform...
45.735507
178
0.614751
1,405
12,623
5.316014
0.108897
0.019681
0.048199
0.036953
0.688579
0.656447
0.609586
0.554961
0.520418
0.478511
0
0.004687
0.256278
12,623
275
179
45.901818
0.790903
0.00911
0
0.480349
0
0.017467
0.142251
0.011681
0
0
0
0
0
1
0.056769
false
0.008734
0.043668
0.004367
0.165939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe073352dbed399802293822986fcaea27535a33
10,374
py
Python
Lib/site-packages/hackedit/vendor/jedi/cache.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
1
2017-08-19T08:13:28.000Z
2017-08-19T08:13:28.000Z
node_modules/nuclide/pkg/nuclide-python-rpc/VendorLib/jedi/cache.py
kevingatera/kgatewebapp
f0dbc50b7af2736e1f6c6f96f0a26fc7ff69db20
[ "Unlicense" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/hackedit/vendor/jedi/cache.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
""" This caching is very important for speed and memory optimizations. There's nothing really spectacular, just some decorators. The following cache types are available: - module caching (`load_parser` and `save_parser`), which uses pickle and is really important to assure low load times of modules like ``numpy``. -...
29.724928
88
0.618662
1,303
10,374
4.737529
0.254029
0.033857
0.029159
0.020411
0.109833
0.07387
0.07387
0.018792
0.018792
0.018792
0
0.002463
0.295547
10,374
348
89
29.810345
0.842228
0.207634
0
0.245192
0
0
0.029448
0.013842
0
0
0
0.005747
0
1
0.134615
false
0.014423
0.110577
0.009615
0.365385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe0a261cca22dd0888b296d89b5ce6c47723b470
4,569
py
Python
python-modules/robcoewmrobotconfigurator/robcoewmrobotconfigurator/run.py
yschiebelhut/ewm-cloud-robotics
bdf3a6c13850d266b70168912494300c32d4d803
[ "Apache-2.0" ]
null
null
null
python-modules/robcoewmrobotconfigurator/robcoewmrobotconfigurator/run.py
yschiebelhut/ewm-cloud-robotics
bdf3a6c13850d266b70168912494300c32d4d803
[ "Apache-2.0" ]
null
null
null
python-modules/robcoewmrobotconfigurator/robcoewmrobotconfigurator/run.py
yschiebelhut/ewm-cloud-robotics
bdf3a6c13850d266b70168912494300c32d4d803
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 # # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. # # This file is part of ewm-cloud-robotics # (see https://github.com/SAP/ewm-cloud-robotics). # # This file is licensed under the Apache Software License, v. 2 except as noted # otherwise in the LIC...
33.595588
98
0.661633
527
4,569
5.593928
0.373814
0.011872
0.016282
0.011533
0.118725
0.110583
0.084125
0.061737
0.041384
0.041384
0
0.008986
0.244911
4,569
135
99
33.844444
0.845507
0.245787
0
0.106667
0
0
0.161891
0.015362
0
0
0
0
0
1
0.053333
false
0
0.106667
0
0.173333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe0d4c9278280b1296bb8358bef8f6502e5d0540
82,820
py
Python
ninjabackend.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
ninjabackend.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
ninjabackend.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2014 The Meson development team # 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...
45.630854
176
0.589942
9,661
82,820
4.858089
0.086533
0.015085
0.021093
0.022968
0.420335
0.346636
0.302574
0.259109
0.206183
0.165317
0
0.001351
0.303043
82,820
1,814
177
45.656009
0.811753
0.049022
0
0.301345
0
0.001222
0.083425
0.001843
0.001222
0
0
0.000551
0.002445
1
0.050122
false
0.003667
0.008557
0.003667
0.090465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe12421e5a8c03bfd1fbb0c021c5255e880a14d5
7,737
py
Python
tools/third_party/iniconfig/testing/test_iniconfig.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
2,479
2018-05-28T14:51:29.000Z
2022-03-30T14:41:18.000Z
tools/third_party/iniconfig/testing/test_iniconfig.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
7,642
2018-05-28T09:38:03.000Z
2022-03-31T20:55:48.000Z
tools/third_party/iniconfig/testing/test_iniconfig.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
1,303
2018-05-29T14:50:02.000Z
2022-03-30T17:30:42.000Z
import py import pytest from iniconfig import IniConfig, ParseError, __all__ as ALL from iniconfig import iscommentline from textwrap import dedent check_tokens = { 'section': ( '[section]', [(0, 'section', None, None)] ), 'value': ( 'value = 1', [(0, None, 'value', '1')] ...
24.561905
73
0.586145
907
7,737
4.898567
0.183021
0.037812
0.036012
0.037812
0.267837
0.21427
0.186135
0.122215
0.092055
0.081026
0
0.017586
0.242988
7,737
314
74
24.640127
0.740994
0.00866
0
0.278689
0
0
0.280908
0
0
0
0
0
0.196721
1
0.118852
false
0.016393
0.02459
0.016393
0.163934
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe13276650bb177fc42299abc71b473c1a0414dc
3,586
py
Python
jskparser/jskparser/util.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
15
2015-12-15T18:33:50.000Z
2021-09-29T11:48:54.000Z
jskparser/jskparser/util.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
11
2015-11-16T22:14:58.000Z
2021-09-23T05:28:40.000Z
jskparser/jskparser/util.py
natebragg/java-sketch
f5ac26f2cc46ae4556f9a61c55afd37f55c961ff
[ "MIT" ]
8
2015-11-16T21:50:08.000Z
2021-03-23T15:15:34.000Z
import os from subprocess import call from . import glob2 pwd = os.path.dirname(__file__) def get_files_from_path(path, ext): # use set to remove duplicate files. weird...but it happens if os.path.isfile(path): return set([os.path.abspath(path)]) else: # i.e., folder files = glob2.glob(os.path.a...
54.333333
209
0.663971
572
3,586
4.006993
0.263986
0.091623
0.096422
0.104712
0.447208
0.439354
0.429319
0.429319
0.25349
0.25349
0
0.003409
0.182097
3,586
65
210
55.169231
0.778043
0.09565
0
0
0
0.018868
0.203999
0.169947
0
0
0
0
0
1
0.037736
false
0
0.056604
0
0.132075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe133101724c39453da53bbd1a90715fd62fd7e1
24,301
py
Python
fiftyone/core/patches.py
SNeugber/fiftyone
a50be47bbbf189e4bbdcd631b93c4c9cbf41c6b7
[ "Apache-2.0" ]
null
null
null
fiftyone/core/patches.py
SNeugber/fiftyone
a50be47bbbf189e4bbdcd631b93c4c9cbf41c6b7
[ "Apache-2.0" ]
null
null
null
fiftyone/core/patches.py
SNeugber/fiftyone
a50be47bbbf189e4bbdcd631b93c4c9cbf41c6b7
[ "Apache-2.0" ]
null
null
null
""" Patches views. | Copyright 2017-2021, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ from copy import deepcopy import eta.core.utils as etau import fiftyone.core.aggregations as foa import fiftyone.core.dataset as fod import fiftyone.core.fields as fof import fiftyone.core.labels as fol import fifty...
32.186755
104
0.607876
2,771
24,301
5.044388
0.134608
0.024038
0.024324
0.012877
0.417012
0.376592
0.338389
0.298397
0.267706
0.219774
0
0.001421
0.305008
24,301
754
105
32.229443
0.826218
0.287848
0
0.259009
0
0
0.057025
0
0
0
0
0.001326
0
1
0.087838
false
0.004505
0.02027
0.027027
0.18018
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe14a23d28223212d47c4b4e15846d9b001de45c
6,153
py
Python
src/zope/app/debug/debug.py
zopefoundation/zope.app.debug
4f31e98f6a633f089bf132dd55cb3ead0270887b
[ "ZPL-2.1" ]
null
null
null
src/zope/app/debug/debug.py
zopefoundation/zope.app.debug
4f31e98f6a633f089bf132dd55cb3ead0270887b
[ "ZPL-2.1" ]
2
2017-05-08T10:46:20.000Z
2021-02-02T07:16:49.000Z
src/zope/app/debug/debug.py
zopefoundation/zope.app.debug
4f31e98f6a633f089bf132dd55cb3ead0270887b
[ "ZPL-2.1" ]
1
2015-04-03T07:36:10.000Z
2015-04-03T07:36:10.000Z
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
29.868932
78
0.57988
725
6,153
4.804138
0.310345
0.022107
0.02584
0.012633
0.223945
0.171117
0.171117
0.125179
0.125179
0.125179
0
0.009238
0.296278
6,153
205
79
30.014634
0.79515
0.154234
0
0.164179
0
0
0.055077
0
0
0
0
0
0
1
0.08209
false
0.007463
0.126866
0.007463
0.298507
0.037313
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe1507ff94aad4e4172a286172e136314812d8b6
1,855
py
Python
transfer_learning.py
terryli710/SIIM-ACR-Pneumothorax-Classification
8b278a9885b71c919d7064b2df42863b53f7adf3
[ "MIT" ]
null
null
null
transfer_learning.py
terryli710/SIIM-ACR-Pneumothorax-Classification
8b278a9885b71c919d7064b2df42863b53f7adf3
[ "MIT" ]
null
null
null
transfer_learning.py
terryli710/SIIM-ACR-Pneumothorax-Classification
8b278a9885b71c919d7064b2df42863b53f7adf3
[ "MIT" ]
1
2020-05-14T06:16:12.000Z
2020-05-14T06:16:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 18 22:42:54 2020 @author: mike """ import numpy as np import tensorflow as tf from tensorflow import keras from sklearn.model_selection import train_test_split from tensorflow.keras.applications import VGG16 from tensorflow.keras import layers fro...
26.884058
117
0.725067
301
1,855
4.292359
0.38206
0.02322
0.040248
0.044118
0.111455
0.069659
0.0387
0
0
0
0
0.057917
0.125067
1,855
69
118
26.884058
0.738139
0.050674
0
0
0
0
0.059897
0.027952
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe15525a101c45bc65c1049e9b6ece9e4cd29f69
2,158
py
Python
core/tests/test_polyflow/test_workflows/test_hyperband.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
core/tests/test_polyflow/test_workflows/test_hyperband.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
core/tests/test_polyflow/test_workflows/test_hyperband.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
35.377049
79
0.672845
252
2,158
5.642857
0.484127
0.091421
0.098453
0.087904
0.279887
0.279887
0.279887
0.279887
0.279887
0.279887
0
0.022754
0.226135
2,158
60
80
35.966667
0.828743
0.287766
0
0.294118
0
0
0.090132
0
0
0
0
0
0.176471
1
0.029412
false
0
0.147059
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe185aaa73619017a36f547b25642264993ebd15
1,820
py
Python
clickhouse_sqlalchemy/drivers/reflection.py
Fozar/clickhouse-sqlalchemy
88fd630856655cc470430b365dce7e85516abf62
[ "MIT" ]
null
null
null
clickhouse_sqlalchemy/drivers/reflection.py
Fozar/clickhouse-sqlalchemy
88fd630856655cc470430b365dce7e85516abf62
[ "MIT" ]
null
null
null
clickhouse_sqlalchemy/drivers/reflection.py
Fozar/clickhouse-sqlalchemy
88fd630856655cc470430b365dce7e85516abf62
[ "MIT" ]
null
null
null
from sqlalchemy.engine import reflection from clickhouse_sqlalchemy import Table, engines class ClickHouseInspector(reflection.Inspector): def reflect_table(self, table, *args, **kwargs): # This check is necessary to support direct instantiation of # `clickhouse_sqlalchemy.Table` and then reflect...
33.703704
78
0.621978
215
1,820
4.981395
0.325581
0.039216
0.070028
0.044818
0.102708
0.056022
0
0
0
0
0
0
0.295055
1,820
53
79
34.339623
0.834762
0.063187
0
0.1
0
0
0.02879
0
0
0
0
0
0
1
0.075
false
0
0.05
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe190819e431106bd53c08a681b3911ad9502e88
6,289
py
Python
src/runner.py
samirsahoo007/Naive-Bayes-and-Decision-Tree-Classifiers
619c5c0b17438d1014f7ca7e4ce13cc44c45de3c
[ "MIT" ]
1
2020-11-17T16:09:13.000Z
2020-11-17T16:09:13.000Z
src/runner.py
samirsahoo007/Naive-Bayes-and-Decision-Tree-Classifiers
619c5c0b17438d1014f7ca7e4ce13cc44c45de3c
[ "MIT" ]
null
null
null
src/runner.py
samirsahoo007/Naive-Bayes-and-Decision-Tree-Classifiers
619c5c0b17438d1014f7ca7e4ce13cc44c45de3c
[ "MIT" ]
4
2019-07-05T02:03:02.000Z
2022-01-21T22:12:16.000Z
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ runner.py ] # Synopsis [ main program that runs the 'Naive Bayes' and 'Decision Tree' training / testing ] # Author [ Ting-Wei Liu (Andi611) ] # Copyright [...
38.582822
151
0.690253
863
6,289
4.791425
0.181924
0.063845
0.054414
0.041354
0.441112
0.368077
0.260701
0.213543
0.118742
0.069891
0
0.000727
0.125139
6,289
162
152
38.820988
0.750818
0.084274
0
0.15
0
0
0.295801
0.037904
0
0
0
0
0.05
1
0.04
false
0
0.07
0
0.14
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe195c652a959304ac79843bfd7f33439351fd89
7,393
py
Python
igibson/metrics/agent.py
Nick-AhSen/iGibson
c6854f11eec5d935fa3ef3d6d4852c6571beab4b
[ "MIT" ]
null
null
null
igibson/metrics/agent.py
Nick-AhSen/iGibson
c6854f11eec5d935fa3ef3d6d4852c6571beab4b
[ "MIT" ]
null
null
null
igibson/metrics/agent.py
Nick-AhSen/iGibson
c6854f11eec5d935fa3ef3d6d4852c6571beab4b
[ "MIT" ]
null
null
null
import copy import numpy as np import pybullet as p from igibson.metrics.metric_base import MetricBase class BehaviorRobotMetric(MetricBase): def __init__(self): self.initialized = False self.state_cache = {} self.next_state_cache = {} self.agent_pos = {part: [] for part in ["l...
38.305699
116
0.581631
857
7,393
4.75846
0.115519
0.079451
0.061795
0.04463
0.78102
0.670181
0.626533
0.537764
0.510299
0.456106
0
0.005694
0.287299
7,393
192
117
38.505208
0.768267
0.003111
0
0.412903
0
0
0.109663
0
0
0
0
0
0
1
0.03871
false
0
0.025806
0.012903
0.090323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe1c00d5c2481798d64766027364e0e668d8c7bc
59,866
py
Python
src/ttkbootstrap/dialogs/dialogs.py
MrJaatt/ttkbootstrap
4e837d64859e5a230ef0500faddbb2c384f5b9d4
[ "MIT" ]
1
2022-01-28T09:37:32.000Z
2022-01-28T09:37:32.000Z
src/ttkbootstrap/dialogs/dialogs.py
MrJaatt/ttkbootstrap
4e837d64859e5a230ef0500faddbb2c384f5b9d4
[ "MIT" ]
null
null
null
src/ttkbootstrap/dialogs/dialogs.py
MrJaatt/ttkbootstrap
4e837d64859e5a230ef0500faddbb2c384f5b9d4
[ "MIT" ]
null
null
null
""" This module contains various base dialog base classes that can be used to create custom dialogs for the end user. These classes serve as the basis for the pre-defined static helper methods in the `Messagebox`, and `Querybox` container classes. """ import calendar import textwrap from datetime im...
33.65149
105
0.568219
6,836
59,866
4.88897
0.09567
0.010173
0.017504
0.009425
0.548757
0.504982
0.472009
0.435415
0.398283
0.378714
0
0.004286
0.345321
59,866
1,778
106
33.670416
0.848391
0.382187
0
0.357798
0
0
0.038023
0.006764
0
0
0
0
0
1
0.075688
false
0.002294
0.012615
0
0.127294
0.001147
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3a6ae7f4fab920589a878c0b0e9e7fa6a88c26a
2,504
py
Python
Google-Play-Store-App-Rating/code.py
venky4121994/ga-learner-dsmp-repo
1bef03489931eece0d5ecb9ce0501dfeb558dc59
[ "MIT" ]
null
null
null
Google-Play-Store-App-Rating/code.py
venky4121994/ga-learner-dsmp-repo
1bef03489931eece0d5ecb9ce0501dfeb558dc59
[ "MIT" ]
null
null
null
Google-Play-Store-App-Rating/code.py
venky4121994/ga-learner-dsmp-repo
1bef03489931eece0d5ecb9ce0501dfeb558dc59
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd import matplotlib.pyplot as plt import seaborn as sns #Code starts here data = pd.read_csv(path) data.hist(['Rating']) data = data[data['Rating']<=5] data.hist(['Rating']) #Code ends here # -------------- # code starts here total_null = data.isnull().s...
25.55102
89
0.680112
356
2,504
4.682584
0.283708
0.071986
0.058788
0.04799
0.313137
0.184763
0.169166
0.09958
0.055189
0.055189
0
0.015391
0.091853
2,504
97
90
25.814433
0.717678
0.14377
0
0.085106
0
0
0.214825
0
0
0
0
0
0
1
0
false
0
0.085106
0
0.085106
0.170213
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3a6e52033cd00d1b8f29b49e45d1f519baff3e9
6,597
py
Python
converters/brat2iob.py
Banguiskode/nerds
366420b2ec57bf790562de62a79f4973cbd6b3ed
[ "BSD-3-Clause" ]
15
2019-12-05T18:40:22.000Z
2021-02-20T05:34:50.000Z
converters/brat2iob.py
Banguiskode/nerds
366420b2ec57bf790562de62a79f4973cbd6b3ed
[ "BSD-3-Clause" ]
null
null
null
converters/brat2iob.py
Banguiskode/nerds
366420b2ec57bf790562de62a79f4973cbd6b3ed
[ "BSD-3-Clause" ]
4
2019-12-30T13:03:05.000Z
2021-02-16T13:08:09.000Z
import argparse import operator import os import re import shutil import spacy import tempfile from nerds.utils import spans_to_tokens, get_logger def segment_text_to_sentences(text_file, sentence_splitter): """ Segment text into sentences. Text is provided by BRAT in .txt file. Args: ...
36.854749
167
0.618463
906
6,597
4.363135
0.242826
0.042499
0.02125
0.022768
0.266886
0.217303
0.204149
0.130787
0.113585
0
0
0.010588
0.255571
6,597
178
168
37.061798
0.794339
0.33303
0
0.095745
0
0.010638
0.172877
0
0
0
0
0
0
1
0.053191
false
0
0.085106
0
0.170213
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3a738f0c10019d9229ed8e9b93898831920170d
2,503
py
Python
kraken/lib/util.py
zjsteyn/kraken
eaa9f4290db5425ddf80d0aebfa3944713558ab5
[ "Apache-2.0" ]
1
2022-02-03T14:41:58.000Z
2022-02-03T14:41:58.000Z
kraken/lib/util.py
ephenum/kraken
47be8f7ddcb7c7ad63bfc5636df1976a4e84a5f0
[ "Apache-2.0" ]
null
null
null
kraken/lib/util.py
ephenum/kraken
47be8f7ddcb7c7ad63bfc5636df1976a4e84a5f0
[ "Apache-2.0" ]
1
2022-01-19T10:53:20.000Z
2022-01-19T10:53:20.000Z
""" Ocropus's magic PIL-numpy array conversion routines. They express slightly different behavior from PIL.Image.toarray(). """ import unicodedata import numpy as np from PIL import Image __all__ = ['pil2array', 'array2pil'] def pil2array(im: Image.Image, alpha: int = 0) -> np.array: if im.mode == '1': ...
27.811111
77
0.582901
338
2,503
4.286982
0.41716
0.024845
0.024845
0.016563
0.116632
0.116632
0.116632
0.072464
0.056591
0.056591
0
0.011056
0.277267
2,503
89
78
28.123596
0.789939
0.291251
0
0.125
0
0
0.075256
0
0
0
0
0
0
1
0.15
false
0
0.075
0.025
0.5
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3a7f40bcb06653665d3b8d30577d4282cd0f05f
2,877
py
Python
analysis/calculate_holding_amount.py
hao44le/ico_top_holder_analysis
aeeab01c90e4446b424c52c33a68ccb814123121
[ "MIT" ]
538
2018-07-04T21:14:52.000Z
2022-03-26T15:16:08.000Z
analysis/calculate_holding_amount.py
hao44le/ico_top_holder_analysis
aeeab01c90e4446b424c52c33a68ccb814123121
[ "MIT" ]
4
2018-07-08T22:11:32.000Z
2021-12-13T19:48:38.000Z
analysis/calculate_holding_amount.py
hao44le/ico_top_holder_analysis
aeeab01c90e4446b424c52c33a68ccb814123121
[ "MIT" ]
52
2018-07-05T12:07:37.000Z
2021-04-05T23:34:20.000Z
import sys sys.path.insert(0,'..') from data.whale_data import exchnage_accounts from data.html_helper import check_if_address_name_exists from data.whale_eth_tx_data import * from data.whale_token_tx_data import identify_investor_type_token holding_account = "holding_account" deposit_account = 'deposit_account' withd...
29.96875
91
0.642336
400
2,877
4.2975
0.2075
0.069808
0.068063
0.037231
0.178592
0.095404
0.0605
0.0605
0.0605
0.0605
0
0.003338
0.271116
2,877
95
92
30.284211
0.816404
0.032325
0
0.108108
0
0
0.040618
0
0
0
0
0
0
1
0.040541
false
0
0.067568
0
0.148649
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3a80291d5fdb7e2a418a7fbbb6542744e0db4d2
66,926
py
Python
textbox/trainer/trainer.py
JBoRu/TextBox-1
0dcbaa153acc507e3d55075312d7ca5d23146e03
[ "MIT" ]
1
2021-08-12T01:08:09.000Z
2021-08-12T01:08:09.000Z
textbox/trainer/trainer.py
JBoRu/TextBox-1
0dcbaa153acc507e3d55075312d7ca5d23146e03
[ "MIT" ]
null
null
null
textbox/trainer/trainer.py
JBoRu/TextBox-1
0dcbaa153acc507e3d55075312d7ca5d23146e03
[ "MIT" ]
null
null
null
# @Time : 2020/11/14 # @Author : Junyi Li, Gaole He # @Email : lijunyi@ruc.edu.cn # UPDATE: # @Time : 2020/12/2, 2020/11/27, 2020/12/3, 2020/12/26 # @Author : Jinhao Jiang, Xiaoxuan Hu, Tianyi Tang, Jinhao Jiang # @Email : jiangjinhao@std.uestc.edu.cn, huxiaoxuan@ruc.edu.cn, steventang@ruc.edu.cn, jiangjinhao@st...
45.997251
146
0.621836
8,279
66,926
4.749245
0.062206
0.032046
0.02556
0.021262
0.725909
0.678527
0.645439
0.614538
0.576668
0.559628
0
0.003928
0.288587
66,926
1,454
147
46.028886
0.821894
0.146311
0
0.568461
0
0
0.067128
0.00226
0
0
0
0
0
1
0.057602
false
0
0.012276
0
0.120869
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3a8234ec61d7794c6426793212657ac24a62f4a
649
py
Python
rsserpent/plugins/builtin/__init__.py
EurusEurus/RSSerpent
fd7aaf67b80b2b48c14b1a3efe733374b0012338
[ "MIT" ]
null
null
null
rsserpent/plugins/builtin/__init__.py
EurusEurus/RSSerpent
fd7aaf67b80b2b48c14b1a3efe733374b0012338
[ "MIT" ]
null
null
null
rsserpent/plugins/builtin/__init__.py
EurusEurus/RSSerpent
fd7aaf67b80b2b48c14b1a3efe733374b0012338
[ "MIT" ]
null
null
null
from ...models import Persona, Plugin from . import example, example_cache, example_ratelimit, example_with_args plugin = Plugin( name="rsserpent-plugin-builtin", author=Persona( name="queensferryme", link="https://github.com/queensferryme", email="queensferry.me@gmail.com", ), ...
28.217391
74
0.682589
69
649
6.173913
0.42029
0.103286
0.105634
0
0
0
0
0
0
0
0
0
0.191063
649
22
75
29.5
0.811429
0
0
0
0
0
0.214176
0.07396
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3a86ac522e7ca59c54af2df1492f75fd0ad7b3e
2,859
py
Python
data_processing/process_xls.py
luisroel91/libdib_assesment
c969cfecbce1243b457961ffafe5caaea7bb5149
[ "MIT" ]
null
null
null
data_processing/process_xls.py
luisroel91/libdib_assesment
c969cfecbce1243b457961ffafe5caaea7bb5149
[ "MIT" ]
null
null
null
data_processing/process_xls.py
luisroel91/libdib_assesment
c969cfecbce1243b457961ffafe5caaea7bb5149
[ "MIT" ]
null
null
null
import pandas as pd # Define our header col_names = [ "year", "num_males_with_income", "male_median_income_curr_dollars", "male_median_income_2019_dollars", "num_females_with_income", "female_median_income_curr_dollars", "female_median_income_2019_dollars", ] # Load Asian census data XLS, ...
24.646552
82
0.671913
450
2,859
4.12
0.306667
0.06904
0.075512
0.113269
0.420712
0.289105
0.110032
0.110032
0.110032
0.110032
0
0.132291
0.172438
2,859
115
83
24.86087
0.65131
0.191675
0
0.079545
0
0
0.282353
0.149891
0
0
0
0
0
1
0
false
0
0.011364
0
0.011364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3aa7d175c4008d278417caf82ba36b9fb655fda
520
py
Python
Section_1/Exercise_16.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_1/Exercise_16.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_1/Exercise_16.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
1
2021-11-21T09:38:33.000Z
2021-11-21T09:38:33.000Z
""" Dany jest ciąg określony wzorem: A[n+1] = (A[n] % 2) ∗ (3 ∗ A[n] + 1) + (1 − A[n] % 2) ∗ A[n] / 2. Startując z dowolnej liczby naturalnej > 1 ciąg ten osiąga wartość 1. Napisać program, który znajdzie wyraz początkowy z przedziału 2-10000 dla którego wartość 1 jest osiągalna po największej liczbie kroków. """ a0 = ...
27.368421
98
0.542308
94
520
3.042553
0.468085
0.034965
0.031469
0.027972
0
0
0
0
0
0
0
0.117166
0.294231
520
18
99
28.888889
0.651226
0.588462
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
a3ad80bfdfa53d706abcbf25b9e00b65302a112a
1,480
py
Python
AndroidSpider/spider_main.py
lidenghong1/SmallReptileTraining
a1bfb81c9969edfb7554acc50370c0cb036da690
[ "MIT" ]
1
2018-05-10T01:52:37.000Z
2018-05-10T01:52:37.000Z
AndroidSpider/spider_main.py
lidenghong1/SmallReptileTraining
a1bfb81c9969edfb7554acc50370c0cb036da690
[ "MIT" ]
null
null
null
AndroidSpider/spider_main.py
lidenghong1/SmallReptileTraining
a1bfb81c9969edfb7554acc50370c0cb036da690
[ "MIT" ]
null
null
null
from AndroidSpider import url_manager, html_downloader, html_parser, html_output ''' 爬取百度百科 Android 关键词相关词及简介并输出为一个HTML tab网页 Extra module: BeautifulSoup ''' class SpiderMain(object): def __init__(self): self.urls = url_manager.UrlManager() self.downloader = html_downloader.HtmlDownLoader() ...
36.097561
141
0.597297
180
1,480
4.65
0.505556
0.050179
0.035842
0.033453
0
0
0
0
0
0
0
0.032567
0.294595
1,480
40
142
37
0.769157
0
0
0
0
0.032258
0.134711
0
0
0
0
0
0
1
0.064516
false
0
0.032258
0
0.129032
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3ae0fed36bd78447d3c9b110c995da7eb0ec44e
517
py
Python
trompace/mutations/__init__.py
trompamusic/ce-queries-template
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
[ "Apache-2.0" ]
1
2020-06-18T15:43:18.000Z
2020-06-18T15:43:18.000Z
trompace/mutations/__init__.py
trompamusic/ce-queries-template
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
[ "Apache-2.0" ]
60
2019-12-17T11:08:28.000Z
2021-03-02T16:19:41.000Z
trompace/mutations/__init__.py
trompamusic/trompace-client
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
[ "Apache-2.0" ]
null
null
null
MUTATION = '''mutation {{ {mutation} }}''' def _verify_additional_type(additionaltype): """Check that the input to additionaltype is a list of strings. If it is empty, raise ValueError If it is a string, convert it to a list of strings.""" if additionaltype is None: return None if isins...
28.722222
67
0.68472
64
517
5.484375
0.5
0.091168
0.039886
0.079772
0.091168
0
0
0
0
0
0
0.002513
0.230174
517
17
68
30.411765
0.879397
0.280464
0
0
0
0
0.184358
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3ae4f1aada9f0b92aa00f9f17807bd4f8c072c1
951
py
Python
Web_App/infrastructure/infra.py
CapitalOneDevExchangeHackathon/Financial-Fitness
54a2203d6b3d96687d822247b040613b644874f2
[ "MIT" ]
null
null
null
Web_App/infrastructure/infra.py
CapitalOneDevExchangeHackathon/Financial-Fitness
54a2203d6b3d96687d822247b040613b644874f2
[ "MIT" ]
null
null
null
Web_App/infrastructure/infra.py
CapitalOneDevExchangeHackathon/Financial-Fitness
54a2203d6b3d96687d822247b040613b644874f2
[ "MIT" ]
null
null
null
import boto import boto3 from config import Config dynamodb = boto3.resource('dynamodb', aws_access_key_id=Config.AWS_KEY, aws_secret_access_key=Config.AWS_SECRET_KEY, region_name=Config.REGION) table = dynamodb.Table('user_details') tables...
22.116279
119
0.589905
108
951
4.87037
0.398148
0.068441
0.079848
0.091255
0.418251
0.418251
0.418251
0.418251
0.418251
0.418251
0
0.018433
0.315457
951
42
120
22.642857
0.789555
0
0
0
0
0
0.082105
0
0
0
0
0
0
1
0.068966
false
0
0.103448
0
0.241379
0.137931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b0debd51a02674a2485fcb5fa43dc82bc97eff
2,751
py
Python
SelfTests.py
TeaPackCZ/RobotZed
7ac8bfb14a6c2e5887f8fed299ad87b384701c54
[ "MIT" ]
null
null
null
SelfTests.py
TeaPackCZ/RobotZed
7ac8bfb14a6c2e5887f8fed299ad87b384701c54
[ "MIT" ]
null
null
null
SelfTests.py
TeaPackCZ/RobotZed
7ac8bfb14a6c2e5887f8fed299ad87b384701c54
[ "MIT" ]
null
null
null
import os import unittest from Logger import Logger class TestLogger(unittest.TestCase): def test_file_handling(self): testLog = Logger("testLog") ## Check if program can create and open file self.assertTrue(testLog.opened) returns = testLog.close() ## Check if logger correc...
31.988372
66
0.624137
332
2,751
5.129518
0.253012
0.167352
0.093952
0.126835
0.571345
0.496183
0.44451
0.44451
0.44451
0.44451
0
0.06213
0.262814
2,751
85
67
32.364706
0.777613
0.08615
0
0.349206
0
0
0.014818
0
0
0
0
0
0.333333
1
0.047619
false
0
0.063492
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
a3b19235edf240100e043436d336caa4a2f88321
1,986
py
Python
manga_py/parser.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
null
null
null
manga_py/parser.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
null
null
null
manga_py/parser.py
Abijithkrishna/manga-py
03b142ecb944ef37a36e5095ffa580209021e3b0
[ "MIT" ]
null
null
null
from logging import warning from requests import get from .info import Info from .provider import Provider from .providers import get_provider class Parser: def __init__(self, args: dict): self.params = args def init_provider( self, chapter_progress: callable = None, ...
29.205882
74
0.618832
230
1,986
5.13913
0.282609
0.101523
0.063452
0.027073
0
0
0
0
0
0
0
0
0.289023
1,986
67
75
29.641791
0.83711
0.019637
0
0
0
0
0.04632
0
0
0
0
0
0
1
0.083333
false
0.041667
0.104167
0
0.229167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b29bffdf2e36c45f804f1c4fc3a56bbdcb9b59
1,127
py
Python
customers/views.py
sindhumadhadi09/CustomerMgmt
db8b27ad6ceb8050843dc33509dc2b6c2ed2c1e2
[ "MIT" ]
null
null
null
customers/views.py
sindhumadhadi09/CustomerMgmt
db8b27ad6ceb8050843dc33509dc2b6c2ed2c1e2
[ "MIT" ]
null
null
null
customers/views.py
sindhumadhadi09/CustomerMgmt
db8b27ad6ceb8050843dc33509dc2b6c2ed2c1e2
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, render from django.http import HttpResponseRedirect from django.urls import reverse from django.views import generic from django.utils import timezone from .models import Customer class IndexView(generic.ListView): template_name = 'customers/index.html' context_...
34.151515
59
0.759539
133
1,127
6.293233
0.413534
0.152927
0.050179
0.100358
0.112306
0
0
0
0
0
0
0.003096
0.140195
1,127
33
60
34.151515
0.860681
0
0
0.074074
0
0
0.101064
0.018617
0
0
0
0
0
1
0.111111
false
0
0.222222
0.037037
0.62963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b315d5551d6efa8a8b5d2f47e368467747b831
3,512
py
Python
butterfree/configs/db/metastore_config.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
null
null
null
butterfree/configs/db/metastore_config.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
null
null
null
butterfree/configs/db/metastore_config.py
fossabot/butterfree
8a7da8c540b51c6560b2825cb926c40a351f202b
[ "Apache-2.0" ]
null
null
null
"""Holds configurations to read and write with Spark to AWS S3.""" import os from typing import Any, Dict, List, Optional from pyspark.sql import DataFrame from butterfree.configs import environment from butterfree.configs.db import AbstractWriteConfig from butterfree.dataframe_service import extract_partition_value...
29.024793
82
0.611902
419
3,512
4.988067
0.252983
0.057416
0.026316
0.030622
0.227751
0.156938
0.156938
0.108134
0.108134
0.108134
0
0.003199
0.28787
3,512
120
83
29.266667
0.832467
0.299829
0
0.065574
0
0
0.087168
0.066814
0
0
0
0
0
1
0.196721
false
0.016393
0.098361
0
0.409836
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b384657bc7cd2ab9ee0a1d8b09ee80039ad894
2,401
py
Python
examples/2-objects.py
johanngan/special_relativity
cd372c7460d2c0d4040c81bc1bd0090086dba735
[ "MIT" ]
4
2020-08-19T04:56:40.000Z
2022-02-07T22:09:45.000Z
examples/2-objects.py
johanngan/special_relativity
cd372c7460d2c0d4040c81bc1bd0090086dba735
[ "MIT" ]
null
null
null
examples/2-objects.py
johanngan/special_relativity
cd372c7460d2c0d4040c81bc1bd0090086dba735
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys sys.path.append('..') import specrel.geom as geom import specrel.spacetime.physical as phy import specrel.visualize as vis # Shared parameters include_grid = True include_legend = True tlim = (0, 2) xlim = (-2, 2) # A stationary point object stationary = phy.MovingObject(0, draw_opt...
34.797101
77
0.7197
345
2,401
4.884058
0.226087
0.045697
0.035608
0.047478
0.489614
0.351335
0.28724
0.245697
0.245697
0.245697
0
0.022243
0.11995
2,401
68
78
35.308824
0.775201
0.217409
0
0.177778
0
0
0.195056
0.090274
0
0
0
0
0
1
0
false
0
0.088889
0
0.088889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b4e8143896f099b74b0a3738681f49e357493f
4,049
py
Python
tests/sentry/auth/test_helper.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/auth/test_helper.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/auth/test_helper.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from six.moves.urllib.parse import urlencode from django.test import RequestFactory from django.contrib.auth.models import AnonymousUser from sentry.auth.helper import handle_new_user from sentry.models import AuthProvider, InviteStatus, OrganizationMember from sentry.testutils ...
39.31068
100
0.674241
428
4,049
6.245327
0.245327
0.089787
0.115226
0.065095
0.615788
0.582117
0.532361
0.526375
0.356902
0.34119
0
0.005662
0.214868
4,049
102
101
39.696078
0.835168
0.032601
0
0.378378
0
0
0.085079
0.012775
0
0
0
0
0.094595
1
0.054054
false
0
0.108108
0
0.175676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b57d8c1a4088165ce4f67e6fb27850615f9653
4,583
py
Python
density_model_torch_custom.py
piotrwinkler/breast_density_classifier
4d47dd98bb0a839cea8b9aef242f5af5db84f06f
[ "BSD-2-Clause" ]
null
null
null
density_model_torch_custom.py
piotrwinkler/breast_density_classifier
4d47dd98bb0a839cea8b9aef242f5af5db84f06f
[ "BSD-2-Clause" ]
null
null
null
density_model_torch_custom.py
piotrwinkler/breast_density_classifier
4d47dd98bb0a839cea8b9aef242f5af5db84f06f
[ "BSD-2-Clause" ]
null
null
null
import argparse import glob import os import numpy as np import torch from sklearn.metrics import accuracy_score import models_torch as models import utils EXPERIMENT_DATA_DIR = "/tmp/mgr" def inference(parameters, verbose=True) -> int: # resolve device device = torch.device( "cuda:{}".format(par...
37.565574
113
0.669212
598
4,583
4.867893
0.235786
0.041223
0.032978
0.034352
0.300584
0.261422
0.171075
0.068018
0.037788
0.037788
0
0.013005
0.194632
4,583
121
114
37.876033
0.775671
0.050622
0
0.02439
0
0
0.246056
0.072993
0
0
0
0
0
1
0.012195
false
0
0.097561
0
0.121951
0.085366
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b664d11a53af7fe489af747c1768858a1613a2
4,878
py
Python
esmvaltool/diag_scripts/ensclus/ens_anom.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
148
2017-02-07T13:16:03.000Z
2022-03-26T02:21:56.000Z
esmvaltool/diag_scripts/ensclus/ens_anom.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
2,026
2017-02-03T12:57:13.000Z
2022-03-31T15:11:51.000Z
esmvaltool/diag_scripts/ensclus/ens_anom.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
113
2017-01-27T13:10:19.000Z
2022-02-03T13:42:11.000Z
"""Computation of ensemble anomalies based on a desired value.""" import os import numpy as np from scipy import stats # User-defined packages from read_netcdf import read_iris, save_n_2d_fields from sel_season_area import sel_area, sel_season def ens_anom(filenames, dir_output, name_outputs, varname, numens, seaso...
40.65
79
0.630381
673
4,878
4.419019
0.239227
0.026227
0.04035
0.022192
0.306994
0.274042
0.211836
0.13887
0.113988
0.081372
0
0.015059
0.264863
4,878
119
80
40.991597
0.814278
0.215047
0
0.168831
0
0
0.141572
0.006351
0
0
0
0
0
1
0.012987
false
0
0.064935
0
0.090909
0.103896
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b714ec9b000678e3e81df98484d9da903f0406
24,074
py
Python
pytition/petition/models.py
Te-k/Pytition
16ebce01b491b72ed387709d9b705f7cb0d5476f
[ "BSD-3-Clause" ]
null
null
null
pytition/petition/models.py
Te-k/Pytition
16ebce01b491b72ed387709d9b705f7cb0d5476f
[ "BSD-3-Clause" ]
null
null
null
pytition/petition/models.py
Te-k/Pytition
16ebce01b491b72ed387709d9b705f7cb0d5476f
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.utils.html import mark_safe, strip_tags from django.utils.text import slugify from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy from django.core.exceptions import ValidationError from django.db.models.signals import post_save, ...
40.734349
124
0.662748
2,715
24,074
5.673665
0.108287
0.043236
0.040898
0.054531
0.610556
0.560439
0.481823
0.450597
0.407492
0.386783
0
0.008396
0.238058
24,074
590
125
40.80339
0.83138
0.015785
0
0.503106
0
0
0.057805
0.002998
0
0
0
0
0
1
0.113872
false
0.008282
0.033126
0.05176
0.559006
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b72847ef50516acce4d8d4114c3432f306c66d
4,026
py
Python
bin/socialhistory.py
JohnShullTopDev/generating-traning-data-for-healthcare-machine-learningcare-
d0ffb26e1b99204a796df905b50c8caf01417f69
[ "Apache-2.0" ]
1
2019-11-11T11:21:08.000Z
2019-11-11T11:21:08.000Z
bin/socialhistory.py
JohnShullTopDev/generating-traning-data-for-healthcare-machine-learningcare-
d0ffb26e1b99204a796df905b50c8caf01417f69
[ "Apache-2.0" ]
null
null
null
bin/socialhistory.py
JohnShullTopDev/generating-traning-data-for-healthcare-machine-learningcare-
d0ffb26e1b99204a796df905b50c8caf01417f69
[ "Apache-2.0" ]
1
2020-01-28T03:48:14.000Z
2020-01-28T03:48:14.000Z
import csv from testdata import SOCIALHISTORY_FILE from testdata import rndDate from patient import Patient SMOKINGCODES = { '428041000124106': 'Current some day smoker', '266919005' : 'Never smoker', '449868002' : 'Current every day smoker', '266927001' : 'Unknown if ever smoked', '...
35.946429
92
0.435171
282
4,026
6.163121
0.478723
0.020138
0.034522
0.027618
0
0
0
0
0
0
0
0.030096
0.455291
4,026
111
93
36.27027
0.762426
0.076006
0
0.09375
0
0
0.233405
0
0
0
0
0
0
1
0.03125
false
0
0.041667
0
0.104167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3b9cafed89d7582e18fd4f82c78858c2882f5b3
1,453
py
Python
lib/spack/spack/test/cache_fetch.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
lib/spack/spack/test/cache_fetch.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
lib/spack/spack/test/cache_fetch.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os import pytest from llnl.util.filesystem import mkdirp, touch import spack.config from spack.fetch_strategy im...
35.439024
76
0.705437
185
1,453
5.410811
0.432432
0.087912
0.041958
0.051948
0.333666
0.277722
0.277722
0.277722
0.277722
0.277722
0
0.009205
0.177564
1,453
40
77
36.325
0.828452
0.192017
0
0.307692
0
0
0.131034
0.064655
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
a3bac2f51025032288427c9fc39e3497207cc25d
2,201
py
Python
temp_range_sql.py
hanhanwu/Hanhan-Spark-Python
a04c33100742acffa2ad11d1937ea05c44688427
[ "MIT" ]
45
2016-03-18T07:57:53.000Z
2022-03-20T07:14:15.000Z
temp_range_sql.py
hanhanwu/Hanhan-Spark-Python
a04c33100742acffa2ad11d1937ea05c44688427
[ "MIT" ]
null
null
null
temp_range_sql.py
hanhanwu/Hanhan-Spark-Python
a04c33100742acffa2ad11d1937ea05c44688427
[ "MIT" ]
16
2016-07-07T16:47:46.000Z
2020-05-04T17:38:40.000Z
__author__ = 'hanhanw' import sys from pyspark import SparkConf, SparkContext from pyspark.sql.context import SQLContext from pyspark.sql.types import StructType, StructField, StringType, DoubleType conf = SparkConf().setAppName("temp range sql") sc = SparkContext(conf=conf) sqlContext = SQLContext(sc) assert sc.ver...
31.898551
117
0.698319
257
2,201
5.902724
0.342412
0.042189
0.037574
0.044825
0.096243
0.096243
0.096243
0.096243
0.096243
0
0
0.015292
0.168105
2,201
68
118
32.367647
0.813217
0
0
0.092593
0
0.018519
0.369378
0.023171
0
0
0
0
0.018519
1
0.037037
false
0
0.074074
0
0.12963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3bca9436abafd191ec47379ebb1db10a4043237
11,326
py
Python
desktop/core/ext-py/openpyxl-2.3.0-b2/openpyxl/drawing/shape.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
3
2018-01-29T14:16:02.000Z
2019-02-05T21:33:05.000Z
desktop/core/ext-py/openpyxl-2.3.0-b2/openpyxl/drawing/shape.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
4
2021-03-11T04:02:00.000Z
2022-03-27T08:31:56.000Z
desktop/core/ext-py/openpyxl-2.3.0-b2/openpyxl/drawing/shape.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2
2019-12-05T17:24:36.000Z
2021-11-22T21:21:32.000Z
from __future__ import absolute_import # Copyright (c) 2010-2015 openpyxl from openpyxl.styles.colors import Color, BLACK, WHITE from openpyxl.utils.units import ( pixels_to_EMU, EMU_to_pixels, short_color, ) from openpyxl.compat import deprecated from openpyxl.xml.functions import Element, SubElement, t...
27.160671
113
0.607099
1,124
11,326
5.922598
0.349644
0.060838
0.031546
0.014421
0.095088
0.075259
0.045666
0.017425
0.017425
0.017425
0
0.012571
0.269557
11,326
416
114
27.225962
0.792095
0.049002
0
0.056962
0
0
0.087689
0
0
0
0
0
0
1
0.101266
false
0
0.044304
0.025316
0.253165
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3bd2daadf5e4d9e5163b4a0fc7578b8fb655779
3,118
py
Python
scripts/VCF/FILTER/subset_vcf.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
3
2018-04-20T15:04:34.000Z
2022-03-30T06:36:02.000Z
scripts/VCF/FILTER/subset_vcf.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
7
2019-06-06T09:22:20.000Z
2021-11-23T17:41:52.000Z
scripts/VCF/FILTER/subset_vcf.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
5
2017-11-02T11:17:35.000Z
2021-12-11T19:34:09.000Z
from VcfQC import VcfQC from ReseqTrackDB import File from ReseqTrackDB import ReseqTrackDB import argparse import os import logging import datetime #get command line arguments parser = argparse.ArgumentParser(description='Script to subset a VCF by excluding the variants within the regions defined by a BED file') ...
41.026316
275
0.735407
453
3,118
4.966887
0.335541
0.048
0.090667
0.084444
0.197333
0.115556
0.072889
0.042667
0.042667
0
0
0.001854
0.135022
3,118
75
276
41.573333
0.832406
0.037524
0
0
0
0.021277
0.310532
0.008466
0
0
0
0
0
1
0
false
0
0.148936
0
0.148936
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3bef41781bb732a7cb06f991f90aba75666a0ca
4,276
py
Python
nova/tests/unit/conductor/tasks/test_migrate.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/conductor/tasks/test_migrate.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/conductor/tasks/test_migrate.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in writing, software # d...
47.511111
79
0.667212
501
4,276
5.461078
0.313373
0.052266
0.027412
0.03655
0.118421
0.07383
0.054094
0.028509
0
0
0
0.002786
0.244621
4,276
89
80
48.044944
0.844272
0.127689
0
0.028986
0
0
0.051144
0
0
0
0
0
0.086957
1
0.057971
false
0
0.144928
0.014493
0.231884
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3c289b2ddb7ec4ef9412f5ae94e7553200e0202
4,668
py
Python
mojoco trivial/mujocoSim/UR5/simple_example/Mujoco_py_example.py
garlicbutter/Jonathan-Tom
c1696f0a94da46911b3566a3d4f49791e877373f
[ "MIT" ]
2
2021-10-05T04:31:19.000Z
2021-10-05T04:31:26.000Z
mojoco trivial/mujocoSim/UR5/simple_example/Mujoco_py_example.py
garlicbutter/Tom-Jonathan
c1696f0a94da46911b3566a3d4f49791e877373f
[ "MIT" ]
null
null
null
mojoco trivial/mujocoSim/UR5/simple_example/Mujoco_py_example.py
garlicbutter/Tom-Jonathan
c1696f0a94da46911b3566a3d4f49791e877373f
[ "MIT" ]
null
null
null
import numpy as np import mujoco_py as mj from mujoco_py_renderer import SimulationError, XMLError, MujocoPyRenderer from mujoco_py import (MjSim, load_model_from_xml,functions, load_model_from_path, MjSimState, ignore_mujoco_warnings, load_model_from...
29.923077
105
0.610111
835
4,668
3.291018
0.201198
0.028384
0.016376
0.0131
0.356623
0.338428
0.268559
0.212518
0.1754
0.091703
0
0.071776
0.206084
4,668
156
106
29.923077
0.669725
0.1009
0
0.127273
0
0.127273
0.402296
0.005023
0
0
0
0
0
1
0
false
0
0.054545
0
0.054545
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3c726cfaf4ab3b53d1df8bd6d6c24aef693e3ab
5,066
py
Python
fedml_api/standalone/federated_sgan/fedssgan_api.py
arj119/FedML
5b7c098659f3e61f9e44583965300d8d0829f7a8
[ "Apache-2.0" ]
null
null
null
fedml_api/standalone/federated_sgan/fedssgan_api.py
arj119/FedML
5b7c098659f3e61f9e44583965300d8d0829f7a8
[ "Apache-2.0" ]
null
null
null
fedml_api/standalone/federated_sgan/fedssgan_api.py
arj119/FedML
5b7c098659f3e61f9e44583965300d8d0829f7a8
[ "Apache-2.0" ]
null
null
null
import copy import logging import random from typing import List, Tuple import numpy as np import torch import wandb from torch.utils.data import ConcatDataset from fedml_api.standalone.fedavg.my_model_trainer import MyModelTrainer from fedml_api.standalone.federated_sgan.ac_gan_model_trainer import ACGANModelTrainer...
44.831858
129
0.627319
562
5,066
5.329181
0.238434
0.080134
0.028047
0.050083
0.23172
0.193656
0.116861
0.116861
0.036728
0.036728
0
0.001907
0.275365
5,066
112
130
45.232143
0.813947
0.250888
0
0.032258
0
0
0.074792
0.042238
0
0
0
0
0
1
0.048387
false
0
0.209677
0
0.274194
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3c78b4ed55d10de069695bce6f3d899ee02cc99
20,932
py
Python
pytorch-word2vec-master/csv.py
arjun-sai-krishnan/tamil-morpho-embeddings
a33bcb427d635dba3b1857f26ea7ab287e1a44c5
[ "MIT" ]
2
2021-04-11T18:25:16.000Z
2022-03-16T03:48:52.000Z
pytorch-word2vec-master/csv.py
arjun-sai-krishnan/tamil-morpho-embeddings
a33bcb427d635dba3b1857f26ea7ab287e1a44c5
[ "MIT" ]
null
null
null
pytorch-word2vec-master/csv.py
arjun-sai-krishnan/tamil-morpho-embeddings
a33bcb427d635dba3b1857f26ea7ab287e1a44c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse from collections import Counter import pdb import pickle import re import sys import time import numpy as np import torch import torch.nn as nn from torch.autograd import Variable from torch import optim import torch.nn.functional as F import torch.multiprocessing as mp import ...
40.487427
250
0.591821
2,703
20,932
4.376619
0.128746
0.02967
0.038039
0.032122
0.471344
0.391801
0.352663
0.332798
0.295773
0.265596
0
0.01997
0.289509
20,932
516
251
40.565891
0.775484
0.089002
0
0.375321
0
0
0.066652
0.001184
0
0
0
0
0
1
0.030848
false
0
0.041131
0
0.092545
0.03856
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3c8721ad82d9b0c4f4bbb5e4ea027824401f22d
339
py
Python
Ogrenciler/Varol/buyuksayi.py
ProEgitim/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
1
2021-04-18T17:35:22.000Z
2021-04-18T17:35:22.000Z
Ogrenciler/Varol/buyuksayi.py
waroi/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
null
null
null
Ogrenciler/Varol/buyuksayi.py
waroi/Python-Dersleri-BEM
b25e9fdb1fa3026925a46b2fcbcba348726b775c
[ "MIT" ]
2
2021-04-18T18:22:26.000Z
2021-04-24T17:16:19.000Z
sayi1 = int(input("1. Sayı: ")) sayi2 = int(input("2. Sayı: ")) sayi3 = int(input("3. Sayı: ")) sayi4 = int(input("4. Sayı: ")) sayi5 = int(input("5. Sayı: ")) sayilar=[]; sayilar.append(sayi1) sayilar.append(sayi2) sayilar.append(sayi3) sayilar.append(sayi4) sayilar.append(sayi5) sayilar.sort() print("En büyük sayimiz...
21.1875
39
0.663717
49
339
4.591837
0.408163
0.177778
0
0
0
0
0
0
0
0
0
0.05298
0.109145
339
15
40
22.6
0.692053
0
0
0
0
0
0.186944
0
0
0
0
0
0
1
0
false
0
0
0
0
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3c959da81854ccd184aefdeb715f7df8413b8b8
8,899
py
Python
baselines/deepq/build_graph_mfec.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
null
null
null
baselines/deepq/build_graph_mfec.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
null
null
null
baselines/deepq/build_graph_mfec.py
MouseHu/emdqn
ba907e959f21dd0b5a17117accccae9c82a79a3b
[ "MIT" ]
1
2021-04-26T13:55:47.000Z
2021-04-26T13:55:47.000Z
"""Deep Q learning graph The functions in this file can are used to create the following functions: ======= act ======== Function to chose an action given an observation Parameters ---------- observation: object Observation that can be feed into the output of make_obs_ph stochastic: bool...
42.37619
127
0.618047
1,213
8,899
4.329761
0.222589
0.015994
0.018279
0.021325
0.246002
0.201828
0.129665
0.098439
0.058454
0.058454
0
0.008969
0.298348
8,899
209
128
42.578947
0.832159
0.480616
0
0.097222
0
0
0.029527
0
0
0
0
0
0
1
0.027778
false
0
0.041667
0
0.097222
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3cadf1c1469dc28d63f965c32ff3b98b7eb9d52
8,719
py
Python
src/salgan_dhf1k/train_bce.py
juanjo3ns/SalGAN2
ac52af743b94961cdb44c5d89774b72fc8acfd3e
[ "MIT" ]
null
null
null
src/salgan_dhf1k/train_bce.py
juanjo3ns/SalGAN2
ac52af743b94961cdb44c5d89774b72fc8acfd3e
[ "MIT" ]
null
null
null
src/salgan_dhf1k/train_bce.py
juanjo3ns/SalGAN2
ac52af743b94961cdb44c5d89774b72fc8acfd3e
[ "MIT" ]
null
null
null
import os from dataloader.datasetDHF1K import DHF1K from torch.utils.data import DataLoader from utils.salgan_utils import save_model, get_lr_optimizer from utils.sendTelegram import send from utils.printer import param_print from utils.salgan_generator import create_model, add_bn from evaluation.fast_evaluation impor...
31.139286
112
0.686661
1,222
8,719
4.738953
0.270049
0.014505
0.02642
0.012433
0.110862
0.093766
0.038335
0.026248
0.015887
0.015887
0
0.015247
0.165042
8,719
279
113
31.250896
0.78022
0.354972
0
0.029197
0
0
0.117913
0.019743
0
0
0
0
0
1
0.014599
false
0
0.138686
0
0.167883
0.058394
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3cc11867421204e587bf63f6a7dd58a6716ea01
2,030
py
Python
infapy/v3/agentService.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
null
null
null
infapy/v3/agentService.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
null
null
null
infapy/v3/agentService.py
infapy/infapy
0cb11310130be70ce1b647aa5ede929c1eb9b2ce
[ "Apache-2.0" ]
1
2021-09-23T10:31:56.000Z
2021-09-23T10:31:56.000Z
# Copyright (c) 2021-Present (Prashanth Pradeep) # 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 agreed...
38.301887
120
0.634975
237
2,030
5.400844
0.50211
0.063281
0.040625
0.025
0.065625
0.065625
0.065625
0.065625
0.065625
0
0
0.013495
0.269951
2,030
53
121
38.301887
0.850202
0.279803
0
0.228571
0
0
0.146694
0.019972
0
0
0
0
0
1
0.057143
false
0.028571
0.085714
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3cd937793e2d0c588285b6a5f1e77f851ebcc85
5,703
py
Python
home_application/views.py
pengwow/test-demo
9d5c460b534d93d84f39ae24db82aa101027d199
[ "Apache-2.0" ]
null
null
null
home_application/views.py
pengwow/test-demo
9d5c460b534d93d84f39ae24db82aa101027d199
[ "Apache-2.0" ]
4
2020-02-12T01:47:04.000Z
2021-06-10T21:34:36.000Z
home_application/views.py
pengwow/test-demo
9d5c460b534d93d84f39ae24db82aa101027d199
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obt...
30.015789
115
0.627389
705
5,703
4.859574
0.303546
0.030356
0.016346
0.04028
0.227087
0.202277
0.159953
0.088733
0.060128
0.041448
0
0.007204
0.245485
5,703
189
116
30.174603
0.788984
0.162195
0
0.194915
0
0
0.146907
0.049613
0
0
0
0
0
1
0.101695
false
0
0.059322
0.008475
0.262712
0.076271
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3cdf292bfc1d114fbf7d5d60cd7d8fcf12221e7
455
py
Python
Chapter 6/09 - The built-in multiprocessing module/basic_multiprocessing.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
Chapter 6/09 - The built-in multiprocessing module/basic_multiprocessing.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
Chapter 6/09 - The built-in multiprocessing module/basic_multiprocessing.py
moseskim/Expert-Python-Programming-Fourth-Edition
5160f974deb2365597b7be9cc032f24bfa13471a
[ "MIT" ]
null
null
null
""" "멀티프로세싱"절 예시 `multiprocessing` 모듈을 이용해 새로운 프로세스들을 생성하는 방법을 설명한다. """ from multiprocessing import Process import os def work(identifier): print(f'Hey, I am the process ' f'{identifier}, pid: {os.getpid()}') def main(): processes = [Process(target=work, args=(number,)) for number in range(5)] for proc...
18.2
77
0.650549
60
455
4.8
0.683333
0.111111
0
0
0
0
0
0
0
0
0
0.002778
0.208791
455
24
78
18.958333
0.797222
0.140659
0
0
0
0
0.16188
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3ce427e7608fff21718948d99c9396b801b2425
670
py
Python
sweeper/cloud/localhost/manager.py
dominoFire/sweeper
26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9
[ "MIT" ]
null
null
null
sweeper/cloud/localhost/manager.py
dominoFire/sweeper
26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9
[ "MIT" ]
null
null
null
sweeper/cloud/localhost/manager.py
dominoFire/sweeper
26c5497b81c8d0c50671f8ab75c1cf5c4c8191c9
[ "MIT" ]
null
null
null
__author__ = '@dominofire' import os from sweeper.cloud import resource_config_combinations from sweeper.cloud.localhost import resource_config_factory as config_factory from sweeper.resource import Resource def possible_configs(num): configs = config_factory.list_configs() combs = resource_config_combinati...
23.928571
77
0.773134
86
670
5.732558
0.465116
0.11359
0.064909
0
0
0
0
0
0
0
0
0.001742
0.143284
670
27
78
24.814815
0.857143
0
0
0
0
0
0.068657
0
0
0
0
0
0
1
0.1875
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3ced405166d997be98745f69fe1f51cd0fcd9c9
3,193
py
Python
tfx/orchestration/experimental/core/service_jobs_test.py
BACtaki/tfx
29db845200beccbb0ffa1e1e1a091e314a3a470f
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/orchestration/experimental/core/service_jobs_test.py
BACtaki/tfx
29db845200beccbb0ffa1e1e1a091e314a3a470f
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/orchestration/experimental/core/service_jobs_test.py
BACtaki/tfx
29db845200beccbb0ffa1e1e1a091e314a3a470f
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
46.275362
83
0.777639
427
3,193
5.435597
0.311475
0.048255
0.090478
0.108574
0.549763
0.479966
0.442051
0.442051
0.337785
0.17751
0
0.007249
0.135922
3,193
68
84
46.955882
0.833998
0.197307
0
0.266667
0
0
0.034578
0
0
0
0
0
0.266667
1
0.088889
false
0
0.088889
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d03f04854e2e542f97a3c9c4b2caeaa5e05045
17,041
py
Python
dragonn/models.py
kundajelab/dragonn
431e7c6b94a82972ac0fc3ef76d76e9ce8ba67fc
[ "MIT" ]
251
2016-06-20T20:18:27.000Z
2022-03-03T23:31:38.000Z
dragonn/models.py
kundajelab/dragonn
431e7c6b94a82972ac0fc3ef76d76e9ce8ba67fc
[ "MIT" ]
39
2016-07-01T20:40:59.000Z
2022-02-09T23:30:24.000Z
dragonn/models.py
kundajelab/dragonn
431e7c6b94a82972ac0fc3ef76d76e9ce8ba67fc
[ "MIT" ]
89
2016-06-09T17:59:21.000Z
2021-12-20T03:00:09.000Z
from __future__ import absolute_import, division, print_function import matplotlib import numpy as np import os import subprocess import sys import tempfile matplotlib.use('pdf') import matplotlib.pyplot as plt from abc import abstractmethod, ABCMeta from dragonn.metrics import ClassificationResult from sklearn.svm imp...
41.261501
101
0.607007
2,039
17,041
4.835213
0.192251
0.030125
0.019475
0.012172
0.311086
0.252865
0.19292
0.177097
0.140379
0.113602
0
0.012492
0.295347
17,041
412
102
41.36165
0.808544
0.072707
0
0.232919
0
0
0.050096
0.003135
0
0
0
0
0.006211
1
0.096273
false
0.012422
0.093168
0.015528
0.248447
0.040373
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d07703df62a187a4037e7b46931b65c218c987
3,921
py
Python
dgt/inference/forward_inference.py
fractalego/dgt
6781b9445d93c4a1680ab3d5636803c81062cc67
[ "MIT" ]
3
2021-07-26T02:07:15.000Z
2021-12-21T22:36:15.000Z
dgt/inference/forward_inference.py
fractalego/dgt
6781b9445d93c4a1680ab3d5636803c81062cc67
[ "MIT" ]
null
null
null
dgt/inference/forward_inference.py
fractalego/dgt
6781b9445d93c4a1680ab3d5636803c81062cc67
[ "MIT" ]
null
null
null
import logging import random from dgt.graph.graph_matcher import GraphWeightedMatch from dgt.utils import graph_iterations _logger = logging.getLogger(__name__) def find_weight_between(s, first, last): try: start = s.index(first) + len(first) end = s.index(last, start) return s[start:end...
30.632813
95
0.579444
479
3,921
4.524008
0.263048
0.024919
0.020766
0.01569
0.118136
0.074758
0.057222
0.057222
0.057222
0.057222
0
0.005693
0.327978
3,921
127
96
30.874016
0.816698
0.040041
0
0.188119
0
0
0.0209
0
0
0
0
0
0
1
0.089109
false
0
0.049505
0.009901
0.287129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d0a689ffb0010c1b8ab3fafb0b2e1dd2c2562d
1,528
py
Python
serverPythonClient/client.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
serverPythonClient/client.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
serverPythonClient/client.py
ikekilinc/dnnSuperBinoculars
b0fc584b1d449961bdbab37cf9d72c0b466f197f
[ "MIT" ]
null
null
null
import argparse import cv2 import common # from .utils.cropAtCenter import cropImageCenter # from cropAtCenter import cropImageCenter from gabriel_client.websocket_client import WebsocketClient from gabriel_client.opencv_adapter import OpencvAdapter DEFAULT_SERVER_HOST = '128.2.212.50' DEFAULT_ZOOM_FACTOR = 10 def ...
25.898305
78
0.719241
193
1,528
5.440415
0.362694
0.052381
0.080952
0.038095
0.108571
0.108571
0.108571
0.108571
0
0
0
0.024564
0.174084
1,528
58
79
26.344828
0.807448
0.066099
0
0
0
0
0.042867
0
0
0
0
0
0
1
0.108108
false
0
0.135135
0.027027
0.297297
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d10c9654ae4266e8db0dc3b63e312a5537bc75
719
py
Python
src/DeepCard.API/batch.py
SharsDela/BankCardRecognize
ce80589bc5a5afaba2b97b1ccab35354fb99b548
[ "Apache-2.0" ]
7
2019-09-01T13:36:52.000Z
2021-05-20T19:38:40.000Z
src/DeepCard.API/batch.py
SharsDela/BankCardRecognize
ce80589bc5a5afaba2b97b1ccab35354fb99b548
[ "Apache-2.0" ]
1
2019-09-01T13:37:50.000Z
2020-09-18T10:35:20.000Z
src/DeepCard.API/batch.py
SharsDela/BankCardRecognize
ce80589bc5a5afaba2b97b1ccab35354fb99b548
[ "Apache-2.0" ]
2
2020-02-03T01:57:36.000Z
2020-03-05T11:19:14.000Z
from api import get_result import os import shutil from glob import glob from PIL import Image if __name__ == '__main__': image_files = glob('./test_images/*.*') result_dir = './test_results' if os.path.exists(result_dir): shutil.rmtree(result_dir) os.mkdir(result_dir) txt_file = os.path.j...
28.76
82
0.623088
100
719
4.19
0.42
0.107399
0
0
0
0
0
0
0
0
0
0.003604
0.228095
719
25
83
28.76
0.751351
0
0
0
0
0
0.105556
0
0
0
0
0
0
1
0
false
0
0.238095
0
0.238095
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d15d48b5db9739108b6ecc4d1923cf6d0d654b
4,106
py
Python
CIM14/ENTSOE/Equipment/Core/Curve.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM14/ENTSOE/Equipment/Core/Curve.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM14/ENTSOE/Equipment/Core/Curve.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # 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...
52.641026
277
0.614467
574
4,106
4.355401
0.329268
0.0352
0.0176
0.0288
0.3312
0.3312
0.2976
0.2976
0.2384
0.2384
0
0.011057
0.207014
4,106
77
278
53.324675
0.756757
0.640039
0
0.066667
0
0
0.125804
0
0
0
0
0
0
1
0.166667
false
0
0.033333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d2324b7f134c8871f8f82a96cc6abc0a30b3ea
2,432
py
Python
fluent/syntax/errors.py
unclenachoduh/python-fluent
1d15bdc94a37ecb488a80aefcdd37b8cb5535f73
[ "Apache-2.0" ]
null
null
null
fluent/syntax/errors.py
unclenachoduh/python-fluent
1d15bdc94a37ecb488a80aefcdd37b8cb5535f73
[ "Apache-2.0" ]
null
null
null
fluent/syntax/errors.py
unclenachoduh/python-fluent
1d15bdc94a37ecb488a80aefcdd37b8cb5535f73
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals class ParseError(Exception): def __init__(self, code, *args): self.code = code self.args = args self.message = get_error_message(code, args) def get_error_message(code, args): if code == 'E00001': return 'Generic error' if code == '...
36.298507
76
0.60773
307
2,432
4.771987
0.374593
0.106485
0.045051
0.044369
0.238225
0.12628
0.094881
0
0
0
0
0.063356
0.279605
2,432
66
77
36.848485
0.772831
0
0
0.032258
0
0
0.441612
0
0
0
0
0
0
1
0.032258
false
0
0.016129
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d2e1e0e46f7f6e0817c75f138edaf65c103137
14,084
py
Python
twitterinfrastructure/CH-Data-Public.py
jacob-heglund/socialsensing-jh
fd6d2d749f40fee46bee749ff868212bf117a747
[ "BSD-2-Clause", "MIT" ]
null
null
null
twitterinfrastructure/CH-Data-Public.py
jacob-heglund/socialsensing-jh
fd6d2d749f40fee46bee749ff868212bf117a747
[ "BSD-2-Clause", "MIT" ]
null
null
null
twitterinfrastructure/CH-Data-Public.py
jacob-heglund/socialsensing-jh
fd6d2d749f40fee46bee749ff868212bf117a747
[ "BSD-2-Clause", "MIT" ]
null
null
null
''' Created on Mar 22, 2018 Edited on Jan 11, 2019 @author: npvance2 @author: curtisd2 Variables that will need to be edited/personalized: monitorID in Variables() (line 27) projectStartDate in Variables() (line 28) projectEndDate in Variables() (line 29) authToken in getAuthToken() (...
47.103679
360
0.510934
1,266
14,084
5.64218
0.274092
0.01344
0.0238
0.01932
0.196556
0.196556
0.153437
0.153437
0.144197
0.131597
0
0.017683
0.389662
14,084
298
361
47.261745
0.813285
0.183187
0
0.218447
0
0
0.094766
0.017533
0
0
0
0
0
1
0.033981
false
0
0.029126
0
0.092233
0.033981
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d3652391aca6bc7ecc488069329c58736eb71f
1,286
py
Python
roles/slurm/files/startnode.py
danhnguyen48/slurm-elastic-computing
0793cf23677169a6d9dceea0793118bc00c0913e
[ "MIT" ]
null
null
null
roles/slurm/files/startnode.py
danhnguyen48/slurm-elastic-computing
0793cf23677169a6d9dceea0793118bc00c0913e
[ "MIT" ]
null
null
null
roles/slurm/files/startnode.py
danhnguyen48/slurm-elastic-computing
0793cf23677169a6d9dceea0793118bc00c0913e
[ "MIT" ]
null
null
null
#! /opt/cloud_sdk/bin/python import asyncio import logging import subprocess import sys import citc_cloud def handle_exception(exc_type, exc_value, exc_traceback): if issubclass(exc_type, KeyboardInterrupt): sys.__excepthook__(exc_type, exc_value, exc_traceback) return log.critical("Uncaugh...
26.244898
122
0.694401
162
1,286
5.259259
0.530864
0.032864
0.035211
0.052817
0.09507
0.09507
0
0
0
0
0
0.003795
0.180404
1,286
48
123
26.791667
0.804554
0.020995
0
0
0
0
0.130366
0.04531
0
0
0
0
0
1
0.030303
false
0
0.151515
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d474d2b653dcd5a9578ce3979ff7a04e191213
2,300
py
Python
tests/pyre/components/component_class_registration_model.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/pyre/components/component_class_registration_model.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/pyre/components/component_class_registration_model.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2018 all rights reserved # """ Verify that component registration interacts correctly with the pyre configurator model """ # access # print(" -- importing pyre") import pyre # print(" -- done") def declare(): # dec...
22.772277
87
0.59913
283
2,300
4.837456
0.367491
0.021914
0.049671
0.027757
0.090577
0.056976
0.056976
0.056976
0
0
0
0.02472
0.261304
2,300
100
88
23
0.781048
0.37913
0
0.114286
0
0
0.091508
0
0
0
0
0
0.257143
1
0.114286
false
0
0.028571
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
a3d571f1fc3a63903055bc9efe42eada3f2c5310
3,699
py
Python
apps/ignite/views.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
2
2015-04-06T15:20:29.000Z
2016-12-30T12:25:11.000Z
apps/ignite/views.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
2
2019-02-17T17:38:02.000Z
2019-03-28T03:49:16.000Z
apps/ignite/views.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
1
2019-03-28T03:49:18.000Z
2019-03-28T03:49:18.000Z
from django.shortcuts import get_object_or_404 import jingo import waffle from django.contrib.auth.models import User from challenges.models import Submission, Category from projects.models import Project from blogs.models import BlogEntry from events.models import Event def splash(request, project, slug, template_n...
36.99
104
0.638821
412
3,699
5.550971
0.262136
0.0892
0.07477
0.083953
0.40927
0.377787
0.314823
0.314823
0.17359
0.17359
0
0.010842
0.25196
3,699
99
105
37.363636
0.815685
0.072182
0
0.260274
0
0
0.121887
0.04981
0
0
0
0
0
1
0.109589
false
0
0.109589
0.054795
0.328767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d6b9ef2efd18b552dbe05895fafd84b7430c25
17,209
py
Python
bdlb/diabetic_retinopathy_diagnosis/benchmark.py
Sairam954/bdl-benchmarks
6fbc855ca51403ad8f64b6be30ed92f6118c6cae
[ "Apache-2.0" ]
666
2019-06-14T17:14:05.000Z
2022-03-24T10:48:47.000Z
bdlb/diabetic_retinopathy_diagnosis/benchmark.py
Sairam954/bdl-benchmarks
6fbc855ca51403ad8f64b6be30ed92f6118c6cae
[ "Apache-2.0" ]
12
2019-06-26T16:54:14.000Z
2020-08-18T13:16:01.000Z
bdlb/diabetic_retinopathy_diagnosis/benchmark.py
Sairam954/bdl-benchmarks
6fbc855ca51403ad8f64b6be30ed92f6118c6cae
[ "Apache-2.0" ]
97
2019-06-14T20:30:39.000Z
2022-02-05T08:33:49.000Z
# Copyright 2019 BDL Benchmarks Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.625755
92
0.658609
2,048
17,209
5.381836
0.249512
0.013972
0.027944
0.023226
0.24814
0.191163
0.155416
0.145255
0.111958
0.105244
0
0.012101
0.236504
17,209
496
93
34.695565
0.826775
0.316404
0
0.232082
0
0
0.079319
0.019764
0
0
0
0.004032
0.010239
1
0.068259
false
0
0.139932
0
0.269625
0.003413
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d75ce424bf88d4d06c99b804df0f846b952cac
1,873
py
Python
vivisect/storage/mpfile.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
vivisect/storage/mpfile.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
vivisect/storage/mpfile.py
vEpiphyte/vivisect
14947a53c6781175f0aa83d49cc16c524a2e23a3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import base64 import logging import msgpack logger = logging.getLogger(__name__) loadargs = {'use_list': False, 'raw': False} if msgpack.version < (1, 0, 0): loadargs['encoding'] = 'utf-8' else: loadargs['strict_map_key'] = False VSIG = b'MSGVIV'.ljust(8, b'\x00') def vivEventsAppendFile(filename, events)...
28.815385
81
0.599573
233
1,873
4.763949
0.313305
0.064865
0.037838
0.059459
0.373874
0.278378
0.26036
0.26036
0.26036
0.26036
0
0.041667
0.256807
1,873
64
82
29.265625
0.755747
0
0
0.25
0
0
0.04645
0
0
0
0
0
0
1
0.125
false
0
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d771361889efe007b26f62c7cd92ffc6f656a2
3,832
py
Python
pytest_pgsql/plugin.py
mathiasose/pytest-pgsql
5e076db146699c3b683b49e4a31323c4c23054de
[ "BSD-3-Clause" ]
null
null
null
pytest_pgsql/plugin.py
mathiasose/pytest-pgsql
5e076db146699c3b683b49e4a31323c4c23054de
[ "BSD-3-Clause" ]
null
null
null
pytest_pgsql/plugin.py
mathiasose/pytest-pgsql
5e076db146699c3b683b49e4a31323c4c23054de
[ "BSD-3-Clause" ]
null
null
null
"""This forms the core of the pytest plugin.""" import pytest import testing.postgresql from pytest_pgsql import database from pytest_pgsql import ext def pytest_addoption(parser): """Add configuration options for pytest_pgsql.""" parser.addoption( '--pg-extensions', action='store', default='', ...
35.813084
85
0.675626
497
3,832
5.090543
0.420523
0.035968
0.022134
0.016601
0.0917
0.045059
0
0
0
0
0
0.004749
0.230689
3,832
106
86
36.150943
0.85346
0.378914
0
0.137255
0
0
0.326998
0.057883
0.019608
0
0
0
0
1
0.058824
false
0
0.078431
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d816c8c07445ebc9580d3703129a46fcf2cc64
737
py
Python
power_data_to_sat_passes/date_utils.py
abrahamneben/orbcomm_beam_mapping
71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004
[ "MIT" ]
1
2019-04-10T02:50:19.000Z
2019-04-10T02:50:19.000Z
power_data_to_sat_passes/date_utils.py
abrahamneben/orbcomm_beam_mapping
71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004
[ "MIT" ]
null
null
null
power_data_to_sat_passes/date_utils.py
abrahamneben/orbcomm_beam_mapping
71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004
[ "MIT" ]
null
null
null
# written by abraham on aug 24 def dyear2date(dyear): year = int(dyear) month_lengths = [31,28,31,30,31,30,31,31,30,31,30,31] days_before_months = [0,31,59,90,120,151,181,212,243,273,304,334] days_into_year_f = (dyear-year)*365 days_into_year_i = int(days_into_year_f) for i in range(12): if days_before_mo...
27.296296
89
0.72863
144
737
3.416667
0.340278
0.113821
0.170732
0.105691
0.109756
0
0
0
0
0
0
0.125581
0.12483
737
26
90
28.346154
0.637209
0.037992
0
0
0
0
0.03819
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d8391391013bac7dd77afd2eebf78925078f05
752
py
Python
app/base/count_lines.py
sourcery-ai-bot/personal-expenses-accounting
55e76744a06fd502d119f57427cd7a0bfaf68fe1
[ "MIT" ]
5
2020-02-21T16:26:21.000Z
2021-08-05T09:34:28.000Z
app/base/count_lines.py
sourcery-ai-bot/personal-expenses-accounting
55e76744a06fd502d119f57427cd7a0bfaf68fe1
[ "MIT" ]
11
2020-06-26T09:05:04.000Z
2022-01-24T20:35:07.000Z
app/base/count_lines.py
sourcery-ai-bot/personal-expenses-accounting
55e76744a06fd502d119f57427cd7a0bfaf68fe1
[ "MIT" ]
1
2021-06-25T09:42:08.000Z
2021-06-25T09:42:08.000Z
import glob from os import walk exclude_folders = [ 'node_modules', 'ios', 'android', '__pycache__' ] exclude_files = [ 'json', 'txt', 'traineddata', 'lstmf', 'yml', 'md' 'log', 'env', 'gitignore', 'dockerignore' ] # get all files in directory dirr = '/home/vik...
19.282051
86
0.625
87
752
5.264368
0.678161
0.061135
0
0
0
0
0
0
0
0
0
0.003448
0.228723
752
38
87
19.789474
0.786207
0.139628
0
0
0
0
0.265941
0.119751
0
0
0
0
0
1
0
false
0
0.068966
0
0.068966
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d89936d8b1b9966571e7248379800a7bb8190c
17,617
py
Python
charmhelpers/contrib/charmsupport/nrpe.py
nobuto-m/charm-helpers
4cffc05ace43234d34b040cccdde3460f68cb673
[ "Apache-2.0" ]
null
null
null
charmhelpers/contrib/charmsupport/nrpe.py
nobuto-m/charm-helpers
4cffc05ace43234d34b040cccdde3460f68cb673
[ "Apache-2.0" ]
1
2019-09-04T12:17:17.000Z
2019-09-04T12:17:17.000Z
charmhelpers/contrib/charmsupport/nrpe.py
nobuto-m/charm-helpers
4cffc05ace43234d34b040cccdde3460f68cb673
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2015 Canonical Limited. # # 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 agreed to in ...
36.174538
90
0.605097
2,077
17,617
4.959557
0.198844
0.012232
0.022716
0.009708
0.238423
0.187263
0.132414
0.09999
0.085234
0.085234
0
0.00391
0.288698
17,617
486
91
36.248971
0.818131
0.273656
0
0.144876
0
0
0.162476
0.030061
0.003534
0
0
0
0
1
0.067138
false
0.007067
0.042403
0.007067
0.173145
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d9e6ada4265efd73113dc71c68649cc06c25fa
13,250
py
Python
venv/Lib/site-packages/proglog/proglog.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
83
2017-08-14T02:20:38.000Z
2022-03-01T20:32:03.000Z
venv/lib/python3.7/site-packages/proglog/proglog.py
haideraltahan/CropMe
75a111b9d3b2c50c6f2a9a36d21432053f02284d
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
venv/lib/python3.7/site-packages/proglog/proglog.py
haideraltahan/CropMe
75a111b9d3b2c50c6f2a9a36d21432053f02284d
[ "MIT" ]
6
2018-10-23T08:12:26.000Z
2021-02-14T13:53:13.000Z
"""Implements the generic progress logger class, and the ProgressBar class. """ from tqdm import tqdm, tqdm_notebook from collections import OrderedDict import time SETTINGS = { 'notebook': False } def notebook(turn='on'): SETTINGS['notebook'] = True if (turn == 'on') else False def troncate_string(s, max_l...
33.80102
79
0.568981
1,615
13,250
4.496594
0.15418
0.030295
0.026852
0.01859
0.411595
0.374552
0.306252
0.263839
0.241807
0.221427
0
0.003911
0.324528
13,250
391
80
33.887468
0.807486
0.260075
0
0.219731
0
0
0.033269
0
0
0
0
0
0
1
0.130045
false
0.013453
0.013453
0.008969
0.246637
0.017937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3d9f04c9618b248a5e94c0c7319362fccd10a9f
665
py
Python
gdsfactory/tests/test_component_from_yaml_bezier.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
42
2020-05-25T09:33:45.000Z
2022-03-29T03:41:19.000Z
gdsfactory/tests/test_component_from_yaml_bezier.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
133
2020-05-28T18:29:04.000Z
2022-03-31T22:21:42.000Z
gdsfactory/tests/test_component_from_yaml_bezier.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
17
2020-06-30T07:07:50.000Z
2022-03-17T15:45:27.000Z
import gdsfactory as gf from gdsfactory.component import Component yaml = """ name: test_component_yaml_without_cell instances: mmi: component: mmi1x2 bend: component: bend_s connections: bend,o1: mmi,o2 """ def test_component_from_yaml_without_cell() -> Component: """bezier does n...
20.151515
68
0.682707
93
665
4.55914
0.408602
0.122642
0.141509
0.099057
0.301887
0.301887
0
0
0
0
0
0.011299
0.201504
665
32
69
20.78125
0.787194
0.037594
0
0
0
0
0.312303
0.100946
0
0
0
0
0.130435
1
0.043478
false
0
0.086957
0
0.173913
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
a3db4ad6c588be26e30297068925d6bff9a900d1
5,616
py
Python
Tests/Methods/Machine/test_Magnet_Type_11_meth.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
2
2020-06-29T13:48:37.000Z
2021-06-15T07:34:05.000Z
Tests/Methods/Machine/test_Magnet_Type_11_meth.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Machine/test_Magnet_Type_11_meth.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @date Created on Thu Dec 18 13:56:33 2014 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b """ from unittest import TestCase from ddt import ddt, data from pyleecan.Classes.Arc1 import Arc1 from pyleecan.Classes.Segment import Segment from pyleecan.Classes.MagnetType11 import...
33.035294
87
0.579238
821
5,616
3.848965
0.177832
0.037658
0.055696
0.058228
0.704747
0.652532
0.631962
0.612342
0.601899
0.551266
0
0.069008
0.274929
5,616
169
88
33.230769
0.707024
0.108974
0
0.551724
0
0
0.034295
0
0
0
0
0
0.068966
1
0.043103
false
0
0.077586
0
0.12931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3db7f4c59462c81c92a9534466aa08adc11bb16
4,600
py
Python
tomo_encoders/tasks/void_mapping.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
tomo_encoders/tasks/void_mapping.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
tomo_encoders/tasks/void_mapping.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ """ from operator import mod from tomo_encoders.misc.voxel_processing import modified_autocontrast, TimerGPU from tomo_encoders.reconstruction.recon import recon_patches_3d import cupy as cp import numpy as np from skimage.filters import threshold_otsu from tomo_en...
35.384615
122
0.62087
728
4,600
3.721154
0.273352
0.038391
0.017719
0.017719
0.370986
0.331857
0.294943
0.294943
0.294943
0.282392
0
0.032773
0.223913
4,600
129
123
35.658915
0.72605
0.186739
0
0.219512
0
0
0.087591
0
0
0
0
0
0.02439
1
0.073171
false
0
0.085366
0
0.243902
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3dd7fa87a5a13e38a56d66d0de7938491e30d3e
793
py
Python
TuShare/view/sh_margins.py
lwh2015/TuShare
f244e05e5cf208e18e6237d3b81f71f0d3c1394a
[ "MIT" ]
1
2018-09-26T08:34:02.000Z
2018-09-26T08:34:02.000Z
TuShare/view/sh_margins.py
lwh2015/TuShare
f244e05e5cf208e18e6237d3b81f71f0d3c1394a
[ "MIT" ]
null
null
null
TuShare/view/sh_margins.py
lwh2015/TuShare
f244e05e5cf208e18e6237d3b81f71f0d3c1394a
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import json from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt import tushare as ts from .publiceClass import DateEncoder @csrf_exempt def sh_margins(request): try: start = request.POST.get('start','')#选填 end = request.POST.get('end','...
26.433333
76
0.596469
88
793
5.318182
0.568182
0.042735
0.059829
0
0
0
0
0
0
0
0
0.001712
0.263556
793
29
77
27.344828
0.799658
0.031526
0
0
0
0
0.124509
0
0
0
0
0
0
1
0.041667
false
0
0.208333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3de1f30f9f2a9d6efbf703fb8df76e65a62d871
1,181
py
Python
intermediate/classes/camera.py
robertob45/learning-python
7407f7d9e513792150eb2b65ebc644b5f8632c56
[ "MIT" ]
null
null
null
intermediate/classes/camera.py
robertob45/learning-python
7407f7d9e513792150eb2b65ebc644b5f8632c56
[ "MIT" ]
null
null
null
intermediate/classes/camera.py
robertob45/learning-python
7407f7d9e513792150eb2b65ebc644b5f8632c56
[ "MIT" ]
null
null
null
class Camera: """docstring for .""" def __init__(self, brand, sensor, lens, battery): self.brand = brand self.sensor = sensor self.lens = lens self.battery = battery def __str__(self): return self.brand + ' ' + self.sensor + ' ' + self.lens + ' ' + self.battery ...
27.465116
84
0.531753
132
1,181
4.606061
0.363636
0.115132
0.049342
0.055921
0.075658
0
0
0
0
0
0
0
0.329382
1,181
42
85
28.119048
0.767677
0.012701
0
0.257143
0
0
0.157759
0
0
0
0
0
0
1
0.2
false
0
0
0.028571
0.257143
0.371429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3de3ec0c21d41a610e2d90e04c28f83ca0ba4c2
7,332
py
Python
dbaas/tsuru/tests/test_service_add.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
dbaas/tsuru/tests/test_service_add.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
dbaas/tsuru/tests/test_service_add.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
from mock import patch, MagicMock from django.contrib.auth.models import User from django.test import TestCase from django.core.urlresolvers import reverse from django.utils.datastructures import MultiValueDictKeyError from account.models import Role, Team, Organization from physical.tests.factory import EnvironmentF...
30.17284
76
0.524686
740
7,332
5.048649
0.187838
0.038544
0.052463
0.067452
0.492773
0.466542
0.422109
0.414079
0.401231
0.390257
0
0.004723
0.364703
7,332
242
77
30.297521
0.797338
0.011457
0
0.419355
0
0
0.152006
0.035685
0
0
0
0
0.082949
1
0.078341
false
0.013825
0.036866
0
0.129032
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3e06ae8cd6e0aabca5915c1a17ae312a2a03a30
734
py
Python
gryphon/data/template_scaffolding/template/setup.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
null
null
null
gryphon/data/template_scaffolding/template/setup.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
1
2022-03-08T14:54:26.000Z
2022-03-08T15:02:52.000Z
gryphon/data/template_scaffolding/template/setup.py
ow-gryphon/gryphon
0b34f2f61a50af46b9d1ec1d3c15d53cf4055dd5
[ "MIT" ]
null
null
null
import json import setuptools with open("template/README.md", "r") as fh: long_description = fh.read() with open('requirements.txt') as fr: requirements = fr.read().strip().split('\n') with open('metadata.json') as fr: metadata = json.load(fr) setuptools.setup( name="", # Name of the repository ...
28.230769
59
0.688011
91
734
5.428571
0.538462
0.121457
0.157895
0.121457
0.11336
0
0
0
0
0
0
0.008091
0.158038
734
25
60
29.36
0.791262
0.091281
0
0
0
0
0.153614
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3e0ad9312af3accd64fc327daefc5bf89405ae4
6,558
py
Python
train_base3.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
2
2019-01-10T03:44:03.000Z
2019-05-24T08:50:14.000Z
train_base3.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
train_base3.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
""" @Time : 201/21/19 10:41 @Author : TaylorMei @Email : mhy845879017@gmail.com @Project : iccv @File : train_base3.py @Function: """ import datetime import os import torch from torch import nn from torch import optim from torch.autograd import Variable from torch.backends import cudnn from torch.ut...
34.15625
119
0.617261
894
6,558
4.281879
0.223714
0.025862
0.023772
0.021944
0.207158
0.1779
0.142633
0.129572
0.11442
0.11442
0
0.030975
0.236962
6,558
191
120
34.335079
0.734013
0.03004
0
0.105634
0
0.007042
0.106135
0
0
0
0
0
0
1
0.014085
false
0
0.126761
0
0.147887
0.056338
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3e11b8d66ab1bd3a621bca6d89f7a077e4198d7
3,584
py
Python
teacher/views.py
itteamforslp/safelife_project
53af23dec0d19acf7227a43a16d7aedad443e90d
[ "MIT" ]
null
null
null
teacher/views.py
itteamforslp/safelife_project
53af23dec0d19acf7227a43a16d7aedad443e90d
[ "MIT" ]
4
2021-04-08T20:11:37.000Z
2021-09-22T19:37:57.000Z
safelife/safelife_project/teacher/views.py
CSUS-Scrumbags/safelife
2de7f83f637fae930b1176af796f4cc6f0519c86
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.views.decorators.csrf import csrf_exempt from django.template import loader from django.db import connection from django.http import HttpResponseRedirect import datetime from dj...
44.8
154
0.595145
402
3,584
5.131841
0.278607
0.058168
0.024237
0.034901
0.239457
0.191953
0.171595
0.151721
0.128938
0.128938
0
0.000412
0.323382
3,584
79
155
45.367089
0.850309
0.054688
0
0.1
0
0.016667
0.237363
0.025717
0
0
0
0
0
1
0.066667
false
0
0.183333
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3e2215b6ec560d3033ce187558d53690b59cd03
33,955
py
Python
pywikibot/site/_datasite.py
xqt/pwb
9a4fe27138f32952e533256195849d05855df0b0
[ "MIT" ]
null
null
null
pywikibot/site/_datasite.py
xqt/pwb
9a4fe27138f32952e533256195849d05855df0b0
[ "MIT" ]
1
2021-12-08T16:29:41.000Z
2021-12-08T16:29:41.000Z
pywikibot/site/_datasite.py
xqt/pwb
9a4fe27138f32952e533256195849d05855df0b0
[ "MIT" ]
2
2022-01-04T04:10:38.000Z
2022-01-04T04:18:18.000Z
"""Objects representing API interface to Wikibase site.""" # # (C) Pywikibot team, 2012-2022 # # Distributed under the terms of the MIT license. # import datetime import json import uuid from contextlib import suppress from typing import Optional from warnings import warn import pywikibot from pywikibot.data import ap...
36.160809
79
0.560389
3,604
33,955
5.194229
0.1404
0.007479
0.013194
0.020299
0.390224
0.340865
0.313408
0.286165
0.26437
0.255235
0
0.003829
0.338536
33,955
938
80
36.19936
0.829653
0.280754
0
0.380392
0
0
0.117756
0.003975
0
0
0
0.002132
0.021569
1
0.072549
false
0
0.023529
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
a3e3eb5e33cc147796a90e6e65542a513c75576b
1,210
py
Python
app.py
MisaelVillaverde/fourier-calculator
fd50cd292e333c1a9d75e93962a0aaa0985ecef9
[ "MIT" ]
null
null
null
app.py
MisaelVillaverde/fourier-calculator
fd50cd292e333c1a9d75e93962a0aaa0985ecef9
[ "MIT" ]
1
2021-11-07T04:40:13.000Z
2021-11-07T04:40:13.000Z
app.py
MisaelVillaverde/fourier-calculator
fd50cd292e333c1a9d75e93962a0aaa0985ecef9
[ "MIT" ]
null
null
null
from flask import Flask from flask import render_template, request from flask import jsonify import requests import json app = Flask(__name__) @app.route("/symbo",methods=['POST']) def symbo(): #import pdb; pdb.set_trace() session = requests.session() token = session.get("https://es.symbolab.com/solver/s...
41.724138
349
0.717355
170
1,210
5.041176
0.517647
0.051342
0.052509
0.063011
0.226371
0.226371
0.226371
0.226371
0.226371
0.226371
0
0.036178
0.109091
1,210
29
350
41.724138
0.758813
0.306612
0
0
0
0.086957
0.335322
0
0
0
0
0
0
1
0.086957
false
0
0.217391
0.043478
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3e55a939b6d954bcaed4fd506083967468d2eb3
1,584
py
Python
my_code/Chapter_2.py
kalona/Spark-The-Definitive-Guide
0b495c4710b2030aa59d5a7f4053ee0a8345d0d8
[ "Apache-2.0" ]
2
2022-01-02T14:24:29.000Z
2022-01-02T15:54:47.000Z
my_code/Chapter_2.py
kalona/Spark-The-Definitive-Guide
0b495c4710b2030aa59d5a7f4053ee0a8345d0d8
[ "Apache-2.0" ]
null
null
null
my_code/Chapter_2.py
kalona/Spark-The-Definitive-Guide
0b495c4710b2030aa59d5a7f4053ee0a8345d0d8
[ "Apache-2.0" ]
null
null
null
from pyspark.sql import SparkSession # spark = SparkSession.builder.master("local[*]").getOrCreate() spark = SparkSession.builder.getOrCreate() file_path = "C:\home_work\local_github\Spark-The-Definitive-Guide\data\/flight-data\csv\/2015-summary.csv" # COMMAND ---------- # COMMAND ---------- flightData2015 = spa...
18.418605
106
0.680556
181
1,584
5.801105
0.325967
0.073333
0.1
0.091429
0.533333
0.491429
0.367619
0.367619
0.295238
0.219048
0
0.035
0.116162
1,584
85
107
18.635294
0.715
0.146465
0
0.431818
0
0.022727
0.41194
0.097761
0
0
0
0
0
1
0
false
0
0.068182
0
0.068182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3e58f9e7062eea97241b4b05b8e709ab53b50c3
7,508
py
Python
tests/test_intake_postgres.py
ContinuumIO/intake-postgres
fda7f7b2b6255544ea7ffd365a4ac8b2655fd226
[ "BSD-2-Clause" ]
2
2018-11-26T00:14:10.000Z
2018-12-21T01:52:44.000Z
tests/test_intake_postgres.py
ContinuumIO/intake-postgres
fda7f7b2b6255544ea7ffd365a4ac8b2655fd226
[ "BSD-2-Clause" ]
1
2018-12-20T08:41:05.000Z
2018-12-21T15:00:08.000Z
tests/test_intake_postgres.py
ContinuumIO/intake-postgres
fda7f7b2b6255544ea7ffd365a4ac8b2655fd226
[ "BSD-2-Clause" ]
3
2018-12-19T08:34:14.000Z
2019-01-24T07:58:32.000Z
import os import pickle import pytest import pandas as pd from shapely import wkt from intake_postgres import PostgresSource from intake import open_catalog from .util import verify_datasource_interface TEST_DATA_DIR = 'tests' TEST_DATA = [ ('sample1', 'sample1.csv'), ('sample2_1', 'sample2_1.csv'), ('sa...
31.546218
78
0.678876
1,010
7,508
4.816832
0.167327
0.051799
0.041932
0.028777
0.633916
0.619938
0.608633
0.573279
0.556629
0.556629
0
0.006494
0.179542
7,508
237
79
31.679325
0.783279
0.035162
0
0.508571
0
0
0.134506
0.018701
0
0
0
0
0.205714
1
0.062857
false
0
0.062857
0
0.125714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3e6e2cb9c18b7306bf960a8fcbaf212c1159394
351
py
Python
Module_3/testImage.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
Module_3/testImage.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
Module_3/testImage.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
# file = open('C:\\Users\\dks10\\OneDrive\\Desktop\\Projects\\Code\\Python\\PythonCrypto\\Module_3\\eye.png', 'rb') file = open('encrypt_eye.png', 'rb') image = file.read() file.close() image = bytearray(image) key = 48 for index, value in enumerate(image): image[index] = value^key file = open('2eye.png','wb') ...
21.9375
115
0.675214
52
351
4.519231
0.596154
0.102128
0.068085
0
0
0
0
0
0
0
0
0.019293
0.11396
351
16
116
21.9375
0.736334
0.321937
0
0.2
0
0
0.113924
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3e8a92c23b5ddc471c49e37f3c8dc3fb274d2ab
1,702
py
Python
ledfxcontroller/effects/temporal.py
Aircoookie/LedFx
95628fc237497dd89aaf30fdbf88f780f3330166
[ "MIT" ]
17
2018-08-31T05:51:09.000Z
2022-02-12T15:41:33.000Z
ledfxcontroller/effects/temporal.py
Aircoookie/LedFx
95628fc237497dd89aaf30fdbf88f780f3330166
[ "MIT" ]
null
null
null
ledfxcontroller/effects/temporal.py
Aircoookie/LedFx
95628fc237497dd89aaf30fdbf88f780f3330166
[ "MIT" ]
5
2019-07-15T22:12:45.000Z
2022-02-05T10:50:44.000Z
import time import logging from ledfxcontroller.effects import Effect from threading import Thread import voluptuous as vol _LOGGER = logging.getLogger(__name__) DEFAULT_RATE = 1.0 / 60.0 @Effect.no_registration class TemporalEffect(Effect): _thread_active = False _thread = None CONFIG_SCHEMA = vol.Schem...
28.847458
93
0.621622
186
1,702
5.521505
0.473118
0.087634
0.062317
0
0
0
0
0
0
0
0
0.00846
0.305523
1,702
58
94
29.344828
0.860406
0.185076
0
0
0
0
0.007402
0
0
0
0
0
0
1
0.108108
false
0.027027
0.135135
0
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3ec4aae5421f3c1473f18af462a1b949c04b4de
1,796
py
Python
utils.py
LuChang-CS/sherbet
d1061aca108eab8e0ccbd2202460e25261fdf1d5
[ "Apache-2.0" ]
2
2022-01-26T05:38:04.000Z
2022-03-20T08:54:18.000Z
utils.py
LuChang-CS/sherbet
d1061aca108eab8e0ccbd2202460e25261fdf1d5
[ "Apache-2.0" ]
null
null
null
utils.py
LuChang-CS/sherbet
d1061aca108eab8e0ccbd2202460e25261fdf1d5
[ "Apache-2.0" ]
null
null
null
import numpy as np class DataGenerator: def __init__(self, inputs, shuffle=True, batch_size=32): assert len(inputs) > 0 self.inputs = inputs self.idx = np.arange(len(inputs[0])) self.shuffle = shuffle self.batch_size = batch_size self.on_epoch_end() def data_le...
28.967742
72
0.577394
244
1,796
3.930328
0.209016
0.103233
0.094891
0.029197
0.183525
0.08342
0.08342
0.08342
0.08342
0
0
0.013389
0.334633
1,796
61
73
29.442623
0.789121
0
0
0.16
0
0
0
0
0
0
0
0
0.06
1
0.16
false
0
0.02
0.04
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3ec779913e7a7957725c231bcea5cdaa55dcfbf
810
py
Python
Version1_STI.py
sudhanshu55/Speech_to_Image
7a047725b3167cfcb7a68004b3c35b2ece75fde4
[ "MIT" ]
null
null
null
Version1_STI.py
sudhanshu55/Speech_to_Image
7a047725b3167cfcb7a68004b3c35b2ece75fde4
[ "MIT" ]
null
null
null
Version1_STI.py
sudhanshu55/Speech_to_Image
7a047725b3167cfcb7a68004b3c35b2ece75fde4
[ "MIT" ]
null
null
null
from nltk.tokenize import sent_tokenize, word_tokenize from nltk.corpus import stopwords import speech_recognition as sr import nltk from google_images_download import google_images_download response = google_images_download.googleimagesdownload() r = sr.Recognizer() with sr.Microphone() as source: print("Say some...
32.4
94
0.769136
109
810
5.577982
0.53211
0.059211
0.098684
0
0
0
0
0
0
0
0
0.002849
0.133333
810
25
95
32.4
0.863248
0.077778
0
0
0
0
0.065684
0
0
0
0
0
0
1
0
false
0
0.227273
0
0.227273
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