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
5670f91d47cb576d4f02b931926e22ac2154d187
1,628
py
Python
python/robotics/actors/redbot_motor_actor.py
asydorchuk/robotics
678fb7e879326380c5bd9795d81beb21efe4d30c
[ "MIT" ]
null
null
null
python/robotics/actors/redbot_motor_actor.py
asydorchuk/robotics
678fb7e879326380c5bd9795d81beb21efe4d30c
[ "MIT" ]
null
null
null
python/robotics/actors/redbot_motor_actor.py
asydorchuk/robotics
678fb7e879326380c5bd9795d81beb21efe4d30c
[ "MIT" ]
null
null
null
class RedbotMotorActor(object): # TODO(asydorchuk): load constants from the config file. _MAXIMUM_FREQUENCY = 50 def __init__(self, gpio, power_pin, direction_pin_1, direction_pin_2): self.gpio = gpio self.power_pin = power_pin self.direction_pin_1 = direction_pin_1 sel...
34.638298
74
0.675061
213
1,628
4.877934
0.206573
0.130895
0.153994
0.138595
0.516843
0.431184
0.388835
0.388835
0.251203
0.251203
0
0.023126
0.22973
1,628
46
75
35.391304
0.805423
0.03317
0
0.222222
0
0
0
0
0
0
0
0.021739
0
1
0.166667
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
567354b05d6606914384f36b9e70008567997ddb
1,663
py
Python
util/mktables.py
RavuAlHemio/ExpressServiceTagJs
f7ac3abbb9b661642d64cf8e8ce061c28f664ad3
[ "CC0-1.0" ]
null
null
null
util/mktables.py
RavuAlHemio/ExpressServiceTagJs
f7ac3abbb9b661642d64cf8e8ce061c28f664ad3
[ "CC0-1.0" ]
null
null
null
util/mktables.py
RavuAlHemio/ExpressServiceTagJs
f7ac3abbb9b661642d64cf8e8ce061c28f664ad3
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 print("// addTable") for a in range(0, 10): print(" '{0}': {{".format(a)) for b in range(a, 10): s = (a + b) % 10 c = (a + b) // 10 print(" '{0}': '{1}{2}',".format(b, s, c)) print(" },") print() print("// subTable") for a in range(0, ...
26.822581
98
0.385448
230
1,663
2.786957
0.169565
0.152886
0.137285
0.156006
0.48986
0.452418
0.429017
0.399376
0.358814
0.358814
0
0.084713
0.382441
1,663
61
99
27.262295
0.539435
0.012628
0
0.423077
0
0
0.263864
0.062767
0
0
0
0
0
1
0
false
0
0
0
0
0.403846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
56761f73f611f99eeb6195d1e34b9645c12fca96
1,572
py
Python
tpdatasrc/tpgamefiles/scr/Spell327 - Neutralize Poison.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
69
2015-05-05T14:09:25.000Z
2022-02-15T06:13:04.000Z
tpdatasrc/tpgamefiles/scr/Spell327 - Neutralize Poison.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
457
2015-05-01T22:07:45.000Z
2022-03-31T02:19:10.000Z
tpdatasrc/tpgamefiles/scr/Spell327 - Neutralize Poison.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
25
2016-02-04T21:19:53.000Z
2021-11-15T23:14:51.000Z
from toee import * from utilities import * def OnBeginSpellCast( spell ): print "Neutralize Poison OnBeginSpellCast" print "spell.target_list=", spell.target_list print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level game.particles( "sp-conjuration-conjure", spell.caster ) def OnSpellEffect ...
34.933333
106
0.753817
210
1,572
5.514286
0.3
0.085492
0.093264
0.08981
0.402418
0.402418
0.402418
0.402418
0.340242
0.340242
0
0.014674
0.132952
1,572
45
107
34.933333
0.834923
0.174936
0
0.148148
0
0
0.239164
0.017028
0
0
0
0
0
0
null
null
0
0.074074
null
null
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5678b9d5b81720ac0195e464556a9cb296f66f81
4,638
py
Python
api/password_recovery.py
daGnutt/skvaderhack
bd3f17b4afc5d3ebf608dd51bc9fa4cf7bb7a5c1
[ "Apache-2.0" ]
null
null
null
api/password_recovery.py
daGnutt/skvaderhack
bd3f17b4afc5d3ebf608dd51bc9fa4cf7bb7a5c1
[ "Apache-2.0" ]
null
null
null
api/password_recovery.py
daGnutt/skvaderhack
bd3f17b4afc5d3ebf608dd51bc9fa4cf7bb7a5c1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """password_recovery.py: A CGI endpoint for handling password recovery""" import json import os import sys import sqlite3 import auth import groups import sendemail from httperror import HTTPError RETURN_HEADERS = [] def __do_get(): raise HTTPError("This script i...
31.337838
105
0.641656
544
4,638
5.325368
0.272059
0.05523
0.028996
0.034518
0.208492
0.157404
0.157404
0.07387
0.07387
0.07387
0
0.008804
0.240837
4,638
147
106
31.55102
0.813973
0.057999
0
0.137615
0
0
0.249597
0.018864
0
0
0
0
0
1
0.073395
false
0.174312
0.073395
0
0.229358
0.045872
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
567e66f17a589b56279209037e0687924ec40f14
217
py
Python
jp.atcoder/abc042/arc058_a/8109726.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc042/arc058_a/8109726.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc042/arc058_a/8109726.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
n, k = map(int, input().split()) dis = input().split() m = n while True: m = str(m) for d in dis: if d in m: break else: print(m) exit() m = int(m) + 1
15.5
33
0.400922
33
217
2.636364
0.606061
0.229885
0
0
0
0
0
0
0
0
0
0.008403
0.451613
217
13
34
16.692308
0.722689
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.083333
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
567fb933c10db7131062b7bb652bb5c3e78dffdf
736
py
Python
data/migrations/0052_auto_20180615_1537.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
null
null
null
data/migrations/0052_auto_20180615_1537.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
137
2016-12-09T18:59:45.000Z
2021-06-10T18:55:47.000Z
data/migrations/0052_auto_20180615_1537.py
Duke-GCB/bespin-api
cea5c20fb2ff592adabe6ebb7ca934939aa11a34
[ "MIT" ]
3
2017-11-14T16:05:58.000Z
2018-12-28T18:07:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2018-06-15 15:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data', '0051_auto_20180615_1536'), ] operations = [ migrations.AlterField( ...
28.307692
126
0.630435
81
736
5.580247
0.617284
0.088496
0.110619
0.128319
0.19469
0.19469
0.19469
0.19469
0.19469
0
0
0.060773
0.262228
736
25
127
29.44
0.771639
0.092391
0
0.333333
1
0
0.243609
0.034586
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5682622367b5286568770055d1c66d46fb56be43
7,769
py
Python
tests/adapters/test_adapter_chireadscom.py
vuonojenmustaturska/FanFicFare
0234c161175a10bb3420e446e76cbdc9f9a3cf8a
[ "Apache-2.0" ]
null
null
null
tests/adapters/test_adapter_chireadscom.py
vuonojenmustaturska/FanFicFare
0234c161175a10bb3420e446e76cbdc9f9a3cf8a
[ "Apache-2.0" ]
null
null
null
tests/adapters/test_adapter_chireadscom.py
vuonojenmustaturska/FanFicFare
0234c161175a10bb3420e446e76cbdc9f9a3cf8a
[ "Apache-2.0" ]
null
null
null
import pytest # from unittest import mock from unittest.mock import patch # , call, Mock from fanficfare.six.moves.urllib.error import HTTPError from fanficfare.adapters.adapter_chireadscom import ChireadsComSiteAdapter as chiread from fanficfare.configurable import Configuration from fanficfare import exceptions ...
53.951389
1,129
0.737161
926
7,769
6.053996
0.312095
0.053514
0.044952
0.070639
0.586693
0.555298
0.48787
0.459508
0.425972
0.425972
0
0.015986
0.170678
7,769
143
1,130
54.328671
0.852708
0.022011
0
0.405063
0
0.139241
0.435535
0.096301
0
0
0
0
0.21519
1
0.139241
false
0.012658
0.075949
0
0.240506
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
568269a99e73c2ea942ed79a9c184aa97b552a21
3,539
py
Python
python/pyWebserver/webserver.py
josephlewis42/personal_codebase
aa0fff9a908ab90bc78d24aa69d1b91163c35314
[ "Unlicense" ]
3
2015-11-24T17:06:58.000Z
2018-05-01T14:03:57.000Z
python/pyWebserver/webserver.py
josephlewis42/personal_codebase
aa0fff9a908ab90bc78d24aa69d1b91163c35314
[ "Unlicense" ]
null
null
null
python/pyWebserver/webserver.py
josephlewis42/personal_codebase
aa0fff9a908ab90bc78d24aa69d1b91163c35314
[ "Unlicense" ]
null
null
null
''' Copyright 2009 Joseph A Lewis III 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 di...
31.882883
552
0.640294
446
3,539
4.988789
0.403587
0.025169
0.025169
0.014382
0.131236
0.131236
0.131236
0.108764
0.108764
0.108764
0
0.015064
0.268437
3,539
110
553
32.172727
0.844341
0.092682
0
0.318841
0
0
0.113767
0.012395
0
0
0
0
0
0
null
null
0.014493
0.115942
null
null
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
1
0
0
0
0
0
0
0
0
1
56896db60e1417e370e646c89efb0f2d193a7f26
370
py
Python
class1/class1_exercise6.py
christopherjosephmartin/test-repo
9b28a61a6c8c9457c18e75561ca2ccdac6483bcc
[ "Apache-2.0" ]
null
null
null
class1/class1_exercise6.py
christopherjosephmartin/test-repo
9b28a61a6c8c9457c18e75561ca2ccdac6483bcc
[ "Apache-2.0" ]
null
null
null
class1/class1_exercise6.py
christopherjosephmartin/test-repo
9b28a61a6c8c9457c18e75561ca2ccdac6483bcc
[ "Apache-2.0" ]
null
null
null
import yaml import json def create_yaml_json_files(): dict1 = {'Name': 'chris', 'Country': 'Australia'} list1 = [range(4), dict1, 'some string', 104] with open('yaml_file.yml', 'w') as f: f.write(yaml.dump(list1, default_flow_style=False)) with open('json_file.json', 'w') as f: ...
21.764706
59
0.624324
54
370
4.092593
0.555556
0.090498
0.126697
0.171946
0
0
0
0
0
0
0
0.031034
0.216216
370
16
60
23.125
0.731034
0
0
0
0
0
0.175676
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
568c3b3152aa69fdb65255fc8ca42045b8a00d7e
1,486
py
Python
day21/day21.py
UncleTed/adventOfCode2021
76cdd82cf7c950ac02f890f1227a777aae0ad7e8
[ "MIT" ]
null
null
null
day21/day21.py
UncleTed/adventOfCode2021
76cdd82cf7c950ac02f890f1227a777aae0ad7e8
[ "MIT" ]
null
null
null
day21/day21.py
UncleTed/adventOfCode2021
76cdd82cf7c950ac02f890f1227a777aae0ad7e8
[ "MIT" ]
null
null
null
player_1_position = 7 player_2_position = 10 player_1_score = 0 player_2_score = 0 def roll_die(): i = 1 while 1: yield i i += 1 if i > 100: i = 1 roll = roll_die() number_of_die_rolls = 0 # while (player_1_score < 1000 and player_2_score < 1000): # for i in range(6): whi...
30.326531
99
0.656124
233
1,486
3.781116
0.150215
0.119183
0.112372
0.163451
0.515324
0.46765
0.429058
0.213394
0.140749
0.140749
0
0.071366
0.236205
1,486
49
100
30.326531
0.704846
0.050471
0
0.358974
0
0
0.24858
0.044744
0
0
0
0
0
1
0.025641
false
0
0
0
0.025641
0.179487
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5690e8d2dc29aa413e5ebde043aa005d1ff9316d
1,871
py
Python
src/website/views.py
abhijithanilkumar/TravelMate
1c92cc290c538e9a288bfe1da6892241e1a8a428
[ "MIT" ]
null
null
null
src/website/views.py
abhijithanilkumar/TravelMate
1c92cc290c538e9a288bfe1da6892241e1a8a428
[ "MIT" ]
null
null
null
src/website/views.py
abhijithanilkumar/TravelMate
1c92cc290c538e9a288bfe1da6892241e1a8a428
[ "MIT" ]
null
null
null
from django.shortcuts import render from models import * # Create your views here. def searchbusPage(request): if request.method == 'GET': return render(request,'searchbus.html') if request.method == 'POST': btype = [] source = request.POST.get('source','') destination = reques...
45.634146
180
0.655799
228
1,871
5.320175
0.245614
0.085738
0.06925
0.06925
0.6892
0.608409
0.608409
0.608409
0.535862
0.535862
0
0
0.209514
1,871
40
181
46.775
0.820149
0.012293
0
0.5
0
0
0.057421
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
569506ed984de72f492fed784d8444bd351384ed
717
py
Python
setup.py
Holzhaus/Python-Markdown-Video
20b57db7398e02cebcaeb0c202bebc79fc8d692b
[ "BSD-2-Clause" ]
null
null
null
setup.py
Holzhaus/Python-Markdown-Video
20b57db7398e02cebcaeb0c202bebc79fc8d692b
[ "BSD-2-Clause" ]
null
null
null
setup.py
Holzhaus/Python-Markdown-Video
20b57db7398e02cebcaeb0c202bebc79fc8d692b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name="Markdown-Video", version="0.1", url="http://github.com/Holzhaus/Python-Markdown-Video", license="GPL", author="Jan Holthuis", author_email="jholthuis@mixxx.org", description="Video Extension for Markdown", c...
26.555556
59
0.630404
71
717
6.267606
0.830986
0.08764
0
0
0
0
0
0
0
0
0
0.005425
0.228731
717
26
60
27.576923
0.799277
0.029289
0
0.083333
0
0
0.456115
0
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5695103062ecf26b8e6aabac6f9937d429e2d60b
1,474
py
Python
install/python-installer/scripts/traf_package.py
CoderSong2015/Apache-Trafodion
889631aae9cdcd38fca92418d633f2dedc0be619
[ "Apache-2.0" ]
148
2015-06-18T21:26:04.000Z
2017-12-25T01:47:01.000Z
install/python-installer/scripts/traf_package.py
CoderSong2015/Apache-Trafodion
889631aae9cdcd38fca92418d633f2dedc0be619
[ "Apache-2.0" ]
1,352
2015-06-20T03:05:01.000Z
2017-12-25T14:13:18.000Z
install/python-installer/scripts/traf_package.py
CoderSong2015/Apache-Trafodion
889631aae9cdcd38fca92418d633f2dedc0be619
[ "Apache-2.0" ]
166
2015-06-19T18:52:10.000Z
2017-12-27T06:19:32.000Z
#!/usr/bin/env python # @@@ START COPYRIGHT @@@ # # 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 Li...
30.708333
71
0.723202
218
1,474
4.821101
0.56422
0.057088
0.024738
0.030447
0
0
0
0
0
0
0
0.004967
0.180461
1,474
47
72
31.361702
0.865066
0.635685
0
0
0
0
0.233333
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
56a54e324406905fcb4ac878a48b75aa8a94aa71
2,438
py
Python
tests/create_keys_test/__init__.py
tlmolane/Volt
094a4ad337ccb7656d147256f15c6e80e8a989db
[ "MIT" ]
null
null
null
tests/create_keys_test/__init__.py
tlmolane/Volt
094a4ad337ccb7656d147256f15c6e80e8a989db
[ "MIT" ]
null
null
null
tests/create_keys_test/__init__.py
tlmolane/Volt
094a4ad337ccb7656d147256f15c6e80e8a989db
[ "MIT" ]
null
null
null
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding import os def create_keys(private_...
36.939394
109
0.654225
273
2,438
5.608059
0.296703
0.097975
0.070542
0.083605
0.416721
0.36708
0.304376
0.174396
0.174396
0.061398
0
0.00719
0.258409
2,438
65
110
37.507692
0.839602
0.096801
0
0.095238
0
0
0.061419
0
0
0
0
0
0
1
0.02381
false
0.166667
0.142857
0
0.190476
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
56a5b70ed34d94e542d0f714fab758ff04fc285a
787
py
Python
CEV/ex040.py
EduardoMachadoCostaOliveira/Python
329e388c190118f742a3c3df90a15cd00519a58e
[ "MIT" ]
null
null
null
CEV/ex040.py
EduardoMachadoCostaOliveira/Python
329e388c190118f742a3c3df90a15cd00519a58e
[ "MIT" ]
null
null
null
CEV/ex040.py
EduardoMachadoCostaOliveira/Python
329e388c190118f742a3c3df90a15cd00519a58e
[ "MIT" ]
null
null
null
# Crie um programa que leia duas notas de um aluno e calcule sua média, # mostrando uma mensagem no final, de acordo coma média atingida. # -Média abaixo de 5.0: REPROVADO. # -Média entre 5.0 e 6.9: RECUPERAÇÃO # -Média 7.0 ou superior: APROVADO n1 = float(input('Nota 1: ')) n2 = float(input('Nota 2: ')) media = (n1 + ...
39.35
102
0.650572
138
787
3.710145
0.427536
0.019531
0.064453
0.105469
0.251953
0.251953
0.251953
0
0
0
0
0.095827
0.177891
787
19
103
41.421053
0.695518
0.298602
0
0
0
0.214286
0.564103
0.089744
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
56a7314202088bb1fa76f66a1fb8e3261471059d
32,488
py
Python
scripts/gb2tab.py
thomasintveld/genetics-matching
168624d707401d741e1c9a43382a0463d9549aa9
[ "MIT" ]
1
2018-10-04T16:50:42.000Z
2018-10-04T16:50:42.000Z
projects/genome/gb2tab.py
EndyLab/FreeGenes
1ddfeeebd8186cd2906b9e991378aa7b17ed7146
[ "MIT" ]
null
null
null
projects/genome/gb2tab.py
EndyLab/FreeGenes
1ddfeeebd8186cd2906b9e991378aa7b17ed7146
[ "MIT" ]
null
null
null
#!/usr/local/python/bin/python # gb2tab - comprehensive GenBank format parser/extractor # # Copyright (C) 2004 - 2008 Rasmus Wernersson, raz@cbs.dtu.dk # # gb2tab is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundati...
29.163375
109
0.663937
4,563
32,488
4.679158
0.182117
0.005152
0.014051
0.011569
0.112641
0.076343
0.065196
0.04796
0.03597
0.03213
0
0.009063
0.225653
32,488
1,113
110
29.189578
0.839647
0.208662
0
0.245436
0
0.004057
0.14825
0.011231
0
0
0
0
0
0
null
null
0.004057
0.004057
null
null
0.006085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
56a77fad2c594ecece731f694b078181bdd489fe
5,268
py
Python
pythonequipmentdrivers/functiongenerator/Agilent_33250A.py
admleman/PythonEquipmentDrivers
1e1fbf96ae372757ad90339af5863ab64daef2a0
[ "MIT" ]
6
2021-02-01T14:23:22.000Z
2021-12-31T12:26:07.000Z
pythonequipmentdrivers/functiongenerator/Agilent_33250A.py
admleman/PythonEquipmentDrivers
1e1fbf96ae372757ad90339af5863ab64daef2a0
[ "MIT" ]
5
2020-08-17T12:59:06.000Z
2022-03-24T02:19:31.000Z
pythonequipmentdrivers/functiongenerator/Agilent_33250A.py
TedKus/PythonEquipmentDrivers
d758a6fb0f7d505d46b24fcd55170e90d2a06cd0
[ "MIT" ]
3
2020-12-30T17:25:55.000Z
2021-07-27T13:52:44.000Z
from pythonequipmentdrivers import Scpi_Instrument import numpy as np class Agilent_33250A(Scpi_Instrument): """ Agilent_33250A(address) address : str, address of the connected function generator object for accessing basic functionallity of the Agilent_33250A function generator """ vali...
34.431373
77
0.631929
659
5,268
4.930197
0.180577
0.142198
0.105263
0.098492
0.487842
0.361342
0.161896
0.091105
0.054171
0
0
0.007194
0.234814
5,268
152
78
34.657895
0.798809
0.039863
0
0.125
0
0
0.145996
0.010186
0
0
0
0
0
1
0.298077
false
0
0.019231
0
0.490385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
56a8d0beec3f548ba795de89bfae9bfe5c969483
2,786
py
Python
Polar Angles.py
Shaikh-Nabeel/HackerRankAlgorithms
3d11fd2c45bd045fa320691c8ac1c89acadc6d8a
[ "Apache-2.0" ]
null
null
null
Polar Angles.py
Shaikh-Nabeel/HackerRankAlgorithms
3d11fd2c45bd045fa320691c8ac1c89acadc6d8a
[ "Apache-2.0" ]
null
null
null
Polar Angles.py
Shaikh-Nabeel/HackerRankAlgorithms
3d11fd2c45bd045fa320691c8ac1c89acadc6d8a
[ "Apache-2.0" ]
null
null
null
""" A point (x,y), on the cartesian plane, makes an angle theta with the positive direction of the x-axis. Theta varies in the interval [0 ,2PI) radians, i.e, greater than or equal to zero; but less than 2*PI radians. For example, the polar angle of the point (1,2) as marked in this plane below, is (approximately) 63....
27.584158
121
0.529792
397
2,786
3.677582
0.405542
0.038356
0.027397
0.008219
0.049315
0.021918
0.021918
0.021918
0.021918
0.021918
0
0.059429
0.371859
2,786
100
122
27.86
0.774857
0.021177
0
0.357143
0
0
0.016383
0
0
0
0
0
0
0
null
null
0
0.035714
null
null
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3b0acbf5e23fa41d8f7e06b3273e4d2ddb42423f
20,313
py
Python
ciscoisesdk/api/v3_1_1/node_services.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
36
2021-05-18T16:24:19.000Z
2022-03-05T13:44:41.000Z
ciscoisesdk/api/v3_1_1/node_services.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
15
2021-06-08T19:03:37.000Z
2022-02-25T14:47:33.000Z
ciscoisesdk/api/v3_1_1/node_services.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
6
2021-06-10T09:32:01.000Z
2022-01-12T08:34:39.000Z
# -*- coding: utf-8 -*- """Cisco Identity Services Engine Node Services API wrapper. Copyright (c) 2021 Cisco and/or its affiliates. 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 restri...
39.063462
124
0.577118
2,112
20,313
5.353693
0.154356
0.03007
0.025471
0.021226
0.709118
0.694968
0.66764
0.654285
0.6404
0.637039
0
0.01421
0.35908
20,313
519
125
39.138728
0.85429
0.444149
0
0.655738
0
0
0.064565
0.045125
0
0
0
0
0
1
0.02459
false
0.020492
0.02459
0
0.07377
0.004098
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b0e9ec7a2aa694e87eabdab9a362ebaaac6d9ea
543
py
Python
server/control_sedes/timetables/migrations/0003_alter_days_day.py
gabrielbarragan/django_app_gestion
1f419c8394879335756a848e4a6f49fd05a02349
[ "MIT" ]
null
null
null
server/control_sedes/timetables/migrations/0003_alter_days_day.py
gabrielbarragan/django_app_gestion
1f419c8394879335756a848e4a6f49fd05a02349
[ "MIT" ]
null
null
null
server/control_sedes/timetables/migrations/0003_alter_days_day.py
gabrielbarragan/django_app_gestion
1f419c8394879335756a848e4a6f49fd05a02349
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-30 18:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('timetables', '0002_alter_days_options_alter_days_day'), ] operations = [ migrations.AlterField( model_name='days', n...
28.578947
194
0.58011
60
543
5.116667
0.833333
0.058632
0
0
0
0
0
0
0
0
0
0.047847
0.230203
543
18
195
30.166667
0.686603
0.082873
0
0
1
0
0.241935
0.076613
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b10aa4d47d072a30badc60c4f31aaa26ae118a7
345
py
Python
temp/main2.py
programmingwithalex/test_repo_python_windows_ci
e81d8a327ab1996cae6cf225b08afbad952da308
[ "BSD-3-Clause" ]
1
2022-03-17T03:08:19.000Z
2022-03-17T03:08:19.000Z
temp/main2.py
programmingwithalex/test_repo_python_windows_ci
e81d8a327ab1996cae6cf225b08afbad952da308
[ "BSD-3-Clause" ]
null
null
null
temp/main2.py
programmingwithalex/test_repo_python_windows_ci
e81d8a327ab1996cae6cf225b08afbad952da308
[ "BSD-3-Clause" ]
null
null
null
import math from typing import Union def sub(a: Union[int, float], b: Union[int, float]) -> int: return math.floor(a - b) def word_count(sentence: str, word: str) -> int: sentence_split = sentence.lower().split() if word in sentence_split: return sum([1 for x in sentence_split if x == word]) ...
21.5625
60
0.64058
54
345
4.018519
0.5
0.179724
0.119816
0
0
0
0
0
0
0
0
0.007634
0.24058
345
15
61
23
0.820611
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0.1
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3b14e4a26cebf1ad1986bd77b9da2365e974371c
3,811
py
Python
apps/bloguser/forms.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/bloguser/forms.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/bloguser/forms.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
#!usr/bin/env python # -*- coding:utf-8 -*- """ @author: nico @file: forms.py @time: 2018/05/04 """ from django.contrib.auth.forms import UserCreationForm, PasswordResetForm from django.contrib.auth.tokens import default_token_generator from django.utils.http import urlsafe_base64_encode from djang...
32.57265
116
0.66518
428
3,811
5.712617
0.308411
0.068712
0.055624
0.04908
0.357873
0.265849
0.265849
0.265849
0.265849
0.244581
0
0.00583
0.234847
3,811
116
117
32.853448
0.832647
0.086854
0
0.2
0
0
0.069547
0.021012
0
0
0
0
0
1
0.057143
false
0.057143
0.157143
0
0.385714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3b1855ecc654b1ff39b74a08ea0b51670b68f6e3
697
py
Python
printColCsv.py
osbilln/shellscripts
431335b32ba25b1b1abfa67ff5b45266e2bc85ce
[ "Apache-2.0" ]
1
2020-05-15T10:22:36.000Z
2020-05-15T10:22:36.000Z
printColCsv.py
osbilln/shellscripts
431335b32ba25b1b1abfa67ff5b45266e2bc85ce
[ "Apache-2.0" ]
null
null
null
printColCsv.py
osbilln/shellscripts
431335b32ba25b1b1abfa67ff5b45266e2bc85ce
[ "Apache-2.0" ]
1
2020-04-05T07:08:38.000Z
2020-04-05T07:08:38.000Z
#!/usr/bin/env python """ Prints up to 100 unique values of COLUMN in CSV_FILE. Usage: printCsvCol.py CSV_FILE COLUMN """ #A. Cin import csv import sys if len(sys.argv) < 3: print __doc__ sys.exit(1) reader = csv.reader(open(sys.argv[1])) lengths = {} headers = {} first = True MAX_ROWS = 100 printed = 0 values...
15.840909
53
0.626973
111
697
3.855856
0.477477
0.049065
0.056075
0.074766
0
0
0
0
0
0
0
0.028409
0.242468
697
43
54
16.209302
0.782197
0.037303
0
0.096774
0
0
0.047703
0
0
0
0
0
0
0
null
null
0
0.064516
null
null
0.322581
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3b1874048d0fafb03ed13bd4ac471b957103b009
320
py
Python
twitter_gen/db_migration/0001.create.py
liufuyang/twitter_tesla
8a5c0a8e13d8a09aa24b609819ad3b4faf9f7542
[ "MIT" ]
null
null
null
twitter_gen/db_migration/0001.create.py
liufuyang/twitter_tesla
8a5c0a8e13d8a09aa24b609819ad3b4faf9f7542
[ "MIT" ]
null
null
null
twitter_gen/db_migration/0001.create.py
liufuyang/twitter_tesla
8a5c0a8e13d8a09aa24b609819ad3b4faf9f7542
[ "MIT" ]
null
null
null
# # file: migrations/0001.create.py # from yoyo import step step( """CREATE TABLE tweets ( id serial PRIMARY KEY, tweet varchar (300) NOT NULL, created_at timestamptz NOT NULL, label_s boolean, pred_s boolean, pred_p real ) """, "DROP TABLE tweets", )
18.823529
40
0.578125
39
320
4.641026
0.769231
0.121547
0.132597
0
0
0
0
0
0
0
0
0.032864
0.334375
320
16
41
20
0.816901
0.096875
0
0
0
0
0.265625
0
0
0
0
0
0
1
0
true
0
0.2
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
1
0
0
0
0
0
0
1
3b1f797990f5178642f452f8ff39bb04eb52a56e
3,961
py
Python
modules/allocator_mysql.py
Zephor5/resource-mall
f0a3cea0d4c9072ea79fc3467aecc98cd96d5f2c
[ "Apache-2.0" ]
null
null
null
modules/allocator_mysql.py
Zephor5/resource-mall
f0a3cea0d4c9072ea79fc3467aecc98cd96d5f2c
[ "Apache-2.0" ]
null
null
null
modules/allocator_mysql.py
Zephor5/resource-mall
f0a3cea0d4c9072ea79fc3467aecc98cd96d5f2c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # eric_wu<zephor@qq.com> import os import docker import requests from docker.errors import ImageNotFound, APIError from configs import cfg from models.host import Host from models.resource_mysql import ResourceMysql from modules.allocator_base import AllocatorBase from utils.errors import AllocatorErro...
37.72381
109
0.578137
477
3,961
4.610063
0.32914
0.028649
0.027285
0.025466
0.087767
0.072306
0
0
0
0
0
0.010557
0.306488
3,961
104
110
38.086538
0.789953
0.037112
0
0.08046
0
0
0.090054
0.005914
0
0
0
0.009615
0
0
null
null
0.034483
0.114943
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3b301249d51e50582bb13a13ec48e4af1ba30906
929
py
Python
tests/test_calibration.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
null
null
null
tests/test_calibration.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
null
null
null
tests/test_calibration.py
RealOrangeOne/yuri
6ed55bdf97c6add22cd6c71c39ca30e2229337cb
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path import pytest from zoloto.calibration import parse_calibration_file def test_loading_missing_file() -> None: filename = Path("doesnt-exist.xml") assert not filename.exists() with pytest.raises(FileNotFoundError): parse_calibration_file(filename) def test_loading_exampl...
25.108108
59
0.653391
92
929
6.434783
0.543478
0.081081
0.101351
0
0
0
0
0
0
0
0
0.210602
0.248654
929
36
60
25.805556
0.637536
0
0
0.074074
0
0
0.050592
0.033369
0
0
0
0
0.148148
1
0.074074
false
0
0.111111
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b311862c471abd3c53f6bb2ca4c594f97cc7f6f
1,077
py
Python
Lib/site-packages/win32com/servers/perfmon.py
egorcompany/telegram-chat-members
19a7c2bffe2fb832b79a4475ca324c438d5f548d
[ "MIT" ]
3
2016-11-24T03:57:22.000Z
2019-02-27T15:19:50.000Z
Lib/site-packages/win32com/servers/perfmon.py
egorcompany/telegram-chat-members
19a7c2bffe2fb832b79a4475ca324c438d5f548d
[ "MIT" ]
67
2016-10-19T01:23:47.000Z
2016-12-14T04:30:38.000Z
Lib/site-packages/win32com/servers/perfmon.py
egorcompany/telegram-chat-members
19a7c2bffe2fb832b79a4475ca324c438d5f548d
[ "MIT" ]
1
2020-08-08T12:44:48.000Z
2020-08-08T12:44:48.000Z
"""A COM Server which exposes the NT Performance monitor in a very rudimentary way Usage from VB: set ob = CreateObject("Python.PerfmonQuery") freeBytes = ob.Query("Memory", "Available Bytes") """ from win32com.server import exception, register import pythoncom, win32pdhutil, winerror class PerfMonQuery: ...
38.464286
92
0.760446
126
1,077
6.269841
0.611111
0.068354
0.053165
0.068354
0
0
0
0
0
0
0
0.032432
0.141133
1,077
27
93
39.888889
0.821622
0.191272
0
0
0
0
0.225617
0.112808
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.578947
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3b3710a06afc7214f6d0794c3873253f1ca71324
3,290
py
Python
learning-python-master/learning-python-master/python_gyakorlas3.py
Hanna998/functional_tests
c0fbc9f97fb55ceb2c1668e56b84ffbad24ae0f4
[ "MIT" ]
null
null
null
learning-python-master/learning-python-master/python_gyakorlas3.py
Hanna998/functional_tests
c0fbc9f97fb55ceb2c1668e56b84ffbad24ae0f4
[ "MIT" ]
null
null
null
learning-python-master/learning-python-master/python_gyakorlas3.py
Hanna998/functional_tests
c0fbc9f97fb55ceb2c1668e56b84ffbad24ae0f4
[ "MIT" ]
null
null
null
# -*- coding:Utf-8 -*- ''' Gyakorlatok : 5.11. x Legyenek adottak a következő listák: t1 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] t2 = ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 'J úlius', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'] Írjon egy kis program...
35
162
0.637386
488
3,290
4.305328
0.362705
0.012851
0.022846
0.026178
0.357925
0.219895
0.150405
0.095193
0.053308
0.026654
0
0.067776
0.233131
3,290
94
163
35
0.763377
0.083891
0
0.581395
0
0
0.159335
0
0
0
0
0
0
0
null
null
0
0
null
null
0.372093
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3b479283295c459513bb08dd52632d0faeabd490
475
py
Python
message_queue/subscriber.py
wreis/message-queue-python
ec5619802cb1458f3e81d1af3d209deab7ac16cd
[ "BSD-3-Clause" ]
10
2016-03-24T18:00:44.000Z
2022-03-02T21:21:26.000Z
message_queue/subscriber.py
ingresse/amqp-python
ec5619802cb1458f3e81d1af3d209deab7ac16cd
[ "BSD-3-Clause" ]
2
2021-02-05T08:13:56.000Z
2021-06-25T15:25:49.000Z
message_queue/subscriber.py
ingresse/amqp-python
ec5619802cb1458f3e81d1af3d209deab7ac16cd
[ "BSD-3-Clause" ]
2
2019-08-30T14:02:02.000Z
2021-08-01T18:22:25.000Z
"""Subscribe to a specific queue and consume the messages. """ class Subscriber: def __init__(self, adapter): """Create a new subscriber with an Adapter instance. :param BaseAdapter adapter: Connection Adapter """ self.adapter = adapter def consume(self, worker): """...
20.652174
76
0.64
53
475
5.660377
0.566038
0.11
0
0
0
0
0
0
0
0
0
0
0.275789
475
22
77
21.590909
0.872093
0.524211
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3b59404f0d991779f33b05150b44a793549a21bf
427
py
Python
src/core/migrations/0020_auto_20181125_0510.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
src/core/migrations/0020_auto_20181125_0510.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
src/core/migrations/0020_auto_20181125_0510.py
metabolism-of-cities/ARCHIVED-metabolism-of-cities-platform-v3
c754d3b1b401906a21640b8eacb6b724a448b31c
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-25 05:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0019_auto_20181125_0501'), ] operations = [ migrations.AlterField( model_name='reference', name='title_origi...
22.473684
74
0.622951
48
427
5.395833
0.854167
0
0
0
0
0
0
0
0
0
0
0.10828
0.264637
427
18
75
23.722222
0.716561
0.105386
0
0
1
0
0.155263
0.121053
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b5dbe0624974600351c0f0541168f4643a6ed08
3,568
py
Python
wsod/models/.ipynb_checkpoints/cmil-checkpoint.py
adityac8/wsod
ea145476e2e95762985647d992d07f0f725e20df
[ "MIT" ]
30
2020-02-01T09:58:18.000Z
2022-02-26T09:28:20.000Z
wsod/models/.ipynb_checkpoints/cmil-checkpoint.py
adityac8/wsod
ea145476e2e95762985647d992d07f0f725e20df
[ "MIT" ]
7
2020-02-06T07:09:40.000Z
2021-03-08T15:34:55.000Z
wsod/models/.ipynb_checkpoints/cmil-checkpoint.py
adityac8/wsod
ea145476e2e95762985647d992d07f0f725e20df
[ "MIT" ]
6
2020-02-21T06:35:34.000Z
2021-06-07T13:47:06.000Z
import torch from torch import nn from torchvision import models, ops class InstanceSelector(nn.Module): def __init__(self, in_features, out_features, epochs=20, schedule='log'): self.fc = nn.Linear(in_features, out_features) def partition(self, x, rois, lamb): pred_scores, pred_class...
34.980392
89
0.532791
428
3,568
4.338785
0.264019
0.03231
0.028002
0.045234
0.154012
0.108239
0.108239
0.084006
0.084006
0
0
0.036849
0.338285
3,568
102
90
34.980392
0.749682
0.016536
0
0.097561
0
0
0.009695
0
0
0
0
0
0
0
null
null
0
0.036585
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3b6ffec1ac57b9af2f81825f5a5d5fae4a732f75
1,414
py
Python
plot.py
peterhj/kextlog
dcf2bf42d7c95aa974381777d072b81e2af86d74
[ "MIT" ]
1
2015-11-05T06:45:15.000Z
2015-11-05T06:45:15.000Z
plot.py
peterhj/kextlog
dcf2bf42d7c95aa974381777d072b81e2af86d74
[ "MIT" ]
null
null
null
plot.py
peterhj/kextlog
dcf2bf42d7c95aa974381777d072b81e2af86d74
[ "MIT" ]
null
null
null
#!/usr/bin/python from math import * import matplotlib.pyplot as plt import numpy as np from datetime import * import csv import getpass import sys # http://stackoverflow.com/questions/845058/how-to-get-line-count-cheaply-in-python def file_len(fname): with open(fname) as f: for i, l in enumerate(f): ...
23.966102
86
0.663366
240
1,414
3.808333
0.454167
0.045952
0.028446
0.035011
0.07221
0
0
0
0
0
0
0.040541
0.162659
1,414
58
87
24.37931
0.731419
0.069307
0
0
0
0
0.025875
0
0
0
0
0
0
1
0.073171
false
0.073171
0.170732
0.04878
0.317073
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3b70c094eabb2a76da91bfa625c04e90fa227d8a
5,883
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_rgmgr_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_rgmgr_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_rgmgr_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI...
52.061947
245
0.523882
634
5,883
4.643533
0.15142
0.070652
0.088315
0.048913
0.690897
0.630435
0.506114
0.417799
0.377717
0.338315
0
0.028871
0.287608
5,883
112
246
52.526786
0.673586
0
0
0.421053
0
0.042105
0.458527
0.406008
0
0
0
0
0
1
0
false
0
0.084211
0
0.084211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b73d280c66802c24883198aab9d033f6856a094
1,213
py
Python
xkeysnail/.xkeysnail/config.py
tomato-300yen/dotfiles
90851166320e37b068ff27a132b3156dffd6963d
[ "MIT" ]
null
null
null
xkeysnail/.xkeysnail/config.py
tomato-300yen/dotfiles
90851166320e37b068ff27a132b3156dffd6963d
[ "MIT" ]
null
null
null
xkeysnail/.xkeysnail/config.py
tomato-300yen/dotfiles
90851166320e37b068ff27a132b3156dffd6963d
[ "MIT" ]
null
null
null
import re from xkeysnail.transform import K, define_keymap, set_mark, with_mark define_keymap( lambda wm_class: wm_class not in ("Gnome-terminal", "Alacritty", "kitty"), { # cousor K("LC-A"): with_mark(K("home")), K("LC-E"): with_mark(K("end")), K("LC-P"): K("UP"), K("L...
28.209302
78
0.464963
180
1,213
3.072222
0.283333
0.097649
0.130199
0.018083
0
0
0
0
0
0
0
0
0.265458
1,213
42
79
28.880952
0.620651
0.14427
0
0.0625
0
0
0.266019
0
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3b88aac1f64cccff6cb7313a4b8356562b5ef641
7,219
py
Python
pattern_generation.py
rsjones94/point-disorder
07ebe4c8a2b2e4ec965d6b9a78a78e7e8956810c
[ "MIT" ]
null
null
null
pattern_generation.py
rsjones94/point-disorder
07ebe4c8a2b2e4ec965d6b9a78a78e7e8956810c
[ "MIT" ]
1
2021-06-02T01:47:20.000Z
2021-06-02T01:47:20.000Z
pattern_generation.py
rsjones94/point-disorder
07ebe4c8a2b2e4ec965d6b9a78a78e7e8956810c
[ "MIT" ]
1
2020-01-06T17:39:14.000Z
2020-01-06T17:39:14.000Z
import math import numpy as np import matplotlib.pyplot as plt def generate_grid(xmax, ymax, step_x, step_y): """ Generates a numpy array representing a grid Args: xmax: maximum x limit ymax: maximum y limit step_x: the step in the x direction step_y: the step in the y di...
23.825083
124
0.573764
1,036
7,219
3.911197
0.196911
0.031096
0.00617
0.015795
0.301826
0.262093
0.238894
0.232478
0.218164
0.218164
0
0.015701
0.320682
7,219
302
125
23.903974
0.810563
0.344508
0
0.348214
1
0
0
0
0
0
0
0
0
1
0.116071
false
0
0.026786
0
0.258929
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b8bdaa9045cbef14cc5e69ce61978b3d3c90742
9,956
py
Python
labscript_devices/chipfpgaui.py
specialforcea/labscript_suite
a4ad5255207cced671990fff94647b1625aa0049
[ "BSD-2-Clause" ]
null
null
null
labscript_devices/chipfpgaui.py
specialforcea/labscript_suite
a4ad5255207cced671990fff94647b1625aa0049
[ "BSD-2-Clause" ]
null
null
null
labscript_devices/chipfpgaui.py
specialforcea/labscript_suite
a4ad5255207cced671990fff94647b1625aa0049
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'chipfpga.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): ...
56.891429
106
0.719968
1,185
9,956
5.790717
0.109705
0.104051
0.039347
0.05596
0.402507
0.261148
0.151851
0.060769
0.045468
0.03789
0
0.027447
0.165629
9,956
174
107
57.218391
0.798604
0.01828
0
0.05
1
0
0.063998
0.00512
0
0
0
0
0
1
0.03125
false
0
0.00625
0.01875
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b8eb280ba4c3b4d9f2ec32d204b999ff501978e
2,678
py
Python
crawlers/wikicfp/wikicfp_crawler.py
michaelvdang/conrad
e50479709a29aa2c7237c2f9d3bb097b01745b31
[ "Apache-2.0" ]
null
null
null
crawlers/wikicfp/wikicfp_crawler.py
michaelvdang/conrad
e50479709a29aa2c7237c2f9d3bb097b01745b31
[ "Apache-2.0" ]
null
null
null
crawlers/wikicfp/wikicfp_crawler.py
michaelvdang/conrad
e50479709a29aa2c7237c2f9d3bb097b01745b31
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import datetime as dt import json import requests from bs4 import BeautifulSoup as bs from ..base import BaseCrawler class WikicfpCrawler(BaseCrawler): def get_events(self): response = requests.get( "http://www.wikicfp.com/cfp/" ) response.encoding = '...
31.880952
76
0.465646
288
2,678
4.135417
0.329861
0.076406
0.075567
0.036944
0.097397
0.030227
0
0
0
0
0
0.014139
0.418969
2,678
83
77
32.26506
0.751285
0.007842
0
0.028986
0
0
0.093032
0
0
0
0
0
0
0
null
null
0
0.072464
null
null
0.057971
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3b9641e454a61c810b97b29a15c7a146ca190edd
1,305
py
Python
iwg_blog/attachments/migrations/0001_initial.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
iwg_blog/attachments/migrations/0001_initial.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
iwg_blog/attachments/migrations/0001_initial.py
razortheory/who-iwg-webapp
e2318d286cd9ab87d4d8103bc7b3072cfb99bf76
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-11 07:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('blog', '0001_initial'), ] opera...
35.27027
160
0.600766
138
1,305
5.5
0.514493
0.031621
0.036891
0.057971
0.321476
0.321476
0.321476
0.321476
0.208169
0.208169
0
0.023859
0.261303
1,305
36
161
36.25
0.763485
0.051341
0
0.428571
1
0
0.110931
0
0
0
0
0
0
1
0
false
0
0.107143
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3b97516852f51b7b6e8d3a40b541e8b28c454b5d
3,767
py
Python
tacker/sol_refactored/api/api_version.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/sol_refactored/api/api_version.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/sol_refactored/api/api_version.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright (C) 2021 Nippon Telegraph and Telephone Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICE...
32.474138
78
0.631537
504
3,767
4.492063
0.297619
0.064929
0.037102
0.035336
0.257509
0.238074
0.238074
0.191254
0.191254
0.141784
0
0.020043
0.258296
3,767
115
79
32.756522
0.790265
0.216883
0
0.123288
0
0.013699
0.06346
0.013647
0
0
0
0
0
1
0.150685
false
0
0.027397
0.109589
0.410959
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8e58a5648faa02be83ce226806f5b91f84d41f83
15,869
py
Python
simsapa/assets/ui/links_browser_window_ui.py
ilius/simsapa
b6c46cb6cba39557f665c0aaf63b84659dd983b8
[ "MIT" ]
null
null
null
simsapa/assets/ui/links_browser_window_ui.py
ilius/simsapa
b6c46cb6cba39557f665c0aaf63b84659dd983b8
[ "MIT" ]
null
null
null
simsapa/assets/ui/links_browser_window_ui.py
ilius/simsapa
b6c46cb6cba39557f665c0aaf63b84659dd983b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'simsapa/assets/ui/links_browser_window.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. ...
62.72332
115
0.747117
1,652
15,869
6.930387
0.128935
0.061141
0.062364
0.030396
0.400996
0.26273
0.141235
0.104376
0.06446
0.05887
0
0.012094
0.150671
15,869
252
116
62.972222
0.837365
0.019094
0
0.037815
1
0
0.114282
0.00752
0
0
0
0
0
1
0.008403
false
0
0.008403
0
0.021008
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8e5a79967e053bd635804575fedce946b70900da
1,125
py
Python
olaf/user/tests.py
kenalizadeh/Olaf-Food-Delivery-Backend
1890973fbfdc8d8af539694ea237e48393d3daeb
[ "MIT" ]
null
null
null
olaf/user/tests.py
kenalizadeh/Olaf-Food-Delivery-Backend
1890973fbfdc8d8af539694ea237e48393d3daeb
[ "MIT" ]
null
null
null
olaf/user/tests.py
kenalizadeh/Olaf-Food-Delivery-Backend
1890973fbfdc8d8af539694ea237e48393d3daeb
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.shortcuts import reverse from django.db.models import signals from django.contrib.auth import get_user_model from olaf.tasks import send_sms_to import json User = get_user_model() class SignalTests(TestCase): def setUp(self): self.user = User.objec...
22.959184
96
0.698667
141
1,125
5.397163
0.411348
0.052562
0.09067
0.122208
0.289093
0.289093
0.289093
0.22339
0.22339
0.22339
0
0.079558
0.195556
1,125
48
97
23.4375
0.761326
0.021333
0
0.153846
0
0
0.094631
0
0
0
0
0
0.115385
1
0.192308
false
0.153846
0.230769
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
1
0
0
0
0
0
1
8e5e9d7cbd069ef5cc07e6f909c314039b814db5
2,336
py
Python
optotron.py
knrdl/optotron
edeabf93b873646129c15310efce09886fe41c6e
[ "MIT" ]
3
2022-01-09T08:35:36.000Z
2022-01-09T23:18:12.000Z
optotron.py
knrdl/optotron
edeabf93b873646129c15310efce09886fe41c6e
[ "MIT" ]
null
null
null
optotron.py
knrdl/optotron
edeabf93b873646129c15310efce09886fe41c6e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import serial import os _serial = None def close_connection(): if _serial is not None: _serial.close() def _init(): global _serial try: _serial = serial.Serial(os.getenv('DEVICE'), baudrate=9600, timeout=1, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, ...
21.831776
177
0.577911
325
2,336
3.993846
0.381538
0.03698
0.034669
0.039291
0.053159
0
0
0
0
0
0
0.040268
0.234589
2,336
106
178
22.037736
0.685682
0.00899
0
0.140845
0
0
0.15255
0
0
0
0
0
0.070423
1
0.225352
false
0
0.028169
0.028169
0.309859
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8e686b1f29b20b117c28669da8e9d29c0218fb46
1,376
py
Python
obsolete/Dots.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
87
2015-01-01T03:48:19.000Z
2021-11-23T16:23:24.000Z
obsolete/Dots.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
189
2015-01-06T15:53:11.000Z
2019-05-31T13:19:45.000Z
obsolete/Dots.py
CGATOxford/cgat
326aad4694bdfae8ddc194171bb5d73911243947
[ "BSD-2-Clause", "BSD-3-Clause" ]
56
2015-01-13T02:18:50.000Z
2022-01-05T10:00:59.000Z
"""general functions for working with dot-files. Version: $Id: Dots.py 2784 2009-09-10 11:41:14Z andreas $ Author: Andreas Heger (2003) """ import string import alignlib def ReadFromFile( file, min_dot_score = 0 ): """read dots from a file. """ dots_list = file.readlines() dots = alignlib.makeA...
22.557377
60
0.515988
172
1,376
4.011628
0.389535
0.034783
0.031884
0.04058
0
0
0
0
0
0
0
0.042627
0.369186
1,376
60
61
22.933333
0.752304
0
0
0
0
0
0.024979
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8e6a1daadf473ecadfe06f52613ed8da72397998
2,431
py
Python
layouts/layout_simulation_transect_visualization.py
KEHUIYAO/coral-sampling-tool
731cc22fbf5e4045e894b894547ad52c270e3fb1
[ "MIT" ]
5
2022-03-29T04:41:22.000Z
2022-03-29T12:17:35.000Z
layouts/layout_simulation_transect_visualization.py
KEHUIYAO/coral-sampling-tool
731cc22fbf5e4045e894b894547ad52c270e3fb1
[ "MIT" ]
null
null
null
layouts/layout_simulation_transect_visualization.py
KEHUIYAO/coral-sampling-tool
731cc22fbf5e4045e894b894547ad52c270e3fb1
[ "MIT" ]
null
null
null
import dash_core_components as dcc import dash_table import dash_html_components as html def generate_transect_visualization(): "main function to generate the transect visualization tab" return html.Div([ html.Br(), generate_selected_region_info(), generate_simulation_gra...
36.283582
150
0.650761
296
2,431
5.158784
0.280405
0.059594
0.062868
0.036673
0.294041
0.165684
0.146693
0.146693
0.146693
0.146693
0
0.002643
0.221719
2,431
66
151
36.833333
0.80444
0.289593
0
0.068182
1
0
0.328065
0.039272
0
0
0
0
0
1
0.136364
false
0.022727
0.068182
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8e705e19c36a6876d0e93a2d1d6a3cbe31bec983
278
py
Python
bin/remove_spaces.py
court-jus/dotfiles
f8294dba47cc9e7f0f8b5c645dde13ff34e45124
[ "MIT" ]
null
null
null
bin/remove_spaces.py
court-jus/dotfiles
f8294dba47cc9e7f0f8b5c645dde13ff34e45124
[ "MIT" ]
null
null
null
bin/remove_spaces.py
court-jus/dotfiles
f8294dba47cc9e7f0f8b5c645dde13ff34e45124
[ "MIT" ]
null
null
null
#!/usr/bin/env python print """find . -name "* *" -exec echo "\"{}\"" \; > do.sh""" fh = open("do.sh", "r") lines = fh.read().split('\n') fh.close() fh2 = open("do2.sh", "w") for l in lines: if l: fh2.write("mv %s %s\n" % (l, l.replace(' ', '%20'))) fh2.close()
18.533333
61
0.482014
46
278
2.913043
0.673913
0.059701
0
0
0
0
0
0
0
0
0
0.027149
0.205036
278
14
62
19.857143
0.579186
0.071942
0
0
0
0
0.304688
0
0
0
0
0
0
0
null
null
0
0
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8e7300c5090db05157ce4e389d3761add60d1d4a
2,837
py
Python
zaqar-8.0.0/zaqar/common/policies/subscription.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
97
2015-01-02T09:35:23.000Z
2022-03-25T00:38:45.000Z
zaqar-8.0.0/zaqar/common/policies/subscription.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
zaqar-8.0.0/zaqar/common/policies/subscription.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
44
2015-01-28T03:01:28.000Z
2021-05-13T18:55:19.000Z
# 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 # distributed under t...
29.552083
75
0.557279
252
2,837
6.198413
0.412698
0.130602
0.119078
0.169014
0.516005
0.325224
0.265045
0.265045
0.229193
0.192702
0
0.005311
0.336271
2,837
95
76
29.863158
0.824217
0.183997
0
0.441558
0
0
0.261398
0.107686
0
0
0
0
0
1
0.012987
false
0
0.025974
0.012987
0.051948
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8e73d0fc4238fe378b555b9b8b535fa390761b2c
5,330
py
Python
model.py
DeadlyBunny24/ANN-DistributedSystems
3d4a304ad89cbebe1d497ca9b75bb96751b944eb
[ "MIT" ]
3
2017-07-10T00:31:52.000Z
2020-01-15T21:12:32.000Z
model.py
DeadlyBunny24/ANN-DistributedSystems
3d4a304ad89cbebe1d497ca9b75bb96751b944eb
[ "MIT" ]
null
null
null
model.py
DeadlyBunny24/ANN-DistributedSystems
3d4a304ad89cbebe1d497ca9b75bb96751b944eb
[ "MIT" ]
1
2018-03-02T08:13:07.000Z
2018-03-02T08:13:07.000Z
import tensorflow as tf import numpy as np from tensorflow.python import debug as tf_debug def train_ANN(mem_size=12702, hidden_size=200, learning_rate=0.0001, epochs=5): # Parameters =============================================================== # mem_size = mem_size/min_mem_partition_size # hidd...
37.801418
89
0.58424
635
5,330
4.725984
0.36378
0.016328
0.01866
0.025325
0.150616
0.136954
0.11063
0.095968
0.095968
0.035322
0
0.01032
0.290994
5,330
140
90
38.071429
0.783805
0.342777
0
0.098361
0
0.016393
0.05644
0.019103
0
0
0
0.007143
0
0
null
null
0
0.04918
null
null
0.04918
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8e77db42048ad4c4bc1fef7d327a5b157ae9656f
270
py
Python
2018_3_Cooper_Type/Samples/ligature_maker.py
benkiel/python_workshops
9483c1fd5f7dd87e595289efb7376e1b81ff5ede
[ "MIT" ]
6
2018-03-24T17:31:51.000Z
2021-11-18T06:02:09.000Z
2019_3_Cooper_Type/Samples/ligature_maker.py
benkiel/python_workshops
9483c1fd5f7dd87e595289efb7376e1b81ff5ede
[ "MIT" ]
null
null
null
2019_3_Cooper_Type/Samples/ligature_maker.py
benkiel/python_workshops
9483c1fd5f7dd87e595289efb7376e1b81ff5ede
[ "MIT" ]
null
null
null
font = CurrentFont() ligs = [] for glyph in font: if "_" in glyph.name: ligs.append(glyph.name) for lig in ligs: parts = lig.split('_') line = "sub " for p in parts: line = line + p + " " line = line + "by " + lig + ";" print line
22.5
35
0.522222
37
270
3.756757
0.459459
0.129496
0
0
0
0
0
0
0
0
0
0
0.32963
270
12
36
22.5
0.767956
0
0
0
0
0
0.04059
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
8e7826e58d51a609d12aac1ccbc85e5efb3ab218
827
py
Python
regparser/commands/dependency_resolver.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
regparser/commands/dependency_resolver.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
regparser/commands/dependency_resolver.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
import abc import os import re import six from django.conf import settings class DependencyResolver(six.with_metaclass(abc.ABCMeta)): """Base class for objects which know how to "fix" missing dependencies.""" # The path of dependencies which this can resolve, split into components # which will be combine...
29.535714
78
0.70133
110
827
5.145455
0.590909
0.063604
0
0
0
0
0
0
0
0
0
0
0.215236
827
27
79
30.62963
0.872111
0.299879
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.3125
0.0625
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8e817a7715bab36f2cd1bfb03c387fc411dd231a
886
py
Python
views/model_pub.py
showkeyjar/KnifeREC
095b643e773c0bb6b8d7feb39084ae4febd69c72
[ "MulanPSL-1.0" ]
1
2022-01-29T06:00:38.000Z
2022-01-29T06:00:38.000Z
views/model_pub.py
showkeyjar/KnifeREC
095b643e773c0bb6b8d7feb39084ae4febd69c72
[ "MulanPSL-1.0" ]
null
null
null
views/model_pub.py
showkeyjar/KnifeREC
095b643e773c0bb6b8d7feb39084ae4febd69c72
[ "MulanPSL-1.0" ]
null
null
null
from flask_admin import expose from adminlte.views import BaseAdminView class ModelPubView(BaseAdminView): list_template = 'admin/model/model_list.html' column_editable_list = ['model_id', 'type', 'period', 'start_at', 'created_at'] column_searchable_list = ['model_id', 'type', 'start_at', 'created_at'] ...
29.533333
83
0.673815
116
886
4.87069
0.396552
0.049558
0.069027
0.084956
0.272566
0.152212
0.152212
0.152212
0.152212
0.152212
0
0.002861
0.211061
886
29
84
30.551724
0.805436
0.021445
0
0.086957
0
0
0.194444
0.079861
0
0
0
0.034483
0
1
0.086957
false
0
0.086957
0.086957
0.913043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8e8377f0070925276f034d96adbc535fd06b37e4
5,320
py
Python
media_player.py
etworker/media_player
afdd386a14aded5a11f6f0b9be82ebc37d91d800
[ "MIT" ]
1
2019-01-13T06:44:58.000Z
2019-01-13T06:44:58.000Z
media_player.py
etworker/media_player
afdd386a14aded5a11f6f0b9be82ebc37d91d800
[ "MIT" ]
null
null
null
media_player.py
etworker/media_player
afdd386a14aded5a11f6f0b9be82ebc37d91d800
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from __future__ import unicode_literals """ simple media player based on opencv support web camera / video file / live url press ESC key to quit playing Authors: etworker usage example: # play with local camera python media_player.py --uri 0 # play with local video file tes...
28.913043
94
0.507143
668
5,320
3.905689
0.254491
0.045995
0.018398
0.021081
0.161748
0.109621
0.063626
0.063626
0.063626
0.063626
0
0.040232
0.383271
5,320
184
95
28.913043
0.754953
0.105263
0
0.20354
0
0
0.072749
0.008759
0
0
0.000973
0
0
0
null
null
0.00885
0.00885
null
null
0.088496
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8e88afbbf7403baad56f710df12f5acea46d1ae2
790
py
Python
modules/core/node.py
stonewell/learn-curve
fa712bc3d553c7600ef9f403506faaf410358e41
[ "MIT" ]
null
null
null
modules/core/node.py
stonewell/learn-curve
fa712bc3d553c7600ef9f403506faaf410358e41
[ "MIT" ]
null
null
null
modules/core/node.py
stonewell/learn-curve
fa712bc3d553c7600ef9f403506faaf410358e41
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, nm, name, capacity = 15): self.nm = nm self.name = name self.capacity = capacity self.values = [] def consume(self, from_name, value): """ All subclass need to override this function to do acturlly calculation """ pass def data_income(self, from_name, valu...
22.571429
52
0.696203
123
790
4.284553
0.357724
0.106262
0.12334
0.096774
0
0
0
0
0
0
0
0.004717
0.194937
790
34
53
23.235294
0.823899
0.089873
0
0
0
0
0
0
0
0
0
0
0
1
0.227273
false
0.045455
0
0.045455
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
8e8a2136464722a164be0e0629bfb8b12b2e306e
9,156
py
Python
discodop_n/gen.py
TaniaBladier/Transformer-based-TWG-parsing
c352ac8fab40557456a895a422c500904eaf2656
[ "BSD-2-Clause" ]
2
2022-01-17T13:16:38.000Z
2022-02-16T08:12:12.000Z
discodop_n/gen.py
TaniaBladier/Transformer-based-TWG-parsing
c352ac8fab40557456a895a422c500904eaf2656
[ "BSD-2-Clause" ]
null
null
null
discodop_n/gen.py
TaniaBladier/Transformer-based-TWG-parsing
c352ac8fab40557456a895a422c500904eaf2656
[ "BSD-2-Clause" ]
1
2022-02-16T08:12:15.000Z
2022-02-16T08:12:15.000Z
"""Generate random sentences with an LCFRS. Reads grammar from a text file.""" import sys import gzip import codecs from collections import namedtuple, defaultdict from array import array from random import random SHORTUSAGE = '''Generate random sentences with a PLCFRS or PCFG. Reads grammar from a text file in PLCFR...
32.935252
101
0.645042
1,360
9,156
4.326471
0.225
0.016655
0.007138
0.008158
0.116247
0.045547
0.010197
0.010197
0
0
0
0.023472
0.176387
9,156
277
102
33.054152
0.756796
0.171254
0
0.130233
1
0
0.117052
0
0
0
0
0
0.032558
1
0.051163
false
0
0.027907
0
0.144186
0.032558
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8e8c19680bd0f548f90ce6432828b9bc56f8668f
363
py
Python
Encapsulation.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
1
2019-11-12T13:38:54.000Z
2019-11-12T13:38:54.000Z
Encapsulation.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
null
null
null
Encapsulation.py
liusong-cn/python
f67933f0879021a595258e09c4cde5ca1f9f6aed
[ "Apache-2.0" ]
null
null
null
class Encapsulation: def __hide(self): print("示例的隐藏方法") def getname(self): return self.__name def setname(self,name): if len(name)<3 or len(name)>8: raise ValueError("长度不在范围内") self.__name = name name=property(getname,setname) e = Encapsulation() #e.name = "h...
22.6875
39
0.619835
46
363
4.695652
0.478261
0.111111
0
0
0
0
0
0
0
0
0
0.007326
0.247934
363
15
40
24.2
0.783883
0.071625
0
0
0
0
0.041791
0
0
0
0
0
0
1
0.25
false
0
0
0.083333
0.5
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
1
0
0
0
0
0
0
0
1
8e8e066f8822e3f2b02115abe5430a0443561f58
283
py
Python
engine/__init__.py
songtebo/puppet
9a73d2a231f10848f5d26065d3c9f2f27197dc05
[ "MIT" ]
325
2016-12-12T05:48:32.000Z
2022-03-09T11:00:46.000Z
engine/__init__.py
hohosky/puppet
287af9e77653968179474b818e268b432d7bfcce
[ "MIT" ]
18
2017-04-07T13:50:53.000Z
2021-02-18T07:04:54.000Z
engine/__init__.py
hohosky/puppet
287af9e77653968179474b818e268b432d7bfcce
[ "MIT" ]
175
2016-12-12T05:48:01.000Z
2022-02-14T15:41:49.000Z
import rqalpha config = { "extra": { "log_level": "verbose", }, "mod": { "live_trade": { "lib": "./mod", "enabled": True, "priority": 100, } } } def run(baseConf): config["base"] = baseConf return rqalpha.run(config)
14.894737
31
0.477032
26
283
5.115385
0.769231
0
0
0
0
0
0
0
0
0
0
0.016043
0.339223
283
18
32
15.722222
0.695187
0
0
0
0
0
0.215548
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8e9085092b9155e76b0c0f3713f9fd8d67ce8aae
2,596
py
Python
rnacentral_pipeline/databases/ensembl/data.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
1
2018-08-09T14:41:16.000Z
2018-08-09T14:41:16.000Z
rnacentral_pipeline/databases/ensembl/data.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
60
2015-02-04T16:43:53.000Z
2022-01-27T10:28:43.000Z
rnacentral_pipeline/databases/ensembl/data.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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 requir...
28.844444
72
0.692604
356
2,596
4.94382
0.396067
0.013636
0.059659
0.067614
0.118182
0.047727
0
0
0
0
0
0.007335
0.21225
2,596
89
73
29.168539
0.853301
0.233436
0
0.084746
0
0
0.023209
0
0
0
0
0
0
1
0.084746
false
0
0.20339
0.033898
0.627119
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8e9334a2df2759858ab56713752f85b349a17cef
1,081
py
Python
Data Scientist Career Path/7. Summary Statistics/8. Associations between Variables/1. Quantitative and Categorical/2. mean median.py
myarist/Codecademy
2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb
[ "MIT" ]
23
2021-06-06T15:35:55.000Z
2022-03-21T06:53:42.000Z
Data Scientist Career Path/7. Summary Statistics/8. Associations between Variables/1. Quantitative and Categorical/2. mean median.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Data Scientist Career Path/7. Summary Statistics/8. Associations between Variables/1. Quantitative and Categorical/2. mean median.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
9
2021-06-08T01:32:04.000Z
2022-03-18T15:38:09.000Z
import numpy as np import pandas as pd students = pd.read_csv('students.csv') scores_urban = students.G3[students.address == 'U'] scores_rural = students.G3[students.address == 'R'] #calculate means for each group: scores_urban_mean = np.mean(scores_urban) scores_rural_mean = np.mean(scores_rural) #print mean scores...
26.365854
55
0.791859
156
1,081
5.262821
0.185897
0.120585
0.06821
0.060901
0.431181
0.204629
0.204629
0.204629
0
0
0
0.002077
0.109158
1,081
40
56
27.025
0.850467
0.183164
0
0
0
0
0.237714
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.521739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
8e9663043cb95f0df8434df5f8ff9a3a0595e59b
1,891
py
Python
mealie/routes/meal_routes.py
stevenroh/mealie
ba111073d652a2f34aea8324d0bce4203de34127
[ "MIT" ]
null
null
null
mealie/routes/meal_routes.py
stevenroh/mealie
ba111073d652a2f34aea8324d0bce4203de34127
[ "MIT" ]
1
2021-01-25T18:49:10.000Z
2021-01-25T18:49:10.000Z
mealie/routes/meal_routes.py
stevenroh/mealie
ba111073d652a2f34aea8324d0bce4203de34127
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter, HTTPException from services.meal_services import MealPlan from utils.snackbar import SnackResponse router = APIRouter(tags=["Meal Plan"]) @router.get("/api/meal-plan/all/", response_model=List[MealPlan]) def get_all_meals(): """ Returns a list of all availa...
25.213333
78
0.672131
246
1,891
5.02439
0.304878
0.135922
0.053398
0.045307
0.267799
0.166667
0.166667
0.166667
0.166667
0.101942
0
0.003979
0.202538
1,891
74
79
25.554054
0.81565
0.32734
0
0
0
0
0.179191
0.109001
0
0
0
0
0
1
0.193548
false
0
0.129032
0
0.516129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8e99d7b7a150194a425caad7abd6267529ef09a7
1,841
py
Python
xbrl/common/identify.py
blinkace/pxp
9155103dc166674137bd0e2fddb609ca44875761
[ "MIT" ]
1
2022-01-27T14:53:23.000Z
2022-01-27T14:53:23.000Z
xbrl/common/identify.py
blinkace/pxp
9155103dc166674137bd0e2fddb609ca44875761
[ "MIT" ]
null
null
null
xbrl/common/identify.py
blinkace/pxp
9155103dc166674137bd0e2fddb609ca44875761
[ "MIT" ]
null
null
null
import json from xbrl.xml import parser, qname import lxml.etree as etree from urllib.parse import urlparse from enum import Enum import logging logger = logging.getLogger(__name__) class UnknownDocumentClassError(Exception): pass class MissingDocumentClassError(Exception): pass class DocumentClass(Enum): ...
29.693548
113
0.574688
203
1,841
5.133005
0.428571
0.091171
0.066219
0.036468
0.051823
0.051823
0.051823
0
0
0
0
0.007389
0.338403
1,841
61
114
30.180328
0.848112
0
0
0.173913
0
0
0.113537
0
0
0
0
0
0
1
0.021739
false
0.086957
0.130435
0
0.456522
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8ea13a9c2e3ad7a1282cefcc90efe72b3a377589
5,860
py
Python
adapters/database_adapter.py
ClaudeF4491/crypto_data_fetchers
b03f6655e8fc4baaba6b49c6ae38a700bc701cb2
[ "MIT" ]
null
null
null
adapters/database_adapter.py
ClaudeF4491/crypto_data_fetchers
b03f6655e8fc4baaba6b49c6ae38a700bc701cb2
[ "MIT" ]
null
null
null
adapters/database_adapter.py
ClaudeF4491/crypto_data_fetchers
b03f6655e8fc4baaba6b49c6ae38a700bc701cb2
[ "MIT" ]
null
null
null
""" Adapters for external databases via SQLAlchemy ORM. """ import json import logging from datetime import datetime from sqlalchemy import Column, DateTime, Integer, Float, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from u...
28.309179
128
0.658874
681
5,860
5.524229
0.343612
0.073099
0.011696
0.017544
0.110314
0.110314
0.084795
0.084795
0.084795
0.075758
0
0.002255
0.243174
5,860
206
129
28.446602
0.845998
0.232082
0
0.146341
0
0.00813
0.090845
0.034596
0
0
0
0.004854
0
1
0.056911
false
0.03252
0.073171
0.02439
0.585366
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8eb095878b82c53acb20fb640e6c59de0d987e75
647
py
Python
User/migrations/0005_auto_20180613_2244.py
Arianxx/ShareForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
39
2018-09-08T04:40:59.000Z
2021-09-10T02:02:04.000Z
User/migrations/0005_auto_20180613_2244.py
STARCASTPOD/BookForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
null
null
null
User/migrations/0005_auto_20180613_2244.py
STARCASTPOD/BookForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
8
2018-09-08T08:50:45.000Z
2020-03-13T15:38:56.000Z
# Generated by Django 2.0.5 on 2018-06-13 14:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('User', '0004_auto_20180613_2107'), ] operations = [ migrations.AlterField( model_name='usercollection', name='books',...
28.130435
99
0.621329
63
647
6.238095
0.666667
0.101781
0.127226
0.147583
0.513995
0.513995
0.274809
0.274809
0
0
0
0.064854
0.261206
647
22
100
29.409091
0.757322
0.069552
0
0.352941
1
0
0.221667
0.038333
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ebdf4c96239612adf77db492c2164adb07e8dd0
1,962
py
Python
getvips.py
nsilver7/imperva
1ff1564d04c2feaf084096b53645b49948185cd4
[ "MIT" ]
null
null
null
getvips.py
nsilver7/imperva
1ff1564d04c2feaf084096b53645b49948185cd4
[ "MIT" ]
3
2019-10-09T18:53:12.000Z
2021-06-02T00:32:39.000Z
getvips.py
nsilver7/imperva
1ff1564d04c2feaf084096b53645b49948185cd4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import requests from requests.auth import HTTPBasicAuth from getpass import getpass, getuser import datetime import json import sys def authenticate(session, server): url = f"{server}/SecureSphere/api/v1/auth/session" res = session.post(url, auth=HTTPBasicAuth(getuser(), getpass()), verify=Fa...
26.876712
108
0.717635
292
1,962
4.715753
0.321918
0.069717
0.068991
0.079884
0.240378
0.201162
0.179375
0.179375
0.179375
0.179375
0
0.007013
0.127931
1,962
72
109
27.25
0.797779
0.047401
0
0.04
0
0.02
0.307074
0.16881
0
0
0
0.013889
0
1
0.12
false
0.04
0.12
0
0.28
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8ec9b524f04a5171bfb5bce2b122c5555cb1a86a
616
py
Python
scripts/net_worth.py
TralahM/automate_the_boring_stuff
56945962646a1dfcb984afe861c6ec4e1f904863
[ "MIT" ]
1
2019-05-28T05:53:34.000Z
2019-05-28T05:53:34.000Z
scripts/net_worth.py
TralahM/automate_the_boring_stuff
56945962646a1dfcb984afe861c6ec4e1f904863
[ "MIT" ]
null
null
null
scripts/net_worth.py
TralahM/automate_the_boring_stuff
56945962646a1dfcb984afe861c6ec4e1f904863
[ "MIT" ]
1
2019-11-14T17:05:07.000Z
2019-11-14T17:05:07.000Z
#!python from argparse import ArgumentParser def net_worth(years_working=3,monthly_income=24000): return years_working*monthly_income*1.2 if __name__=='__main__': parser=ArgumentParser() parser.add_argument('-y --years',action='store',dest='years',help='years you have been working',type=float) parser.a...
47.384615
163
0.74026
92
616
4.771739
0.5
0.072893
0.077449
0.08656
0
0
0
0
0
0
0
0.02
0.107143
616
12
164
51.333333
0.778182
0.011364
0
0
0
0.111111
0.311367
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.111111
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8eca77b453fa127187691f596030a10ee9f3b659
5,338
py
Python
ch16-deployment/.venv/lib/python3.10/site-packages/psycopg/pq/_enums.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
5
2021-12-14T03:33:39.000Z
2022-01-11T14:13:21.000Z
ch16-deployment/.venv/lib/python3.10/site-packages/psycopg/pq/_enums.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
null
null
null
ch16-deployment/.venv/lib/python3.10/site-packages/psycopg/pq/_enums.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
null
null
null
""" libpq enum definitions for psycopg """ # Copyright (C) 2020-2021 The Psycopg Team from enum import IntEnum, auto class ConnStatus(IntEnum): """ Current status of the connection. """ __module__ = "psycopg.pq" OK = 0 """The connection is in a working state.""" BAD = auto() """The...
22.714894
82
0.626639
660
5,338
4.959091
0.368182
0.019248
0.036664
0.022915
0.126489
0.078216
0.050718
0.050718
0
0
0
0.004055
0.260772
5,338
234
83
22.811966
0.825393
0.115961
0
0.151899
0
0
0.044525
0
0
0
0
0
0
1
0
false
0
0.012658
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8ecae72745b910639950fb8219288fb1d90f0acf
845
py
Python
tnp/consent/migrations/0024_auto_20170610_0048.py
aakashrana1995/svnit-tnp
13d82339c1e03027fd6e7198bcc1470bb820cb08
[ "MIT" ]
2
2017-04-06T17:09:25.000Z
2017-05-31T04:44:24.000Z
tnp/consent/migrations/0024_auto_20170610_0048.py
aakashrana1995/svnit-tnp
13d82339c1e03027fd6e7198bcc1470bb820cb08
[ "MIT" ]
7
2017-03-30T15:29:37.000Z
2017-06-20T13:20:13.000Z
tnp/consent/migrations/0024_auto_20170610_0048.py
aakashrana1995/svnit-tnp
13d82339c1e03027fd6e7198bcc1470bb820cb08
[ "MIT" ]
10
2017-04-03T19:49:42.000Z
2021-02-15T16:55:31.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-06-09 19:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('consent', '0023_auto_20170605_2243'), ] operations = [ migrations.AlterFiel...
32.5
226
0.56568
96
845
4.84375
0.583333
0.086022
0.107527
0.124731
0.202151
0.202151
0
0
0
0
0
0.054096
0.23432
845
25
227
33.8
0.664606
0.080473
0
0.333333
1
0
0.213178
0.029716
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8edac444fc1d79b5b2717f93e51dbb54320bb911
1,092
py
Python
JMessage/Server/app/models.py
aditya-a-patil/Crypto
ceafbe4734c4a2e24dc07d603d42d60974b3ccf8
[ "Unlicense" ]
null
null
null
JMessage/Server/app/models.py
aditya-a-patil/Crypto
ceafbe4734c4a2e24dc07d603d42d60974b3ccf8
[ "Unlicense" ]
null
null
null
JMessage/Server/app/models.py
aditya-a-patil/Crypto
ceafbe4734c4a2e24dc07d603d42d60974b3ccf8
[ "Unlicense" ]
null
null
null
from datetime import datetime from main import db class User(db.Model): """User model description""" id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(255), unique=True) public_key = db.Column(db.Text) def __init__(self, username, pub_key): self.username = userna...
29.513514
74
0.647436
145
1,092
4.696552
0.296552
0.105727
0.132159
0.099853
0.227606
0.143906
0.143906
0.143906
0.143906
0.143906
0
0.007168
0.233516
1,092
36
75
30.333333
0.806452
0.043956
0
0.074074
0
0
0.020329
0
0
0
0
0
0
1
0.111111
false
0
0.074074
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
1
0
0
1
8ede39824e9633bb4c1b875280ccb4d72874754c
342
py
Python
DjangoApp/stwms_app/migrations/0021_remove_rawmaterialrequest_status.py
EricBrianAnil/smarTangle-auth0
777a260260dfc36b338c141aac9a69d475f0adeb
[ "Apache-2.0" ]
null
null
null
DjangoApp/stwms_app/migrations/0021_remove_rawmaterialrequest_status.py
EricBrianAnil/smarTangle-auth0
777a260260dfc36b338c141aac9a69d475f0adeb
[ "Apache-2.0" ]
null
null
null
DjangoApp/stwms_app/migrations/0021_remove_rawmaterialrequest_status.py
EricBrianAnil/smarTangle-auth0
777a260260dfc36b338c141aac9a69d475f0adeb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.3 on 2020-06-24 03:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stwms_app', '0020_auto_20200624_0927'), ] operations = [ migrations.RemoveField( model_name='rawmaterialrequest', name='stat...
19
49
0.608187
36
342
5.638889
0.833333
0
0
0
0
0
0
0
0
0
0
0.126531
0.283626
342
17
50
20.117647
0.702041
0.131579
0
0
1
0
0.189831
0.077966
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ee6667f163b0496292eb248ee81e0a380e63041
183
py
Python
App/settings/gunicorn_config.py
PhenomingZ/dicer2
3d50d3854a087eecaf45a744ddfe2fa2e225951a
[ "MIT" ]
1
2020-12-20T12:00:43.000Z
2020-12-20T12:00:43.000Z
App/settings/gunicorn_config.py
PhenomingZ/dicer2
3d50d3854a087eecaf45a744ddfe2fa2e225951a
[ "MIT" ]
null
null
null
App/settings/gunicorn_config.py
PhenomingZ/dicer2
3d50d3854a087eecaf45a744ddfe2fa2e225951a
[ "MIT" ]
null
null
null
import os bind = "0.0.0.0:9605" workers = os.cpu_count() * 2 - 1 loglevel = "warning" errorlog = os.path.join("logs", "error.log") accesslog = os.path.join("logs", "access.log")
15.25
46
0.639344
30
183
3.866667
0.666667
0.051724
0.051724
0.241379
0
0
0
0
0
0
0
0.064516
0.153005
183
11
47
16.636364
0.683871
0
0
0
0
0
0.251366
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8eeed887627d86f87efff7625f2571cd7d32d1e4
855
py
Python
bin/eo_setup_nb_dir.py
lsst-camera-dh/EO-utilities
28418284fdaf2b2fb0afbeccd4324f7ad3e676c8
[ "BSD-3-Clause-LBNL" ]
1
2019-05-21T22:40:20.000Z
2019-05-21T22:40:20.000Z
bin/eo_setup_nb_dir.py
lsst-camera-dh/EO-utilities
28418284fdaf2b2fb0afbeccd4324f7ad3e676c8
[ "BSD-3-Clause-LBNL" ]
2
2018-01-26T18:59:05.000Z
2020-12-03T17:50:46.000Z
bin/eo_setup_nb_dir.py
lsst-camera-dh/EO-utilities
28418284fdaf2b2fb0afbeccd4324f7ad3e676c8
[ "BSD-3-Clause-LBNL" ]
1
2018-01-11T22:50:35.000Z
2018-01-11T22:50:35.000Z
#!/usr/bin/env python """Set up a directory to run notebook analysis and copy over the examples""" import os import shutil import glob import argparse from lsst.eo_utils.base.defaults import EO_PACKAGE_BASE from lsst.eo_utils.base.file_utils import make_links DEFAULT_BASEDIR = '/gpfs/slac/lsst/fs1/u/echarles/DAT...
23.108108
76
0.712281
124
855
4.693548
0.532258
0.030928
0.034364
0.051546
0.065292
0
0
0
0
0
0
0.001395
0.161404
855
36
77
23.75
0.810321
0.127485
0
0
0
0
0.117007
0.059864
0
0
0
0
0
1
0.052632
false
0
0.315789
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8ef27ad160cc78ff640207d08d35035573680eaf
1,483
py
Python
data.py
mathstherapy-group1-2021-start/guess_number
994e78a6d10eb37d16299b6725b5d1902b2d7974
[ "MIT" ]
null
null
null
data.py
mathstherapy-group1-2021-start/guess_number
994e78a6d10eb37d16299b6725b5d1902b2d7974
[ "MIT" ]
null
null
null
data.py
mathstherapy-group1-2021-start/guess_number
994e78a6d10eb37d16299b6725b5d1902b2d7974
[ "MIT" ]
null
null
null
class Answer: def __init__(self, text, id): self.id = id self.text = text class Question: def __init__(self, id, text, answers, correct_id): self.id = id self.text = text self.answers = answers self.correct_id = correct_id class Quiz: def __init__(self, na...
25.135593
54
0.441672
171
1,483
3.725146
0.116959
0.188383
0.301413
0.10675
0.395604
0.351648
0.069074
0
0
0
0
0.05257
0.422792
1,483
58
55
25.568966
0.691589
0
0
0.326923
0
0
0.116655
0
0
0
0
0
0
1
0.057692
false
0
0
0
0.115385
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8ef4a47f858942b0a79bafcd84b534cc4e908140
4,004
py
Python
src/configuration.py
jorgemf/kaggle_redefining_cancer_treatment
d9e6b37231c5b3706f94de4d71bd9d9358e147a0
[ "MIT" ]
20
2017-11-22T06:19:40.000Z
2021-12-23T00:58:41.000Z
src/configuration.py
jorgemf/kaggle_redefining_cancer_treatment
d9e6b37231c5b3706f94de4d71bd9d9358e147a0
[ "MIT" ]
1
2018-08-04T13:27:39.000Z
2018-08-04T13:27:39.000Z
src/configuration.py
jorgemf/kaggle_redefining_cancer_treatment
d9e6b37231c5b3706f94de4d71bd9d9358e147a0
[ "MIT" ]
14
2017-12-06T16:33:51.000Z
2021-05-13T15:35:12.000Z
import os from src.task_spec import get_data_path # directories for the data DIR_DATA = 'data' DIR_GENERATED_DATA = get_data_path(dataset_name='jorgemf/kaggle-redefining-cancer-treatment-data', local_root=DIR_DATA, local_repo='generated') DIR_DATA_...
49.432099
117
0.776474
641
4,004
4.599064
0.24025
0.097693
0.030529
0.027137
0.522049
0.453189
0.329037
0.260855
0.248982
0.197422
0
0.043439
0.166334
4,004
80
118
50.05
0.839724
0.455544
0
0
1
0
0.086385
0.022066
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9033dee0910c263e0e511783fb3f40f55af2542
2,904
py
Python
djangoevents/tests/test_utils.py
jungjinhwan0101/djangoevents
d5210515e5f6e4971398720f882e7b52f2ee2d2f
[ "MIT" ]
60
2017-01-25T15:15:56.000Z
2021-11-09T01:53:41.000Z
djangoevents/tests/test_utils.py
jungjinhwan0101/djangoevents
d5210515e5f6e4971398720f882e7b52f2ee2d2f
[ "MIT" ]
24
2017-01-24T17:02:17.000Z
2019-06-26T07:37:18.000Z
djangoevents/tests/test_utils.py
jungjinhwan0101/djangoevents
d5210515e5f6e4971398720f882e7b52f2ee2d2f
[ "MIT" ]
4
2017-01-30T09:50:13.000Z
2020-10-10T13:26:40.000Z
from djangoevents.domain import BaseAggregate from djangoevents.domain import DomainEvent from djangoevents.utils_abstract import abstract from ..utils import camel_case_to_snake_case from ..utils import list_aggregate_events from ..utils import list_concrete_aggregates from ..utils import _list_subclasses from ..utils...
26.162162
80
0.688017
318
2,904
5.977987
0.248428
0.08101
0.034719
0.039979
0.279327
0.268806
0.162546
0.162546
0.139926
0.089427
0
0.006676
0.22624
2,904
110
81
26.4
0.839341
0.024449
0
0.337662
0
0
0.086572
0.042049
0
0
0
0
0.116883
1
0.155844
false
0.168831
0.12987
0
0.493506
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d90580f219a8f8f39298a8849495624f0be56114
2,252
py
Python
src/serialTest.py
sterlingbaldwin/hexypod
03d8954961b08929e6f09628d848bf09f5d97c61
[ "MIT" ]
null
null
null
src/serialTest.py
sterlingbaldwin/hexypod
03d8954961b08929e6f09628d848bf09f5d97c61
[ "MIT" ]
null
null
null
src/serialTest.py
sterlingbaldwin/hexypod
03d8954961b08929e6f09628d848bf09f5d97c61
[ "MIT" ]
null
null
null
import serial from time import sleep import sys START = 500 STOP = 2500 ser = serial.Serial() ser.port = '/dev/ttyAMA0' ser.baudrate = 115200 ser.open() print(ser.is_open) print(ser.name) position = 999 pos_offset = 0 time = 1.0 channel = 0 msg = b'#{ch} P1000 T{time}\r'.format( ch=channel, time=time*1000) ...
24.747253
54
0.471581
282
2,252
3.719858
0.255319
0.045758
0.100095
0.140133
0.553861
0.553861
0.525262
0.452812
0.417541
0.319352
0
0.041993
0.37611
2,252
91
55
24.747253
0.704626
0.254885
0
0.258621
0
0
0.0732
0
0
0
0
0
0
0
null
null
0
0.051724
null
null
0.172414
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9108dfa93e2c4403e0a6837e90fe7e30895cf91
3,788
py
Python
python/company/airbnb_boggle.py
hs634/algorithms
e411d747eb27a1c784605e44111de2703f6dde4d
[ "MIT" ]
null
null
null
python/company/airbnb_boggle.py
hs634/algorithms
e411d747eb27a1c784605e44111de2703f6dde4d
[ "MIT" ]
null
null
null
python/company/airbnb_boggle.py
hs634/algorithms
e411d747eb27a1c784605e44111de2703f6dde4d
[ "MIT" ]
null
null
null
__author__ = 'hs634' class NaiveSolution(): def __init__(self): self.words = [] def is_a_word(self, dict, word): return word in dict def boogle(self, matrix): if len(matrix) == 0: return None rows = len(matrix) cols = len(matrix[0]) visited = [...
29.138462
93
0.489704
515
3,788
3.526214
0.2
0.017621
0.014868
0.013216
0.192181
0.138767
0.116189
0.060022
0.052863
0.052863
0
0.03818
0.350053
3,788
130
94
29.138462
0.699431
0.009768
0
0.093023
0
0
0.016904
0
0
0
0
0
0
0
null
null
0.011628
0
null
null
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d91d57b97e0a61e2e8aae0bcec3d69268bd002d4
2,095
py
Python
tests/www/services/test_encrypt_space_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
tests/www/services/test_encrypt_space_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
tests/www/services/test_encrypt_space_service.py
ki-tools/sls_ki_synapse_admin_py
d9483d01000b61c4e8d129bdc06497ae1a27484b
[ "Apache-2.0" ]
null
null
null
import pytest from www.core import Env from www.services import EncryptSpaceService def test_it_sets_the_project_id(fake_synapse_id): service = EncryptSpaceService(fake_synapse_id) assert service.project_id == fake_synapse_id def test_execute(syn_test_helper): project = syn_test_helper.create_project() ...
36.754386
96
0.705967
252
2,095
5.611111
0.301587
0.063649
0.07355
0.028289
0.256719
0.135785
0.089109
0.089109
0
0
0
0.002245
0.149403
2,095
56
97
37.410714
0.791246
0.084487
0
0
0
0
0.063818
0
0
0
0
0.017857
0.4
1
0.171429
false
0.028571
0.085714
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d921a94ddc7ebc3a5a6fef17276933ac1aeeac88
240
py
Python
books/tech/py/m_lutz-programming_python-4_ed/code/ch_01/step_6/02_a_web-based_shell_interface/webserver.py
ordinary-developer/education
1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58
[ "MIT" ]
1
2017-05-04T08:23:46.000Z
2017-05-04T08:23:46.000Z
books/techno/python/programming_python_4_ed_m_lutz/code/chapter_1/step_6/02_a_web-based_shell_interface/webserver.py
ordinary-developer/lin_education
13d65b20cdbc3e5467b2383e5c09c73bbcdcb227
[ "MIT" ]
null
null
null
books/techno/python/programming_python_4_ed_m_lutz/code/chapter_1/step_6/02_a_web-based_shell_interface/webserver.py
ordinary-developer/lin_education
13d65b20cdbc3e5467b2383e5c09c73bbcdcb227
[ "MIT" ]
null
null
null
import os, sys from http.server import HTTPServer, CGIHTTPRequestHandler webdir = '.' port = 80 os.chdir(webdir) server_address = ("", port) server_object = HTTPServer(server_address, CGIHTTPRequestHandler) server_object.serve_forever()
20
65
0.7875
28
240
6.571429
0.571429
0.141304
0
0
0
0
0
0
0
0
0
0.00939
0.1125
240
11
66
21.818182
0.85446
0
0
0
0
0
0.004167
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d927f7b319d7c4f60615e996023ba5fb5712846b
1,351
py
Python
hush/secrets.py
lechgu/hush
69f9aab6e55969444df0f613a8b4cdd8e3705adb
[ "BSD-3-Clause" ]
3
2019-12-29T02:32:02.000Z
2020-02-17T11:37:39.000Z
hush/secrets.py
lechgu/hush
69f9aab6e55969444df0f613a8b4cdd8e3705adb
[ "BSD-3-Clause" ]
1
2020-01-17T20:39:15.000Z
2020-01-18T19:49:25.000Z
hush/secrets.py
lechgu/hush
69f9aab6e55969444df0f613a8b4cdd8e3705adb
[ "BSD-3-Clause" ]
1
2019-12-29T02:32:05.000Z
2019-12-29T02:32:05.000Z
from Crypto.Cipher import AES as _AES from Crypto.Cipher import PKCS1_OAEP as _PKCS1_OAEP from Crypto.PublicKey import RSA as _RSA from Crypto.Random import get_random_bytes as _get_random_bytes def encrypt(data, key, mode): aes_mode = _AES.MODE_GCM if mode == "gcm" else _AES.MODE_EAX session_key = _get_rando...
35.552632
75
0.734271
207
1,351
4.391304
0.198068
0.09901
0.092409
0.105611
0.420242
0.334433
0.169417
0.169417
0.169417
0.088009
0
0.012579
0.176166
1,351
37
76
36.513514
0.804133
0
0
0.068966
0
0
0.004441
0
0
0
0
0
0
1
0.068966
false
0.068966
0.206897
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d934ea7363e52ffe7c7789f88b7cb32e82b7d9b5
7,617
py
Python
pictoplot/lib.py
Mrpye/pictoplot
e5491cffdde22e1d04b9c3ece3dd4ed8d64bbbc8
[ "Apache-2.0" ]
null
null
null
pictoplot/lib.py
Mrpye/pictoplot
e5491cffdde22e1d04b9c3ece3dd4ed8d64bbbc8
[ "Apache-2.0" ]
null
null
null
pictoplot/lib.py
Mrpye/pictoplot
e5491cffdde22e1d04b9c3ece3dd4ed8d64bbbc8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2017 Andrew Pye This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distri...
35.593458
348
0.649468
1,075
7,617
4.592558
0.367442
0.030788
0.017014
0.013774
0.126393
0.09601
0.063196
0.051448
0.037675
0.037675
0
0.029938
0.23697
7,617
213
349
35.760563
0.819511
0.162137
0
0.166667
0
0
0.248918
0.026247
0
0
0
0
0
0
null
null
0
0.141026
null
null
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d937831a3a1d81b5714307ab0d28610e38f56ddd
10,180
py
Python
Lib/objc/_TextInput.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
701
2018-10-22T11:54:09.000Z
2022-03-31T14:39:30.000Z
Lib/objc/_TextInput.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
229
2018-10-24T09:15:31.000Z
2021-12-24T16:51:37.000Z
Lib/objc/_TextInput.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
131
2018-11-25T18:33:03.000Z
2022-03-24T03:18:07.000Z
""" Classes from the 'TextInput' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None TIUserModelDataStore = _Class("TIUserModelDataStore") TIUs...
52.474227
87
0.863752
587
10,180
14.53833
0.279387
0.038669
0.025779
0.014061
0.013241
0
0
0
0
0
0
0
0.058448
10,180
193
88
52.746114
0.89035
0.003831
0
0.021739
0
0
0.380045
0.300503
0
0
0
0
0
1
0.01087
false
0
0.005435
0.005435
0.032609
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d939d86c38efb91c7c92f622f726579ff8a4f3a5
1,687
py
Python
src/users/models/microsoftgraphapp_log_collection_request.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphapp_log_collection_request.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphapp_log_collection_request.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
40.166667
116
0.624778
183
1,687
5.540984
0.431694
0.08284
0.094675
0.047337
0
0
0
0
0
0
0
0.003623
0.18198
1,687
41
117
41.146341
0.731159
0.465323
0
0
1
0
0.199525
0
0
0
0
0
0
1
0.0625
false
0
0.0625
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d93b48a10884e428e4ad193448dee387cec4f842
4,854
py
Python
rin.py
calvinxiang/Python-Bomb-Game
13b8cdce78cf99058e167dcafd29dc1f25c9dd30
[ "MIT" ]
1
2021-12-02T02:38:25.000Z
2021-12-02T02:38:25.000Z
rin.py
calvinxiang/Python-Bomb-Game
13b8cdce78cf99058e167dcafd29dc1f25c9dd30
[ "MIT" ]
null
null
null
rin.py
calvinxiang/Python-Bomb-Game
13b8cdce78cf99058e167dcafd29dc1f25c9dd30
[ "MIT" ]
null
null
null
print( "Welcome to the Shape Generator:" ) cont = True shape1 = 0 shape2 = 0 shape3 = 0 shape4 = 0 shape5 = 0 shape6 = 0 drawAnotherShape = False def menu(): print() print( "This program draw the following shapes:" ) print( f"{'1) Horizontal Line':>20s}" ) print( f"{'2) Vertical Line':>18s}" ) pr...
29.418182
118
0.562011
607
4,854
4.494234
0.186161
0.039589
0.038123
0.050587
0.416422
0.367302
0.323314
0.323314
0.30132
0.256965
0
0.03772
0.284508
4,854
164
119
29.597561
0.747769
0
0
0.325581
0
0.007752
0.352844
0.025969
0
0
0
0
0
1
0.093023
false
0
0
0
0.124031
0.449612
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
d93bd01161e8ac229e6e517c7aacacfb158a4e39
14,723
py
Python
GM2AUTOSAR_MM/transformation/models/MapVirtualDevice_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
GM2AUTOSAR_MM/transformation/models/MapVirtualDevice_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
GM2AUTOSAR_MM/transformation/models/MapVirtualDevice_MDL.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
""" __MapVirtualDevice_MDL.py_____________________________________________________ Automatically generated AToM3 Model File (Do not modify directly) Author: gehan Modified: Mon Sep 9 15:53:32 2013 ______________________________________________________________________________ """ from stickylink import * from widthXfi...
35.054762
78
0.723969
1,788
14,723
5.745526
0.10179
0.049061
0.03699
0.040495
0.426847
0.363769
0.34469
0.314124
0.296895
0.255622
0
0.070815
0.169395
14,723
419
79
35.138425
0.769237
0.144604
0
0.261168
1
0
0.051161
0
0
0
0
0
0
1
0.003436
false
0
0.130584
0
0.134021
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d94032090c3131d37e3eb3071786ab9fd8e04b46
365
py
Python
store/migrations/0017_auto_20201023_1940.py
dayraliz99/gmeBox
82e7a19cf69452a469d09063146b215413db886b
[ "Apache-2.0" ]
null
null
null
store/migrations/0017_auto_20201023_1940.py
dayraliz99/gmeBox
82e7a19cf69452a469d09063146b215413db886b
[ "Apache-2.0" ]
null
null
null
store/migrations/0017_auto_20201023_1940.py
dayraliz99/gmeBox
82e7a19cf69452a469d09063146b215413db886b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-10-23 19:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('store', '0016_auto_20201023_1926'), ] operations = [ migrations.RenameField( model_name='pagofactura', old_name='mmonto', ...
19.210526
47
0.586301
39
365
5.333333
0.846154
0
0
0
0
0
0
0
0
0
0
0.121569
0.30137
365
18
48
20.277778
0.694118
0.123288
0
0
1
0
0.157233
0.072327
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d94072c479f0b1dc8fa6a642466a096eee3b5660
446
py
Python
src/main.py
BenoitObelia/Parking-Orleans-Metropole
d176f8a5370541373ed98921eaf627797bd86bd4
[ "MIT" ]
1
2021-12-11T12:45:42.000Z
2021-12-11T12:45:42.000Z
src/main.py
BenoitObelia/Parking-Orleans-Metropole
d176f8a5370541373ed98921eaf627797bd86bd4
[ "MIT" ]
null
null
null
src/main.py
BenoitObelia/Parking-Orleans-Metropole
d176f8a5370541373ed98921eaf627797bd86bd4
[ "MIT" ]
null
null
null
from functions.api_parking import get_parking, search_parking, parking_locate parkings = get_parking() for parking in parkings['records']: nom = parking['fields']['name'] places_disponibles = parking['fields']['dispo'] print(f'{nom} | {places_disponibles} places disponibles') print('\n') prin...
26.235294
78
0.70852
55
446
5.509091
0.454545
0.168317
0.132013
0
0
0
0
0
0
0
0
0
0.152466
446
17
79
26.235294
0.801587
0
0
0.181818
0
0
0.236659
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.454545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
d94d7c01b75f06e794db56f16346c889f9de3468
5,151
py
Python
intersight/models/iam_ldap_dns_parameters.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_ldap_dns_parameters.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_ldap_dns_parameters.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamLdapDnsParameters(object): """ NOTE: This ...
27.398936
83
0.574646
576
5,151
4.982639
0.223958
0.079443
0.108711
0.023693
0.408014
0.339373
0.324739
0.279443
0.219512
0.219512
0
0.003557
0.344982
5,151
187
84
27.545455
0.847066
0.311202
0
0.064103
1
0
0.07919
0
0
0
0
0
0
1
0.153846
false
0
0.038462
0
0.346154
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d95418704f844e9a5abe27681c046d5402460ba2
711
py
Python
examples/shap/explainer_logging.py
jinzhang21/mlflow
e926be917795fd945ea347e02cf31214008d3f1e
[ "Apache-2.0" ]
1
2022-02-13T09:40:56.000Z
2022-02-13T09:40:56.000Z
examples/shap/explainer_logging.py
jinzhang21/mlflow
e926be917795fd945ea347e02cf31214008d3f1e
[ "Apache-2.0" ]
1
2022-02-20T20:09:24.000Z
2022-02-20T20:09:24.000Z
examples/shap/explainer_logging.py
jinzhang21/mlflow
e926be917795fd945ea347e02cf31214008d3f1e
[ "Apache-2.0" ]
2
2019-05-11T08:13:38.000Z
2019-05-14T13:33:54.000Z
import mlflow import shap import sklearn from sklearn.datasets import load_diabetes # prepare training data X, y = load_diabetes(return_X_y=True, as_frame=True) # train a model model = sklearn.ensemble.RandomForestRegressor(n_estimators=100) model.fit(X, y) # create an explainer explainer_original = shap.Explainer(m...
26.333333
91
0.767932
102
711
5.166667
0.490196
0.011385
0.098672
0
0
0
0
0
0
0
0
0.006515
0.136428
711
26
92
27.346154
0.851792
0.165963
0
0
0
0
0.081911
0.039249
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
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
1
0
0
0
0
1
d95e1642ad371de67e120dd735eb312c8776e204
868
py
Python
test/unit/models/test_repvgg.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
23
2021-12-08T02:35:01.000Z
2022-03-16T02:23:19.000Z
test/unit/models/test_repvgg.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
4
2021-12-23T11:31:17.000Z
2022-02-28T01:35:31.000Z
test/unit/models/test_repvgg.py
megvii-research/basecls
6b395a0a888370b4523764afb78a5a7634a3f6cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. import megengine as mge import megengine.module as M import numpy as np import pytest from basecls.models.repvgg import RepVGGBlock @pytest.mark.parametrize("w_in", [32, 64]) @pytest.mark.parametrize("w_out", [64]) @pytest.mark.paramet...
29.931034
78
0.690092
145
868
4.013793
0.475862
0.103093
0.216495
0.075601
0.099656
0.099656
0.099656
0.099656
0.099656
0.099656
0
0.048322
0.141705
868
28
79
31
0.732886
0.089862
0
0
0
0
0.046954
0
0
0
0
0
0.1
1
0.05
false
0
0.25
0
0.3
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d96a4a25fff189ca3cb7e521e8af446e52d85d32
446
py
Python
misc/minesweeper/test.py
WesleyAC/toybox
c8c26ed15c1133185cbd6dd38528fbc75a8a1d1f
[ "MIT" ]
21
2017-08-21T15:29:34.000Z
2021-08-05T15:50:11.000Z
misc/minesweeper/test.py
WesleyAC/toybox
c8c26ed15c1133185cbd6dd38528fbc75a8a1d1f
[ "MIT" ]
null
null
null
misc/minesweeper/test.py
WesleyAC/toybox
c8c26ed15c1133185cbd6dd38528fbc75a8a1d1f
[ "MIT" ]
4
2017-10-02T22:10:55.000Z
2022-02-03T23:49:54.000Z
import minesweeper as ms class TestGame: def test_generate_board(self): b3x3 = ms.Game.generate_board(3, 3, 0) assert b3x3 == [[0,0,0],[0,0,0],[0,0,0]] b3x1 = ms.Game.generate_board(3, 1, 0) assert b3x1 == [[0,0,0]] b1x3 = ms.Game.generate_board(1, 3, 0) assert b1x3 ...
31.857143
54
0.547085
77
446
3.064935
0.25974
0.101695
0.114407
0.101695
0.338983
0.254237
0.076271
0.076271
0
0
0
0.156627
0.255605
446
13
55
34.307692
0.554217
0
0
0
1
0
0
0
0
0
0
0
0.363636
1
0.090909
false
0
0.090909
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d979402b7a54dbf4165de649cba4e780ce9579fe
2,591
py
Python
data_management/databases/classification/cropped_camera_trap_dataset_statistics.py
shelviaandi/CameraTraps
5263a50261f29c1b0b1db522f3d96c9657fcdabc
[ "MIT" ]
1
2021-04-16T10:30:37.000Z
2021-04-16T10:30:37.000Z
data_management/databases/classification/cropped_camera_trap_dataset_statistics.py
gitlost-murali/CameraTraps
88a8f8887b7faf7684dbc9d95695e6fa439b2a77
[ "MIT" ]
null
null
null
data_management/databases/classification/cropped_camera_trap_dataset_statistics.py
gitlost-murali/CameraTraps
88a8f8887b7faf7684dbc9d95695e6fa439b2a77
[ "MIT" ]
1
2020-10-26T15:33:25.000Z
2020-10-26T15:33:25.000Z
from pycocotools.coco import COCO import json import numpy as np import argparse parser = argparse.ArgumentParser('Tools for getting dataset statistics. It is written for datasets generated with ' + \ 'the make_classification_dataset.py script.') parser.add_argument("camera_trap_json",...
50.803922
125
0.68545
389
2,591
4.40617
0.321337
0.036756
0.038506
0.049008
0.213536
0.177363
0.140607
0.140607
0.110268
0.079347
0
0.008368
0.169819
2,591
50
126
51.82
0.78847
0.074489
0
0
1
0
0.367168
0.037594
0
0
0
0
0
1
0.025
false
0
0.1
0
0.125
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d981318bce7f699325fbcfb8d0b7b8159d9d7b48
302
py
Python
src/kvt/metrics/pytorch.py
Ynakatsuka/nishika-22
72994cab16486b3a26686642ad72a29b6761b46d
[ "BSD-2-Clause" ]
4
2022-02-01T05:04:53.000Z
2022-02-02T04:16:31.000Z
src/kvt/metrics/pytorch.py
Ynakatsuka/nishika-22
72994cab16486b3a26686642ad72a29b6761b46d
[ "BSD-2-Clause" ]
null
null
null
src/kvt/metrics/pytorch.py
Ynakatsuka/nishika-22
72994cab16486b3a26686642ad72a29b6761b46d
[ "BSD-2-Clause" ]
null
null
null
import torch import torchmetrics def torch_rmse( pred, target, ): score = torch.sqrt(torchmetrics.functional.mean_squared_error(pred, target)) return score def torch_rocauc( pred, target, ): score = torch.sqrt(torchmetrics.functional.auroc(pred, target.int())) return score
17.764706
80
0.718543
37
302
5.756757
0.459459
0.187793
0.140845
0.187793
0.431925
0.431925
0.431925
0
0
0
0
0
0.178808
302
16
81
18.875
0.858871
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d98230b12cfd117c1b1ba77e8ed050fb01cd0141
659
py
Python
ramile-cli.py
EdisonLiao/ramile
8bcccbf172e1a12b9a9acd4cf6895cd2e218dfde
[ "MIT" ]
109
2017-09-07T16:15:35.000Z
2022-03-25T07:54:43.000Z
ramile-cli.py
EdisonLiao/ramile
8bcccbf172e1a12b9a9acd4cf6895cd2e218dfde
[ "MIT" ]
6
2018-07-03T09:56:20.000Z
2021-02-22T03:28:34.000Z
ramile-cli.py
EdisonLiao/ramile
8bcccbf172e1a12b9a9acd4cf6895cd2e218dfde
[ "MIT" ]
24
2019-03-22T07:45:22.000Z
2022-03-15T08:52:33.000Z
#! python import fire from ramile.project import Project from ramile.processors import FileProcessor class ramile_cli(object): def extract(self, project_root, lines_to_extract=3000): project = Project(project_root, lines_to_extract) project.run() return def whatcanido(self): ...
21.258065
80
0.637329
77
659
5.233766
0.506494
0.049628
0.079404
0.08933
0.124069
0
0
0
0
0
0
0.008097
0.250379
659
30
81
21.966667
0.807692
0.01214
0
0.105263
0
0
0.146154
0
0
0
0
0
0
1
0.210526
false
0
0.157895
0
0.526316
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7942dd9fad01a113bccf4c4452a3d100ba26b9a1
7,391
py
Python
data_analyzer.py
whiteTyger/NEUR325
04dc5980e9a2deb7bfebb4f7989ca7f99262446e
[ "MIT" ]
1
2018-07-31T20:49:43.000Z
2018-07-31T20:49:43.000Z
data_analyzer.py
whiteTyger/NEUR325_experiment
04dc5980e9a2deb7bfebb4f7989ca7f99262446e
[ "MIT" ]
null
null
null
data_analyzer.py
whiteTyger/NEUR325_experiment
04dc5980e9a2deb7bfebb4f7989ca7f99262446e
[ "MIT" ]
null
null
null
import os import csv import codecs from collections import defaultdict import argparse __author__='Eileen Cho' #read in answer keys #depending on the typdict param, returns a dict mapping words to response or category def ansKey(filename,typedict): f=open(filename) reader = csv.reader(f) returnAns = defaultdict(str...
33.292793
135
0.703829
1,007
7,391
5.144985
0.227408
0.012739
0.025478
0.027794
0.255356
0.185292
0.145339
0.103841
0.060992
0.060992
0
0.015077
0.147477
7,391
221
136
33.443439
0.807173
0.220674
0
0.207317
0
0
0.217124
0.003868
0.036585
0
0
0
0
0
null
null
0
0.030488
null
null
0.042683
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
794a0e1ff816e200f4df6109942c80297eabe0b2
526
py
Python
workflow/migrations/0017_organization_logo.py
meetdatastory/Activity-CE
2692e591f08cea7c869c045577b3d9e20d3ed335
[ "Apache-2.0" ]
null
null
null
workflow/migrations/0017_organization_logo.py
meetdatastory/Activity-CE
2692e591f08cea7c869c045577b3d9e20d3ed335
[ "Apache-2.0" ]
null
null
null
workflow/migrations/0017_organization_logo.py
meetdatastory/Activity-CE
2692e591f08cea7c869c045577b3d9e20d3ed335
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-11-14 00:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workflow', '0016_auto_20170623_1306'), ] operations = [ migrations.AddField...
25.047619
122
0.638783
60
526
5.416667
0.783333
0
0
0
0
0
0
0
0
0
0
0.082294
0.237643
526
20
123
26.3
0.72818
0.129278
0
0
1
0
0.175824
0.050549
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7952a0af14fc4fefc6607939e0d149500dcc9653
310
py
Python
old_ac_controller.py
tmkasun/jetson-gpio-device-controller
9a05b8bf9ba493b18fb7a410a0c5f646dbece24e
[ "MIT" ]
null
null
null
old_ac_controller.py
tmkasun/jetson-gpio-device-controller
9a05b8bf9ba493b18fb7a410a0c5f646dbece24e
[ "MIT" ]
null
null
null
old_ac_controller.py
tmkasun/jetson-gpio-device-controller
9a05b8bf9ba493b18fb7a410a0c5f646dbece24e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import Jetson.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(7, GPIO.OUT, initial=GPIO.LOW) while True: print("Turning on") GPIO.output(7, GPIO.LOW) time.sleep(2*60) print("turning off") GPIO.output(7, GPIO.LOW) time.sleep(2*60) GPIO.cleanup()
16.315789
41
0.670968
51
310
4.078431
0.529412
0.072115
0.105769
0.144231
0.288462
0.288462
0.288462
0.288462
0.288462
0
0
0.039063
0.174194
310
18
42
17.222222
0.773438
0.067742
0
0.333333
0
0
0.073171
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
795e78c932152a831c44fd183978dadafb9cb73b
4,105
py
Python
research/object_detection/protos/region_similarity_calculator_pb2.py
Omoeba/models
30ca465b204372cf345cf2cab4e2d86cb506956a
[ "Apache-2.0" ]
1
2022-03-13T07:44:17.000Z
2022-03-13T07:44:17.000Z
research/object_detection/protos/region_similarity_calculator_pb2.py
Omoeba/models
30ca465b204372cf345cf2cab4e2d86cb506956a
[ "Apache-2.0" ]
null
null
null
research/object_detection/protos/region_similarity_calculator_pb2.py
Omoeba/models
30ca465b204372cf345cf2cab4e2d86cb506956a
[ "Apache-2.0" ]
1
2019-07-16T00:30:52.000Z
2019-07-16T00:30:52.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/region_similarity_calculator.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google....
54.733333
795
0.842387
417
4,105
7.860911
0.278177
0.077791
0.102502
0.057657
0.285845
0.222392
0.194936
0.163209
0.163209
0.163209
0
0.03425
0.061145
4,105
74
796
55.472973
0.816295
0.161023
0
0.204082
1
0.020408
0.379994
0.317294
0
0
0
0
0
1
0
false
0
0.102041
0
0.102041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
79620ee6a1c2fa4223aa0ad8c6f94f1a9cc7d977
967
py
Python
progue/ai/actions/misc.py
BradyKieffer/progue
d003ca6edb3d407e29bc6675cb156e8715ae0861
[ "MIT" ]
null
null
null
progue/ai/actions/misc.py
BradyKieffer/progue
d003ca6edb3d407e29bc6675cb156e8715ae0861
[ "MIT" ]
null
null
null
progue/ai/actions/misc.py
BradyKieffer/progue
d003ca6edb3d407e29bc6675cb156e8715ae0861
[ "MIT" ]
null
null
null
""" Misc / Weird actions can go here """ import random from action import Action from progue.utils.actor_constants import ATTRIBUTE_IDLE, ATTR_VALUE, MAX_TURNS, CURRENT_TURN, RANGE class ActionIdle(Action): """ Used for lazy monsters """ def __init__(self, actor): Action.__init__(self, actor=actor, u...
37.192308
99
0.681489
128
967
4.914063
0.375
0.100159
0.151033
0.222576
0.282989
0.130366
0.130366
0
0
0
0
0.006477
0.201655
967
25
100
38.68
0.80829
0.057911
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.352941
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
79625250dd415824bccb5d2fbac4d24e0c3b3087
1,231
py
Python
setup.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
2
2018-05-08T17:39:44.000Z
2021-08-17T14:45:18.000Z
setup.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
2
2018-05-08T20:48:46.000Z
2018-05-15T16:50:45.000Z
setup.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import ( absolute_import, print_function ) import io from os.path import ( dirname, join, ) from setuptools import find_packages, setup def read(*names, **kwargs): return io.open( join(dirname(__file__), *names), ...
23.226415
53
0.513404
115
1,231
5.347826
0.713043
0.042276
0
0
0
0
0
0
0
0
0
0.009975
0.348497
1,231
52
54
23.673077
0.756858
0.035743
0
0.068182
0
0
0.284388
0
0
0
0
0
0
1
0.022727
true
0
0.113636
0.022727
0.159091
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7964d277b8bb8fedf1738777fb9015d149c9877f
1,070
py
Python
shop/admin.py
chromium7/mangovodo
bd7625342ff4a669879a9b2b3b7b846a29981c3e
[ "MIT" ]
null
null
null
shop/admin.py
chromium7/mangovodo
bd7625342ff4a669879a9b2b3b7b846a29981c3e
[ "MIT" ]
null
null
null
shop/admin.py
chromium7/mangovodo
bd7625342ff4a669879a9b2b3b7b846a29981c3e
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import Address, Category, Product UserAdmin.list_display += ('notify', ) UserAdmin.list_filter += ('notify', ) UserAdmin.fieldsets += (('notify', {'fields': ('notify', )}), ) @admin.register(Address) class AddressAdmin(adm...
29.722222
64
0.679439
112
1,070
6.321429
0.410714
0.062147
0.080508
0.110169
0.084746
0
0
0
0
0
0
0
0.160748
1,070
35
65
30.571429
0.788419
0
0
0.08
0
0
0.178505
0
0
0
0
0
0
1
0.04
false
0
0.12
0.04
0.64
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7967160a229d2d40f504cfca6dee4e9a675dcd59
1,785
py
Python
1. Variables and Data Types/exercises.py
Descent098/python-exercises
767ba750e5cae0d213b9abfd709ff8f6e4d4a1ac
[ "MIT" ]
null
null
null
1. Variables and Data Types/exercises.py
Descent098/python-exercises
767ba750e5cae0d213b9abfd709ff8f6e4d4a1ac
[ "MIT" ]
3
2019-11-21T20:00:06.000Z
2020-05-24T03:23:52.000Z
1. Variables and Data Types/exercises.py
Descent098/PYTH-101
767ba750e5cae0d213b9abfd709ff8f6e4d4a1ac
[ "MIT" ]
null
null
null
""" =========== Exercise 1 ============= Using a list, create a shopping list of 5 items. Then print the whole list, and then each item individually. """ shopping_list = [] # Fill in with some values print(shopping_list) # Print the whole list print() # Figure out how to print individual values """ ...
28.333333
141
0.67451
271
1,785
4.416974
0.435424
0.081871
0.021721
0.028404
0.120301
0.081871
0.081871
0.081871
0.081871
0.081871
0
0.013728
0.22465
1,785
62
142
28.790323
0.851156
0.379832
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
796820f5910ec0067d967fca3e29177cdc2f0863
443
py
Python
app_handlers/thread_kick_handler.py
kskarbinski/threads-api
c144c1cb51422095922310d278f80e4996c10ea0
[ "MIT" ]
null
null
null
app_handlers/thread_kick_handler.py
kskarbinski/threads-api
c144c1cb51422095922310d278f80e4996c10ea0
[ "MIT" ]
null
null
null
app_handlers/thread_kick_handler.py
kskarbinski/threads-api
c144c1cb51422095922310d278f80e4996c10ea0
[ "MIT" ]
null
null
null
from time import time from app_data.threads import users_threads class ThreadKickHandler(object): def post(self, thread_model, user_ids): for user_id in user_ids: # Remove user from thread thread_model.users.remove(user_id) users_threads[user_id].remove(thread_model) ...
24.611111
55
0.663657
57
443
4.912281
0.45614
0.196429
0.121429
0
0
0
0
0
0
0
0
0
0.273138
443
17
56
26.058824
0.869565
0.115124
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1