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
ba13957d1dfe8a9dad60a0b98fdc76bc2c051de1
2,133
py
Python
zignet/api.py
Rabbit-Development/Zignet
341ac2a5e411c385898a060bb41a825e1142625e
[ "MIT" ]
null
null
null
zignet/api.py
Rabbit-Development/Zignet
341ac2a5e411c385898a060bb41a825e1142625e
[ "MIT" ]
null
null
null
zignet/api.py
Rabbit-Development/Zignet
341ac2a5e411c385898a060bb41a825e1142625e
[ "MIT" ]
null
null
null
from zignet import controller, db from zignet.models import * from flask import request, abort, make_response @controller.route('/login', methods = ['POST']) def login(): username = request.get('username') password = request.get('password') Rfid = request.get('Rfid') pincode = request.get('pincode') if any(usern...
22.935484
73
0.69339
286
2,133
5.076923
0.174825
0.11708
0.035813
0.053719
0.320937
0.320937
0.320937
0.252066
0.216253
0.216253
0
0.006696
0.159869
2,133
92
74
23.184783
0.803571
0
0
0.333333
0
0
0.091976
0
0
0
0
0
0
1
0.043478
false
0.130435
0.043478
0
0.144928
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ba16fa59961b765da18297dbd32815b00e0a3cbc
3,628
py
Python
SudaAutoLogin.py
a386881/-
7ff1d2725d4e9691f4aabd46c928ed1a554375d2
[ "Apache-2.0" ]
1
2018-03-28T16:35:46.000Z
2018-03-28T16:35:46.000Z
SudaAutoLogin.py
a386881/-
7ff1d2725d4e9691f4aabd46c928ed1a554375d2
[ "Apache-2.0" ]
null
null
null
SudaAutoLogin.py
a386881/-
7ff1d2725d4e9691f4aabd46c928ed1a554375d2
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- VERSION = r'2016/04/02' # 配置中心 URL = "http://wg.suda.edu.cn/indexn.aspx" STUDENT_ID = 'XXXXXXXXXXXXXXXXXXXX' STUDENT_PASSWORD = 'XXXXXXXXXXXXXXXXXXXX' ''' Created on 2016年4月2日 @author: XenoAmess ''' import urllib.parse import urllib.request import time def get_html(url): '''首先...
29.495935
146
0.628997
427
3,628
5.025761
0.334895
0.0685
0.016775
0.016775
0.128611
0.109972
0.039143
0.039143
0.039143
0.039143
0
0.014963
0.226295
3,628
122
147
29.737705
0.749555
0.06753
0
0.114943
0
0.011494
0.219635
0.08905
0
0
0
0
0
1
0.091954
false
0.057471
0.034483
0
0.183908
0.252874
0
0
0
null
0
0
0
0
0
0
0
0
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
ba174b62313fc6bd666f2be4dd49654e375a89a1
8,797
py
Python
src/dev/gym-tensegrity/gym_tensegrity/envs/jumper_test.py
hany606/Tensegrity_Robotics
60b34ded95fb641842d46add450e398149d7ec92
[ "Apache-2.0" ]
null
null
null
src/dev/gym-tensegrity/gym_tensegrity/envs/jumper_test.py
hany606/Tensegrity_Robotics
60b34ded95fb641842d46add450e398149d7ec92
[ "Apache-2.0" ]
null
null
null
src/dev/gym-tensegrity/gym_tensegrity/envs/jumper_test.py
hany606/Tensegrity_Robotics
60b34ded95fb641842d46add450e398149d7ec92
[ "Apache-2.0" ]
null
null
null
import gym import gym_tensegrity import numpy as np import os from time import sleep # Discrete action space functions testing def main(port_num=10042): def print_observation(obs): print("Observations {:}".format(obs)) env = gym.make('gym_tensegrity:jumper-v0') # action = randint(0,15) action =...
33.32197
152
0.545982
1,070
8,797
4.364486
0.13271
0.049251
0.052891
0.069165
0.752677
0.71606
0.653105
0.606424
0.541542
0.477944
0
0.037296
0.268501
8,797
263
153
33.448669
0.688423
0.282824
0
0.66879
0
0
0.134822
0.024747
0
0
0
0
0
1
0.063694
false
0
0.038217
0
0.101911
0.267516
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
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
ba25057c6b3ececb19513f93d3dbe767448d9d9b
458
py
Python
Python Fundamentals/Regular Expressions/More Exercise/Task02_03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
1
2022-03-16T10:23:04.000Z
2022-03-16T10:23:04.000Z
Python Fundamentals/Regular Expressions/More Exercise/Task02_03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
Python Fundamentals/Regular Expressions/More Exercise/Task02_03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
import re data = input() pattern = r"%([A-Z][a-z]+)%([^|$%.]+)?<(\w+)>([^|$%.]+)?\|(\d+)\|([^|$%.0-9]+)?([0-9]+(\.[0-9]+)?)\$" total_income = 0 while data != "end of shift": for match in re.finditer(pattern, data): print(f"{match.group(1)}: {match.group(3)} - {int(match.group(5)) * float(match.group(7)):...
30.533333
104
0.528384
69
458
3.463768
0.463768
0.251046
0.025105
0.033473
0.251046
0.251046
0.251046
0.251046
0
0
0
0.038363
0.146288
458
14
105
32.714286
0.57289
0
0
0.2
0
0.2
0.475983
0.248908
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.2
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
ba26e1fd3bf707b269e72c095f6fc249a64b024e
319
py
Python
sky/migrations/0008_remove_news_label.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
sky/migrations/0008_remove_news_label.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
sky/migrations/0008_remove_news_label.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
4
2018-01-27T06:01:41.000Z
2018-02-21T12:18:35.000Z
# Generated by Django 2.0 on 2018-02-24 11:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sky', '0007_auto_20180224_1120'), ] operations = [ migrations.RemoveField( model_name='news', name='label', ), ]
17.722222
45
0.583072
34
319
5.352941
0.852941
0
0
0
0
0
0
0
0
0
0
0.135135
0.304075
319
17
46
18.764706
0.684685
0.134796
0
0
1
0
0.127737
0.083942
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
ba2ae5c00bc2049ab803532fa3e9a36db8f45a24
288
py
Python
authenticationApp/EmailHandler.py
George-Okumu/IReporter-Django
5962984ce0069cdf048dbf91686377568a7cf55b
[ "MIT" ]
null
null
null
authenticationApp/EmailHandler.py
George-Okumu/IReporter-Django
5962984ce0069cdf048dbf91686377568a7cf55b
[ "MIT" ]
1
2021-10-06T20:15:11.000Z
2021-10-06T20:15:11.000Z
authenticationApp/EmailHandler.py
George-Okumu/IReporter-Django
5962984ce0069cdf048dbf91686377568a7cf55b
[ "MIT" ]
null
null
null
from django.core.mail import EmailMessage, message class EmailHandlerClass: @staticmethod def sendEmail(data): email = EmailMessage(subject=data['email_subject'], body=data['email_body'], to=[data['email_to']]) email.send() # email.send()
32
107
0.638889
31
288
5.83871
0.580645
0.198895
0
0
0
0
0
0
0
0
0
0
0.232639
288
9
108
32
0.819005
0.041667
0
0
0
0
0.112727
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ba2b10e7983f50e892222f03799fc1c092cbda9b
495
py
Python
checkdns.py
delcacho/DataSciencePlatform
c19ac4c1aba54bafc0fed05cc534bb447ab3b631
[ "BSD-3-Clause" ]
null
null
null
checkdns.py
delcacho/DataSciencePlatform
c19ac4c1aba54bafc0fed05cc534bb447ab3b631
[ "BSD-3-Clause" ]
null
null
null
checkdns.py
delcacho/DataSciencePlatform
c19ac4c1aba54bafc0fed05cc534bb447ab3b631
[ "BSD-3-Clause" ]
null
null
null
from area53 import route53 from boto.route53.exception import DNSServerError from kubernetes import client, config from datetime import datetime import socket import time # Ensure cluster is running consec = 0 while consec < 10: try: ip = socket.gethostbyname("http://api.k8s.dev.bayescluster.com") cpnsec +=...
23.571429
68
0.717172
68
495
5.220588
0.676471
0.078873
0
0
0
0
0
0
0
0
0
0.035
0.191919
495
20
69
24.75
0.8525
0.050505
0
0.117647
0
0
0.228632
0
0
0
0
0
0
1
0
false
0
0.352941
0
0.352941
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ba2b2f46854a6061db7ab4dc16a1519a9222534e
2,339
py
Python
config/urls.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
config/urls.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
config/urls.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views import defaults as default_views from wagtail.admin import urls as wagtailadmin_urls from wagtail.core import ...
41.767857
110
0.734929
306
2,339
5.46732
0.284314
0.038255
0.035864
0.032277
0.124328
0.124328
0.124328
0.124328
0.124328
0.063359
0
0.005961
0.139376
2,339
56
111
41.767857
0.825137
0.079949
0
0.116279
0
0
0.143322
0.031643
0
0
0
0
0
1
0
false
0
0.372093
0
0.372093
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
e8404984e29c624bea38b2217947473bb1186bbd
4,035
py
Python
forgetPass.py
goyal705/Hotel-Management-System
8ea3598915f4062a7ae65c634e656d0f25b961f0
[ "Apache-2.0" ]
1
2021-09-10T11:39:23.000Z
2021-09-10T11:39:23.000Z
forgetPass.py
goyal705/Hotel-Management-System
8ea3598915f4062a7ae65c634e656d0f25b961f0
[ "Apache-2.0" ]
null
null
null
forgetPass.py
goyal705/Hotel-Management-System
8ea3598915f4062a7ae65c634e656d0f25b961f0
[ "Apache-2.0" ]
null
null
null
from tkinter import * from tkinter import ttk from tkinter import messagebox import mysql.connector from login_new import Small_login_win class Forget_pass_win: def __init__(self, root): self.root = root self.root.title("Forget Password") self.root.geometry('300x400+520+130') ...
49.207317
122
0.607187
504
4,035
4.708333
0.28373
0.070796
0.045512
0.064475
0.310999
0.269701
0.209861
0.165613
0.137379
0.137379
0
0.033681
0.264188
4,035
81
123
49.814815
0.765578
0
0
0.058824
0
0
0.187658
0
0
0
0
0
0
1
0.029412
false
0.191176
0.073529
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e840e5bc9763698d91cf0375b1df8b3f61aea666
1,449
py
Python
docs/podstawy/przyklady/ocenyfun.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
44
2015-02-11T19:10:37.000Z
2021-11-11T09:45:43.000Z
docs/podstawy/przyklady/ocenyfun.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
9
2015-02-06T21:26:25.000Z
2022-03-31T10:44:22.000Z
docs/podstawy/przyklady/ocenyfun.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
172
2015-06-13T07:16:24.000Z
2022-03-30T20:41:11.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Moduł ocenyfun zawiera funkcje wykorzystywane w pliku 05_oceny_03.py """ import math # zaimportuj moduł matematyczny def drukuj(co, kom="Sekwencja zawiera: "): print(kom) for i in co: print(i, end=" ") def srednia(oceny): suma = sum(ocen...
25.421053
72
0.619738
192
1,449
4.666667
0.484375
0.044643
0.030134
0
0
0
0
0
0
0
0
0.022305
0.257419
1,449
56
73
25.875
0.810409
0.47343
0
0
0
0
0.029197
0
0
0
0
0
0
1
0.217391
false
0
0.043478
0
0.478261
0.086957
0
0
0
null
0
0
0
0
0
0
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
e84512b0da871bd7cbe1284df91d047dbdd1a5e5
303
py
Python
tmdb/three/reviews.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
4
2017-05-16T02:30:52.000Z
2021-07-01T13:21:27.000Z
tmdb/three/reviews.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
4
2020-09-03T03:19:49.000Z
2021-12-21T05:24:04.000Z
tmdb/three/reviews.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
3
2021-02-15T18:13:08.000Z
2021-04-10T03:53:58.000Z
from .base import ENDPOINT, process_response class ReviewsMixin: @process_response def get_review_details(self, review_id, **kwargs): """ GET /review/{review_id} """ url = f"{ENDPOINT}/3/review/{review_id}" return self.make_request("GET", url, kwargs)
23.307692
54
0.630363
36
303
5.083333
0.583333
0.131148
0.153005
0
0
0
0
0
0
0
0
0.004367
0.244224
303
12
55
25.25
0.79476
0.075908
0
0
0
0
0.132813
0.121094
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e84f7ec1d7eb75e5b190a746b5e84c8c1dc54889
241
py
Python
C21/test.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
2
2020-10-20T10:18:48.000Z
2020-12-02T09:41:18.000Z
C21/test.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
null
null
null
C21/test.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
1
2020-12-02T10:03:29.000Z
2020-12-02T10:03:29.000Z
'求平方根' from math import sqrt li = [2, 4, 9, 16, 25] # for 循环版本 res = [] for i in li: res.append(sqrt(i)) print(res) # map 版本 print(list(map(sqrt, li))) # 列表推导式版本 print([sqrt(i) for i in li]) # 生成器版本 print(list(sqrt(i) for i in li))
12.05
32
0.605809
48
241
3.041667
0.479167
0.082192
0.123288
0.164384
0.178082
0.178082
0
0
0
0
0
0.037037
0.215768
241
19
33
12.684211
0.73545
0.145228
0
0
0
0
0.019324
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.4
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e85331900c6459687504959fb943368a54bbdd9f
2,908
py
Python
modules/MessageWatcher/MessageWatcher.py
ediril/BCI
f211ba70d6d75a9badff6872f86416b065f6192b
[ "BSD-2-Clause" ]
6
2016-12-30T03:43:49.000Z
2020-04-19T16:04:37.000Z
modules/MessageWatcher/MessageWatcher.py
hongweimao/BCI
49b7e8137bd5f9d18e3efdbd94a112cde5d16c4c
[ "BSD-2-Clause" ]
1
2022-03-08T09:16:10.000Z
2022-03-08T09:16:10.000Z
modules/MessageWatcher/MessageWatcher.py
ediril/BCI
f211ba70d6d75a9badff6872f86416b065f6192b
[ "BSD-2-Clause" ]
2
2015-06-16T02:46:03.000Z
2018-12-20T20:07:59.000Z
import numpy as np import Dragonfly_config as rc from argparse import ArgumentParser from ConfigParser import SafeConfigParser from PyDragonfly import Dragonfly_Module, CMessage, copy_to_msg, copy_from_msg from time import time class MessageWatcher(object): # msg_types = ['GROBOT_RAW_FEEDBACK', # ...
36.810127
83
0.584594
363
2,908
4.473829
0.330579
0.038793
0.036946
0.049261
0.110222
0.072044
0.072044
0.072044
0.072044
0.072044
0
0.008483
0.310867
2,908
78
84
37.282051
0.801896
0.077029
0
0.064516
0
0
0.119955
0
0
0
0
0
0
0
null
null
0
0.096774
null
null
0.145161
0
0
0
null
0
0
0
0
0
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
e85c2c9c74527b46aef466680cba313a99e7950d
2,762
py
Python
gameNode_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
null
null
null
gameNode_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
2
2016-11-01T09:57:36.000Z
2016-11-01T10:05:50.000Z
gameNode_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
null
null
null
#!/usr/bin/python from piece import Piece from gameNode import GameNode from functions import * from minmax import MinMax ## TEST 1: GameNode cration. Generating list of movements on a game node by piece print "TEST 1: Building a Game Node" listPiecesWhite=[] listPiecesBlack=[] p1=Piece('Q',[2,1]) p2=Piece('N'...
36.342105
112
0.763939
393
2,762
5.368957
0.231552
0.037915
0.045498
0.048341
0.409479
0.291469
0.216114
0.119431
0.119431
0.054028
0
0.034719
0.103186
2,762
75
113
36.826667
0.817117
0.191166
0
0.327273
0
0.036364
0.286489
0
0
0
0
0
0.2
0
null
null
0
0.072727
null
null
0.272727
0
0
0
null
0
0
0
0
0
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
e8608fa57e48149116847118e359bdf6450a3512
2,155
py
Python
utils/Deque.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
4
2021-03-22T12:42:55.000Z
2021-12-13T03:03:52.000Z
utils/Deque.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
null
null
null
utils/Deque.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
1
2021-03-22T12:48:21.000Z
2021-03-22T12:48:21.000Z
import numpy as np from utils.Node import Node class Deque(object): """Generic deque object""" def __init__(self, max_size, dimension_of_value_attribute): self.max_size = max_size self.dimension_of_value_attribute = dimension_of_value_attribute self.deque = self.initialise_deque() ...
43.979592
130
0.716009
316
2,155
4.518987
0.259494
0.070028
0.068627
0.102941
0.429972
0.268207
0.084034
0
0
0
0
0.004123
0.212065
2,155
49
131
43.979592
0.836867
0.182831
0
0.060606
0
0
0
0
0
0
0
0
0
1
0.242424
false
0
0.060606
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e8642331b936e08e2dbe11e2424740cd37d2e4b8
1,014
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/DataGridViewCellStateChangedEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/DataGridViewCellStateChangedEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/DataGridViewCellStateChangedEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class DataGridViewCellStateChangedEventArgs(EventArgs): """ Provides data for the System.Windows.Forms.DataGridView.CellStateChanged event. DataGridViewCellStateChangedEventArgs(dataGridViewCell: DataGridViewCell,stateChanged: DataGridViewElementStates) """ @staticmethod def __new__(self, ...
26.684211
115
0.719921
86
1,014
8.395349
0.430233
0.083102
0.044321
0.058172
0.166205
0.166205
0.166205
0.166205
0.166205
0.166205
0
0
0.192308
1,014
37
116
27.405405
0.881563
0.285996
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0.125
0
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
e876bb50d8ee0021ee27d7402634cce9a0b1b389
756
py
Python
lista1/156_Ananagrams/156_Ananagrams.py
L30Bola/mab606
c29a781752b1d12b0df308d604496c7ffa0c5b6e
[ "BSL-1.0" ]
null
null
null
lista1/156_Ananagrams/156_Ananagrams.py
L30Bola/mab606
c29a781752b1d12b0df308d604496c7ffa0c5b6e
[ "BSL-1.0" ]
null
null
null
lista1/156_Ananagrams/156_Ananagrams.py
L30Bola/mab606
c29a781752b1d12b0df308d604496c7ffa0c5b6e
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python import sys import collections listas = list(map(str.split, sys.stdin.readlines())) entrada = [item for sublist in listas for item in sublist] # simplificando as listas, para facilitar contador = collections.Counter() palavras = [] for palavra in entrada: if palavra == "#": break palavr...
29.076923
100
0.756614
95
756
5.894737
0.452632
0.203571
0.1125
0
0
0
0
0
0
0
0
0.004615
0.140212
756
26
101
29.076923
0.856923
0.079365
0
0
0
0
0.001439
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0.052632
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
e879a021a202e01effe229f08a5ace1da13c48a5
1,030
py
Python
viz/main.py
YoniSchirris/SimCLR-1
535472ac76d24d368d3bc08c17987df315e0b657
[ "Apache-2.0" ]
1
2021-12-03T12:59:39.000Z
2021-12-03T12:59:39.000Z
viz/main.py
YoniSchirris/SimCLR-1
535472ac76d24d368d3bc08c17987df315e0b657
[ "Apache-2.0" ]
null
null
null
viz/main.py
YoniSchirris/SimCLR-1
535472ac76d24d368d3bc08c17987df315e0b657
[ "Apache-2.0" ]
null
null
null
import torch from viz.visualizer import Visualizer from modules.deepmil import Attention from msidata.dataset_msi_features_with_patients import PreProcessedMSIFeatureDataset from testing.logistic_regression import get_precomputed_dataloader import argparse from experiment import ex from utils import post_config_hook...
22.391304
87
0.72233
131
1,030
5.412214
0.564886
0.036671
0.067701
0
0
0
0
0
0
0
0
0.003601
0.191262
1,030
46
88
22.391304
0.847539
0.180583
0
0
0
0
0.033453
0
0
0
0
0
0
1
0.05
false
0
0.4
0
0.45
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e879fd71ea6d131c8a7d4e47e9c565b330dabbe2
340
py
Python
projects/golem_e2e/tests/login/login_missing_password.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_e2e/tests/login/login_missing_password.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_e2e/tests/login/login_missing_password.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
description = 'Verify the user cannot log in if password value is missing' pages = ['login'] def test(data): navigate(data.env.url) send_keys(login.username_input, 'admin') click(login.login_button) capture('Verify the correct error message is shown') verify_text_in_element(login.error_list, 'Pas...
28.333333
74
0.735294
49
340
4.959184
0.734694
0.074074
0
0
0
0
0
0
0
0
0
0
0.164706
340
11
75
30.909091
0.855634
0
0
0
0
0
0.380531
0
0
0
0
0
0
1
0.125
false
0.25
0
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e87d57d0c478e441bd8e2fe9c189947046ddeca4
39,545
py
Python
fsleyes/layouts.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
12
2018-05-05T01:36:25.000Z
2021-09-23T20:44:08.000Z
fsleyes/layouts.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
97
2018-05-05T02:17:23.000Z
2022-03-29T14:58:42.000Z
fsleyes/layouts.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
6
2017-12-09T09:02:00.000Z
2021-03-05T18:55:13.000Z
#!/usr/bin/env python # # layout.py - The layout API (previously called "perspectives"). # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides functions for managing *layouts* - stored view and control panel layouts for *FSLeyes*. Layouts may be persisted using the :mod:`.settings` module. A few...
49.185323
1,435
0.62157
4,859
39,545
5.034369
0.133155
0.00883
0.016188
0.01766
0.431976
0.387335
0.349971
0.329777
0.318698
0.305331
0
0.049495
0.253559
39,545
803
1,436
49.246575
0.779219
0.269035
0
0.269327
0
0.054863
0.483457
0.385822
0
0
0
0
0
1
0.034913
false
0
0.047382
0
0.104738
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
e88065d21621edc95c47aa6a03e2fdbde75bbf30
329
py
Python
kwickstart/templates/flask/app.py
TxConvergentAdmin/convergent-kwickstart
42374a1705c019ceb34e6ece718df3c17695b852
[ "MIT" ]
1
2020-02-07T17:52:48.000Z
2020-02-07T17:52:48.000Z
kwickstart/templates/flask/app.py
TxConvergentAdmin/convergent-kwickstart
42374a1705c019ceb34e6ece718df3c17695b852
[ "MIT" ]
null
null
null
kwickstart/templates/flask/app.py
TxConvergentAdmin/convergent-kwickstart
42374a1705c019ceb34e6ece718df3c17695b852
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request PORT = 5000 app = Flask(__name__) @app.route('/') def index(): return 'Hello World' @app.route('/data') def data(): return jsonify({'error': False, 'data': 123}) if __name__ == "__main__": print('Running on http://127.0.0.1:' + str(PORT)) app.run('0.0.0.0...
16.45
53
0.613982
49
329
3.877551
0.612245
0.042105
0.031579
0
0
0
0
0
0
0
0
0.063197
0.182371
329
19
54
17.315789
0.643123
0
0
0
0
0
0.209726
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0.166667
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
e8887bd9a2e073f305e0565db697d9a93e02600d
318
py
Python
player/migrations/0002_remove_music_thumbnail.py
Amoki/Amoki-Music
77b0e426fe9cc6c9cd12346a5e5e81a62362bb83
[ "MIT" ]
3
2015-06-16T11:12:29.000Z
2019-05-03T09:09:21.000Z
player/migrations/0002_remove_music_thumbnail.py
Amoki/Amoki-Music
77b0e426fe9cc6c9cd12346a5e5e81a62362bb83
[ "MIT" ]
16
2015-08-18T14:35:55.000Z
2021-06-10T17:31:04.000Z
player/migrations/0002_remove_music_thumbnail.py
Amoki/Amoki-Music
77b0e426fe9cc6c9cd12346a5e5e81a62362bb83
[ "MIT" ]
1
2016-10-19T14:48:52.000Z
2016-10-19T14:48:52.000Z
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('player', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='music', name='thumbnail', ), ]
17.666667
40
0.603774
27
318
6.851852
0.777778
0
0
0
0
0
0
0
0
0
0
0.017857
0.295597
318
17
41
18.705882
0.808036
0
0
0
0
0
0.100629
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
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
e889b7bfe344006d80c5021c1a5f4296e429ca4d
1,749
py
Python
flaskapp/models.py
guillermosainz/instareplic
a4fb26269d54be1a140b1802a4d8013a6aa0ec70
[ "MIT" ]
53
2015-02-15T19:00:33.000Z
2022-02-08T09:58:54.000Z
flaskapp/models.py
guillermosainz/instareplic
a4fb26269d54be1a140b1802a4d8013a6aa0ec70
[ "MIT" ]
5
2016-06-03T13:12:50.000Z
2018-05-29T08:31:44.000Z
flaskapp/models.py
guillermosainz/instareplic
a4fb26269d54be1a140b1802a4d8013a6aa0ec70
[ "MIT" ]
15
2016-05-18T20:09:53.000Z
2020-06-01T04:06:00.000Z
from mongoengine import StringField, EmailField, BooleanField from flask.ext.login import UserMixin import requests import json from mongoengine import Document from social.apps.flask_app.me.models import FlaskStorage class User(Document, UserMixin): username = StringField(max_length=200) password = StringFi...
30.155172
108
0.644368
213
1,749
5.13615
0.384977
0.076782
0.109689
0.084095
0.117916
0.043876
0
0
0
0
0
0.018574
0.230417
1,749
57
109
30.684211
0.794205
0
0
0
0
0
0.112636
0
0
0
0
0
0
1
0.121951
false
0.02439
0.146341
0.073171
0.609756
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
e88a581db548ce41d35b785b7240edca51e28965
1,136
py
Python
notes/reference/tutorials/an-introduction-to-asynch-programming-and-twisted/exercises/part3/ex2.py
aav789/study-notes
34eca00cd48869ba7a79c0ea7d8948ee9bde72b9
[ "MIT" ]
43
2015-06-10T14:48:00.000Z
2020-11-29T16:22:28.000Z
notes/reference/tutorials/an-introduction-to-asynch-programming-and-twisted/exercises/part3/ex2.py
aav789/study-notes
34eca00cd48869ba7a79c0ea7d8948ee9bde72b9
[ "MIT" ]
1
2021-11-01T12:01:44.000Z
2021-11-01T12:01:44.000Z
notes/reference/tutorials/an-introduction-to-asynch-programming-and-twisted/exercises/part3/ex2.py
lextoumbourou/notes
5f94c59a467eb3eb387542bdce398abc0365e6a7
[ "MIT" ]
40
2015-03-02T10:33:59.000Z
2020-05-24T12:17:05.000Z
from twisted.internet import reactor, task class CounterManager(object): counters = [] @classmethod def add_counter(cls, counter): cls.counters.append(counter) @classmethod def has_active_counters(cls): return all([not c.is_active for c in cls.counters]) class Counter(object): ...
24.170213
59
0.612676
138
1,136
4.898551
0.355072
0.065089
0.066568
0
0
0
0
0
0
0
0
0.01335
0.274648
1,136
46
60
24.695652
0.807039
0
0
0.058824
0
0
0.033451
0
0
0
0
0
0
0
null
null
0
0.029412
null
null
0.088235
0
0
0
null
0
0
0
0
0
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
e894d63a61f84c8bd811e9165930421a819cf713
274
py
Python
app/api_docs/__init__.py
linrong/flask-server
5f0896c6ccedb6b172b9af7e1018600e38a2df43
[ "MIT" ]
null
null
null
app/api_docs/__init__.py
linrong/flask-server
5f0896c6ccedb6b172b9af7e1018600e38a2df43
[ "MIT" ]
1
2019-09-06T10:06:47.000Z
2019-09-10T07:18:47.000Z
app/api_docs/__init__.py
linrong/flask-server
5f0896c6ccedb6b172b9af7e1018600e38a2df43
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ """ Created by lr on 2019/08/29. 此模块用来编写flasgger中api列表下的详细操作信息 """ from app.api_docs.v1 import user, client, token, \ banner, theme, product, category, \ address, order, pay from app.api_docs.cms import cms_user, file __author__ = 'lr'
24.909091
50
0.69708
38
274
4.736842
0.789474
0.077778
0.111111
0.155556
0
0
0
0
0
0
0
0.044643
0.182482
274
11
51
24.909091
0.758929
0.29562
0
0
0
0
0.01087
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e89be0e46a4e4f06c678ed62e880b446af83ee7d
4,294
py
Python
src/thresholding/Utilities.py
dsp-uga/Team-kieffer
f71ebcea3928d00496fb32156ebe990083795d29
[ "MIT" ]
null
null
null
src/thresholding/Utilities.py
dsp-uga/Team-kieffer
f71ebcea3928d00496fb32156ebe990083795d29
[ "MIT" ]
null
null
null
src/thresholding/Utilities.py
dsp-uga/Team-kieffer
f71ebcea3928d00496fb32156ebe990083795d29
[ "MIT" ]
null
null
null
""" Author: Narinder Singh Project: Cilia Segmentation Date: 27 Feb 2019 Course: CSCI 8360 @ UGA Semester: Spring 2019 Module: Utilities.py Description: This module contains methods and classes that make life easier. """ import os import sys import numpy as np import matplotlib.pyplot as matplot from...
24.678161
199
0.698882
625
4,294
4.7424
0.384
0.018219
0.020243
0.01417
0.035762
0.018219
0.018219
0
0
0
0
0.013742
0.186539
4,294
173
200
24.820809
0.834812
0.035165
0
0
0
0
0.072345
0
0
0
0
0
0
0
null
null
0.026316
0.092105
null
null
0.026316
0
0
0
null
0
0
0
0
0
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
e89e57eee1002924427fb9529bc74acb259d5736
5,895
py
Python
zm-jython/jylibs/ldap.py
hernad/zimbra9
cf61ffa40d9600ab255ef4516ca25029fff6603b
[ "Apache-2.0" ]
null
null
null
zm-jython/jylibs/ldap.py
hernad/zimbra9
cf61ffa40d9600ab255ef4516ca25029fff6603b
[ "Apache-2.0" ]
null
null
null
zm-jython/jylibs/ldap.py
hernad/zimbra9
cf61ffa40d9600ab255ef4516ca25029fff6603b
[ "Apache-2.0" ]
null
null
null
# # ***** BEGIN LICENSE BLOCK ***** # Zimbra Collaboration Suite Server # Copyright (C) 2010, 2012, 2013, 2014, 2015, 2016 Synacor, Inc. # # 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, # version...
40.9375
130
0.709754
725
5,895
5.692414
0.317241
0.034892
0.0441
0.050884
0.32566
0.256361
0.156288
0.127938
0.111461
0.111461
0
0.009788
0.168109
5,895
143
131
41.223776
0.83177
0.126887
0
0.18018
0
0
0.26126
0.123416
0
0
0
0
0
0
null
null
0.009009
0.144144
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
e8a44e30435268e66fe7dcfc673cc83f8a07c67f
5,387
py
Python
features/steps/common.py
PolySync/kevlar-laces
a5f36d1e4955963b3f1be3fd0ad8d3839a0bee3b
[ "MIT" ]
3
2017-10-05T23:25:40.000Z
2018-06-06T10:03:56.000Z
features/steps/common.py
PolySync/kevlar-laces
a5f36d1e4955963b3f1be3fd0ad8d3839a0bee3b
[ "MIT" ]
11
2017-10-05T23:22:30.000Z
2018-07-10T21:13:40.000Z
features/steps/common.py
PolySync/kevlar-laces
a5f36d1e4955963b3f1be3fd0ad8d3839a0bee3b
[ "MIT" ]
3
2018-06-22T21:43:07.000Z
2021-02-01T12:02:43.000Z
from behave import * from hamcrest import * import subprocess import shlex import os import tempfile import utils @given('a local copy of the repo on the {branch} branch') def step_impl(context, branch): context.mock_developer_dir = tempfile.mkdtemp(prefix='kevlar') utils.shell_command('git -C {0} clone -q f...
46.439655
160
0.733247
834
5,387
4.545564
0.188249
0.069639
0.110789
0.127407
0.657874
0.569771
0.490108
0.40517
0.289106
0.249011
0
0.012623
0.132356
5,387
115
161
46.843478
0.79846
0
0
0.271739
0
0.032609
0.30982
0.009467
0
0
0
0
0.086957
1
0.217391
false
0
0.076087
0
0.293478
0.01087
0
0
0
null
0
0
0
0
0
0
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
e8b070cce38d20c7a2e6fd86cc0080c388e9443f
310
py
Python
Module8/inheritance/02_task_IterInt.py
xm4dn355x/specialist_python3_2nd_lvl
4ea8c82eb0f32aa92c82914f6599c2c47a2f7032
[ "MIT" ]
null
null
null
Module8/inheritance/02_task_IterInt.py
xm4dn355x/specialist_python3_2nd_lvl
4ea8c82eb0f32aa92c82914f6599c2c47a2f7032
[ "MIT" ]
null
null
null
Module8/inheritance/02_task_IterInt.py
xm4dn355x/specialist_python3_2nd_lvl
4ea8c82eb0f32aa92c82914f6599c2c47a2f7032
[ "MIT" ]
null
null
null
# Разработать класс IterInt, который наследует функциональность стандартного типа int, но добавляет # возможность итерировать по цифрам числа class IterInt(int): pass n = IterInt(12346) for digit in n: print("digit = ", digit) # Выведет: # digit = 1 # digit = 2 # digit = 3 # digit = 4 # digit = 6
17.222222
99
0.693548
41
310
5.243902
0.731707
0
0
0
0
0
0
0
0
0
0
0.040984
0.212903
310
18
100
17.222222
0.840164
0.632258
0
0
0
0
0.075472
0
0
0
0
0
0
1
0
false
0.2
0
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e8b2ef11a1743e630591f449491e6c4cb3e345c2
1,100
py
Python
base/backprop_perceptron.py
tardatio/granary_ai
1af8efe0f2f971d25763b9b457e9025a73bdfb0d
[ "MIT" ]
null
null
null
base/backprop_perceptron.py
tardatio/granary_ai
1af8efe0f2f971d25763b9b457e9025a73bdfb0d
[ "MIT" ]
null
null
null
base/backprop_perceptron.py
tardatio/granary_ai
1af8efe0f2f971d25763b9b457e9025a73bdfb0d
[ "MIT" ]
null
null
null
def forward(w,s,b,y): Yhat= w * s + b output = (Yhat-y)**2 return output, Yhat def derivative_W(x, output, Yhat, y): return ((2 * output) * (Yhat - y)) * x # w def derivative_B(b, output, Yhat, y): return ((2 * output) * (Yhat - y)) * b #bias def main(): w = 1.0 #weight x = 2.0 #samp...
25
94
0.408182
151
1,100
2.89404
0.278146
0.20595
0.176201
0.08238
0.292906
0.292906
0.132723
0.132723
0
0
0
0.026415
0.277273
1,100
43
95
25.581395
0.52327
0.022727
0
0.0625
0
0
0.2015
0.14433
0
0
0
0
0
1
0.125
false
0
0
0.0625
0.21875
0.21875
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
e8bd7184378822445ccc65b6e322ca8a912026c5
385
py
Python
src/cart/migrations/0005_orderitem_quantity.py
Bakhtiyar-Habib/CSE327-Project
4126b40eb398e4cf13b49136e552775c5f3b0635
[ "bzip2-1.0.6" ]
null
null
null
src/cart/migrations/0005_orderitem_quantity.py
Bakhtiyar-Habib/CSE327-Project
4126b40eb398e4cf13b49136e552775c5f3b0635
[ "bzip2-1.0.6" ]
null
null
null
src/cart/migrations/0005_orderitem_quantity.py
Bakhtiyar-Habib/CSE327-Project
4126b40eb398e4cf13b49136e552775c5f3b0635
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.0.7 on 2020-05-18 05:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0004_auto_20200518_1139'), ] operations = [ migrations.AddField( model_name='orderitem', name='quantity', ...
20.263158
49
0.597403
41
385
5.512195
0.829268
0
0
0
0
0
0
0
0
0
0
0.116788
0.288312
385
18
50
21.388889
0.708029
0.116883
0
0
1
0
0.130178
0.068047
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
e8bfced731c80842e64d71e3b64a2ac8f77ae7b9
566
py
Python
icpc/2019-10-4/F-gen.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
3
2018-08-30T09:43:20.000Z
2019-12-03T04:53:43.000Z
icpc/2019-10-4/F-gen.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
icpc/2019-10-4/F-gen.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
#!/usr/bin/pypy from sys import * from random import * n, m, CMAX, d1, d2 = map(int, argv[1:]) #print randint(0, n) print 1 x0, y0 = randint(-20, -10), randint(-20, -10) dx, dy = randint(-d1, -1), randint(1, d1) x1, y1 = x0 + dx, y0 + dy dx, dy = -dy, dx print x0, y0 print x1, y1 print x1 + dx, y1 + dy print x0 + dx,...
20.214286
45
0.533569
108
566
2.796296
0.324074
0.07947
0.072848
0.05298
0
0
0
0
0
0
0
0.099502
0.289753
566
27
46
20.962963
0.651741
0.058304
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.363636
0
0
0
null
0
0
0
0
0
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
e8c50788ce4892af43a9be0933cf50a03caaf69d
2,376
py
Python
app/app.py
CLARIAH/wp6-missieven
67e7d0123d37cce36be5353801b90010d4ad4be0
[ "MIT" ]
null
null
null
app/app.py
CLARIAH/wp6-missieven
67e7d0123d37cce36be5353801b90010d4ad4be0
[ "MIT" ]
null
null
null
app/app.py
CLARIAH/wp6-missieven
67e7d0123d37cce36be5353801b90010d4ad4be0
[ "MIT" ]
null
null
null
import types from tf.advanced.app import App MODIFIERS = """ remark folio note ref emph und super special q num den """.strip().split() def fmt_layoutFull(app, n, **kwargs): return app._wrapHtml(n, ("",)) def fmt_layoutRemarks(app, n, **kwargs): return app._wrapHtml(n, ("r",)) def fmt_layoutNotes(ap...
28.285714
76
0.570286
301
2,376
4.385382
0.255814
0.024242
0.05303
0.084848
0.185606
0.185606
0.185606
0.143182
0
0
0
0.001756
0.281145
2,376
83
77
28.626506
0.769906
0
0
0
0
0
0.083754
0.02904
0
0
0
0
0
1
0.152542
false
0
0.033898
0.118644
0.338983
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
e8c5b2acc01726c22676df5fc3f9d17efb91642c
1,424
py
Python
password-cracking/leatspeak.py
cyberprogrammer/ctf-stuff
6814ff819c51bb1cddae76ff611bede3909aa129
[ "MIT" ]
null
null
null
password-cracking/leatspeak.py
cyberprogrammer/ctf-stuff
6814ff819c51bb1cddae76ff611bede3909aa129
[ "MIT" ]
null
null
null
password-cracking/leatspeak.py
cyberprogrammer/ctf-stuff
6814ff819c51bb1cddae76ff611bede3909aa129
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from string import ascii_letters import itertools def includeDefault(charSet): for i in range(0,256): charSet[i] = set([i]) def includeInvertedCases(charSet): for c in ascii_letters: charSet[ord(c)] |= set([ord(c.lower()) if c.isupper() else ord(c.upper())]) ...
25.428571
83
0.587079
179
1,424
4.614525
0.357542
0.133172
0.065375
0.050847
0.239709
0.239709
0.239709
0.239709
0.181598
0
0
0.013181
0.200843
1,424
55
84
25.890909
0.712654
0.089888
0
0
0
0
0.026316
0
0
0
0
0.018182
0
1
0.121212
false
0
0.090909
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e8c9149709f8faee9ce978ba8f02bea4f6d7bb11
375
py
Python
fbscraper.py
Woahisme/final_project
f94fe272f32bc7c1cac3c6939054c0aee6edb71a
[ "MIT" ]
null
null
null
fbscraper.py
Woahisme/final_project
f94fe272f32bc7c1cac3c6939054c0aee6edb71a
[ "MIT" ]
null
null
null
fbscraper.py
Woahisme/final_project
f94fe272f32bc7c1cac3c6939054c0aee6edb71a
[ "MIT" ]
null
null
null
import json from facebook_scraper import get_profile #pass through name from webpage once issue is fixed json_data = get_profile("passparam", cookies="./fbcookies.json") # json_object = json.loads(json_data) json_formatted = json.dumps(json_data, indent = 2) print(json_formatted) with open("fb_info.json", "w") as...
25
64
0.76
57
375
4.807018
0.596491
0.116788
0
0
0
0
0
0
0
0
0
0.006135
0.130667
375
15
65
25
0.834356
0.229333
0
0
0
0
0.132404
0
0
0
0
0
0
1
0
false
0.142857
0.285714
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
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
e8cf436b3f7cff830940245da46ee0d3379aa73a
435
py
Python
tinder/__init__.py
mzdravkov/elsys-ci-flask-example
6543e1cc7e40db0535df6c4fe78120fd529d5cbb
[ "Apache-2.0" ]
2
2019-12-30T13:26:55.000Z
2020-01-18T14:03:25.000Z
tinder/__init__.py
mzdravkov/elsys-ci-flask-example
6543e1cc7e40db0535df6c4fe78120fd529d5cbb
[ "Apache-2.0" ]
3
2019-11-05T16:47:54.000Z
2020-10-31T18:50:31.000Z
tinder/__init__.py
mzdravkov/elsys-ci-flask-example
6543e1cc7e40db0535df6c4fe78120fd529d5cbb
[ "Apache-2.0" ]
24
2019-10-10T19:17:40.000Z
2020-10-25T10:42:00.000Z
from flask import Flask from flask_socketio import SocketIO from flask_sqlalchemy import SQLAlchemy UPLOAD_FOLDER = 'uploads' ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'} app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/dev.db' app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER app.secret_...
25.588235
63
0.770115
55
435
5.854545
0.509091
0.083851
0
0
0
0
0
0
0
0
0
0.018041
0.108046
435
16
64
27.1875
0.811856
0
0
0
0
0
0.245977
0.170115
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2cd504ebd0e349ea8bbd9fdb492b7ad1e64929f7
194
py
Python
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
32
2020-04-05T08:29:40.000Z
2022-01-08T03:10:00.000Z
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2021-06-02T04:09:11.000Z
2022-03-02T14:55:03.000Z
online assessment interview/SE Big Data role/mongoTest1.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2020-07-13T05:44:04.000Z
2021-03-03T07:07:58.000Z
import pymongo connection = pymongo.MongoClient("localhost", 27017) database = connection['mydb_01'] collection = database['mycol_01'] data = {'Name' : "Akshay"} collection.insert_one(data)
17.636364
52
0.742268
22
194
6.409091
0.727273
0
0
0
0
0
0
0
0
0
0
0.052326
0.113402
194
11
53
17.636364
0.767442
0
0
0
0
0
0.174359
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
2cd7bb87b2723af7e7c3023b2524d9f7f046ca6e
722
py
Python
BurstPaperWallet/initialize.py
MrPilotMan/BurstPaperWallet
5a98a646487d6049f455680fe26ff10185b6d097
[ "Apache-2.0" ]
5
2018-07-21T09:05:35.000Z
2018-09-18T16:36:52.000Z
BurstPaperWallet/initialize.py
MrPilotMan/Burst-Paper-Wallet
5a98a646487d6049f455680fe26ff10185b6d097
[ "MIT" ]
null
null
null
BurstPaperWallet/initialize.py
MrPilotMan/Burst-Paper-Wallet
5a98a646487d6049f455680fe26ff10185b6d097
[ "MIT" ]
null
null
null
from BurstPaperWallet.api import brs_api from BurstPaperWallet.api import passphrase_url_transform as transform def initialize(account, old_passphrase, fee=735000): url = "sendMoney&recipient={}&secretPhrase={}&amountNQT=1&feeNQT={}&recipientPublicKey={}&deadline=1440"\ .format(account["reed solomon"], tr...
27.769231
109
0.710526
85
722
5.905882
0.482353
0.035857
0.091633
0.115538
0
0
0
0
0
0
0
0.028476
0.17313
722
25
110
28.88
0.812395
0
0
0
0
0
0.234072
0.1759
0
0
0
0
0
1
0.176471
false
0.176471
0.117647
0
0.470588
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2cda4cc79b80b9a4194f66d4309cdecba7f0a2e3
608
py
Python
PycharmProjects/untitled1/printGraph.py
jiankangliu/baseOfPython
a10e81c79bc6fc3807ca8715fb1be56df527742c
[ "MIT" ]
null
null
null
PycharmProjects/untitled1/printGraph.py
jiankangliu/baseOfPython
a10e81c79bc6fc3807ca8715fb1be56df527742c
[ "MIT" ]
null
null
null
PycharmProjects/untitled1/printGraph.py
jiankangliu/baseOfPython
a10e81c79bc6fc3807ca8715fb1be56df527742c
[ "MIT" ]
null
null
null
# 第一行一个*,第二行两个*........ 共十行 # 打印乘法口诀 n = 1 while n <= 10: n1 = n while n1: print("*", end = "") n1 -= 1 print() n += 1 n2 = 1 n3 = 1 while n2 < 10: while n3 <= n2: print(f"{n3}*{n2}={n3*n2}",end="\t") n3 += 1 print() n2 += 1 n3 = 1 ...
16
45
0.320724
76
608
2.565789
0.302632
0.123077
0.051282
0.061538
0.164103
0
0
0
0
0
0
0.163934
0.498355
608
37
46
16.432432
0.47541
0.054276
0
0.25
0
0
0.044944
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2cdd770cb59585fff2f8363916717357018b2efd
34,050
py
Python
hcpre/duke_siemens/util_dicom_siemens.py
beOn/hcpre
8c56d4f72c06abcb5d2d2b64e7e37fee040f2be4
[ "BSD-3-Clause" ]
10
2016-09-17T09:28:16.000Z
2019-07-31T18:40:12.000Z
hcpre/duke_siemens/util_dicom_siemens.py
beOn/hcpre
8c56d4f72c06abcb5d2d2b64e7e37fee040f2be4
[ "BSD-3-Clause" ]
4
2017-10-30T19:02:40.000Z
2018-01-14T00:28:46.000Z
hcpre/duke_siemens/util_dicom_siemens.py
beOn/hcpre
8c56d4f72c06abcb5d2d2b64e7e37fee040f2be4
[ "BSD-3-Clause" ]
5
2015-03-30T17:41:32.000Z
2020-10-15T13:17:22.000Z
""" Routines for extracting data from Siemens DICOM files. The simplest way to read a file is to call read(filename). If you like you can also call lower level functions like read_data(). Except for the map of internal data types to numpy type strings (which doesn't require an import of numpy), this code is deliberat...
39.048165
87
0.622173
4,414
34,050
4.65836
0.205936
0.011234
0.014104
0.00569
0.192053
0.143809
0.116574
0.081023
0.04484
0.036281
0
0.02889
0.272129
34,050
871
88
39.092997
0.800759
0.29301
0
0.130952
0
0
0.157882
0.060561
0
0
0.013938
0
0.033333
0
null
null
0.002381
0.016667
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
2ce31456540ab00747dedfd50b8822dd96f15a36
5,176
py
Python
instrument_plugins/EGandG_Model5209.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
instrument_plugins/EGandG_Model5209.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
instrument_plugins/EGandG_Model5209.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
# EGandG_Model5209.py class, to perform the communication between the Wrapper and the device # Martijn Schaafsma <qtlab@mcschaafsma.nl>, 2010 # # 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; ei...
30.269006
153
0.651468
731
5,176
4.445964
0.27907
0.018462
0.034462
0.043077
0.272615
0.174154
0.103385
0.103385
0.091077
0.091077
0
0.029593
0.216577
5,176
170
154
30.447059
0.771887
0.191461
0
0.17757
0
0
0.096734
0.012563
0
0
0
0
0.009346
0
null
null
0
0.056075
null
null
0.009346
0
0
0
null
0
0
0
0
0
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
2ce817a6e849abb570f9ff5f54594335a171ed3d
2,918
py
Python
ext/testlib/suite.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
ext/testlib/suite.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
ext/testlib/suite.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
# Copyright (c) 2017 Mark D. Hill and David A. Wood # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditio...
42.289855
77
0.718986
398
2,918
5.18593
0.474874
0.017442
0.016473
0.022287
0.089147
0.065891
0.065891
0.065891
0.065891
0.065891
0
0.001736
0.210418
2,918
69
78
42.289855
0.894097
0.697395
0
0
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0.045455
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2cecc4379034e1c8d91bd34f47fbd53d6988aac0
857
py
Python
crossvalidation_pipeline.py
ktian08/6784-drugs
7c3ae9f65ce60b031008b0026bb9b954575315fa
[ "MIT" ]
1
2020-06-13T00:40:21.000Z
2020-06-13T00:40:21.000Z
crossvalidation_pipeline.py
ktian08/6784-drugs
7c3ae9f65ce60b031008b0026bb9b954575315fa
[ "MIT" ]
null
null
null
crossvalidation_pipeline.py
ktian08/6784-drugs
7c3ae9f65ce60b031008b0026bb9b954575315fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Andrew D. Rouillard Computational Biologist Target Sciences GSK andrew.d.rouillard@gsk.com """ import sys import get_generalizable_features import get_merged_features import get_useful_features def main(validation_rep=0, validation_fold=0): print('VALIDATION_REP: {0!s}, VALIDATION...
28.566667
109
0.753792
112
857
5.464286
0.330357
0.148693
0.138889
0.176471
0.230392
0.230392
0.166667
0.166667
0
0
0
0.009333
0.124854
857
29
110
29.551724
0.806667
0.131855
0
0
0
0
0.186141
0.028533
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.357143
0.285714
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
2cee64c765350c049d3f0289910d5b8f629efbd1
16,464
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
37.589041
479
0.672133
2,094
16,464
5.073066
0.122732
0.031629
0.088017
0.068248
0.72296
0.649252
0.595971
0.512002
0.454674
0.414478
0
0.004114
0.261723
16,464
437
480
37.675057
0.869848
0.579082
0
0.085271
0
0
0.121739
0.039038
0
0
0
0
0
1
0.20155
false
0
0.015504
0.015504
0.395349
0
0
0
0
null
0
0
0
0
0
0
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
2cf1316f9ee5f955fd15c0e34a1d960d2f6a156f
303
py
Python
mysite/SocialApp/migrations/0003_delete_remotefollow.py
asmao7/Cmput404W2021
82c1f42492c93048d5f144e2bbb416764d78013b
[ "MIT" ]
3
2021-01-20T18:23:14.000Z
2021-02-22T19:38:46.000Z
mysite/SocialApp/migrations/0003_delete_remotefollow.py
asmao7/Cmput404W2021
82c1f42492c93048d5f144e2bbb416764d78013b
[ "MIT" ]
24
2021-02-18T19:28:46.000Z
2021-04-14T17:12:21.000Z
mysite/SocialApp/migrations/0003_delete_remotefollow.py
asmao7/Cmput404W2021
82c1f42492c93048d5f144e2bbb416764d78013b
[ "MIT" ]
1
2021-05-13T04:43:00.000Z
2021-05-13T04:43:00.000Z
# Generated by Django 3.1.6 on 2021-04-12 08:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('SocialApp', '0002_auto_20210411_2237'), ] operations = [ migrations.DeleteModel( name='RemoteFollow', ), ]
17.823529
49
0.613861
32
303
5.71875
0.875
0
0
0
0
0
0
0
0
0
0
0.141553
0.277228
303
16
50
18.9375
0.694064
0.148515
0
0
1
0
0.171875
0.089844
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2cf4f7aa04d5ae102d82d9c9bd6e398a5f525f06
5,230
py
Python
src/export_blueprints.py
nutanixdev/export_blueprints
5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a
[ "MIT" ]
null
null
null
src/export_blueprints.py
nutanixdev/export_blueprints
5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a
[ "MIT" ]
null
null
null
src/export_blueprints.py
nutanixdev/export_blueprints
5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 """ export_blueprints.py Connect to a Nutanix Prism Central instance, grab all Calm blueprints and export them to JSON files. You would need to *heavily* modify this script for use in a production environment so that it contains appropriate error-checking and exception handling....
30.231214
157
0.573231
554
5,230
5.287004
0.379061
0.027654
0.027313
0.028679
0.132127
0.115056
0.077842
0.057357
0.057357
0.057357
0
0.005098
0.324857
5,230
172
158
30.406977
0.824412
0.116444
0
0.271028
0
0
0.250452
0.09605
0
0
0
0
0
1
0.028037
false
0.11215
0.056075
0
0.084112
0.093458
0
0
0
null
0
0
0
0
0
0
0
0
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
fa04b991cc6d146ac7f1dac666aa9bb071d80333
908
py
Python
scripts/media_to_wp.py
benjaminaschultz/pypress
358e088ac361aa4ae808f0a3d05fb6320d62240c
[ "MIT" ]
2
2015-01-25T17:21:53.000Z
2020-02-15T08:30:26.000Z
scripts/media_to_wp.py
benjaminaschultz/pypress
358e088ac361aa4ae808f0a3d05fb6320d62240c
[ "MIT" ]
1
2015-04-22T20:36:01.000Z
2015-04-22T20:36:01.000Z
scripts/media_to_wp.py
benjaminaschultz/pypress
358e088ac361aa4ae808f0a3d05fb6320d62240c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os,re,sys import mimetypes as mt import argparse import wordpress_xmlrpc as wp from pypress import * def main(argv,client=None): parser = argparse.ArgumentParser() parser.add_argument('-b','--blog', help='url of wordpress blog to which you want to post',dest='url') parser.add_argumen...
34.923077
115
0.709251
136
908
4.632353
0.470588
0.057143
0.107937
0.04127
0.114286
0.114286
0.114286
0.114286
0.114286
0.114286
0
0.001292
0.147577
908
25
116
36.32
0.812662
0.022026
0
0
0
0
0.269448
0
0
0
0
0
0
1
0.05
false
0.1
0.25
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fa0619b095728c9cbe0aa36d7fe788dda554c238
3,704
py
Python
tp/log/es.py
chinapnr/agbot
9739ce1c2198e50111629db2d1de785edd06876e
[ "MIT" ]
2
2018-06-23T06:48:46.000Z
2018-06-23T10:11:50.000Z
tp/log/es.py
chinapnr/agbot
9739ce1c2198e50111629db2d1de785edd06876e
[ "MIT" ]
5
2020-01-03T09:33:02.000Z
2021-06-02T00:49:52.000Z
tp/log/es.py
chinapnr/agbot
9739ce1c2198e50111629db2d1de785edd06876e
[ "MIT" ]
1
2021-07-07T07:17:27.000Z
2021-07-07T07:17:27.000Z
import re import time from datetime import datetime from enum import Enum from fishbase.fish_logger import logger from .elk_connector import Es from ..base.tp_base import TpBase, TestStatus, Conf, VerticalContext from ..base.tp_base import get_params_dict # LogTestPoint class LogESTestPoint(TpBase): # 类的初始化过程 ...
35.615385
140
0.601242
457
3,704
4.630197
0.306346
0.022684
0.037807
0.036862
0.3431
0.323251
0.256144
0.241966
0.058601
0
0
0.027925
0.284557
3,704
104
141
35.615385
0.770566
0.079374
0
0.144928
0
0
0.090077
0
0
0
0
0
0
1
0.072464
false
0.086957
0.115942
0
0.42029
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fa063d565e386e5f6704b88cfa4179fa400be8cb
5,326
py
Python
main.py
nmanzini/flashcardipy
a36be3d733d27d5252485d3b9ff71437dc3453cf
[ "MIT" ]
null
null
null
main.py
nmanzini/flashcardipy
a36be3d733d27d5252485d3b9ff71437dc3453cf
[ "MIT" ]
null
null
null
main.py
nmanzini/flashcardipy
a36be3d733d27d5252485d3b9ff71437dc3453cf
[ "MIT" ]
null
null
null
import sqlite3, random, os import time name = 'test01.db' filename = "grelist.txt" conn = sqlite3.connect(name) c = conn.cursor() '''word, definition, example, history, time, seen, right, wrong, streak, reported''' class Word(object): def __init__(self, row_id): """ Initialize a Word object with ...
28.481283
108
0.533421
654
5,326
4.253823
0.262997
0.01977
0.025162
0.027318
0.280374
0.267434
0.267434
0.1977
0.162473
0.132998
0
0.015914
0.351108
5,326
186
109
28.634409
0.789063
0.154149
0
0.256198
0
0
0.16109
0
0
0
0
0.010753
0
1
0.07438
false
0
0.016529
0
0.123967
0.14876
0
0
0
null
0
0
0
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
fa12c7d1995b97754015bbb18baea049a24d51b2
1,056
py
Python
Leetcode Practice/strStr.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
2
2020-04-11T14:15:10.000Z
2020-05-12T09:57:29.000Z
Leetcode Practice/strStr.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
null
null
null
Leetcode Practice/strStr.py
falconcode16/pythonprogramming
fc53a879be473ebceb1d7da061b0e8fc2a20706c
[ "MIT" ]
1
2021-10-10T02:13:42.000Z
2021-10-10T02:13:42.000Z
# Link - https://leetcode.com/problems/implement-strstr/ """ 28. Implement strStr() Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Clarification: What should we return when needle is an empty string? This is a great question to ask during...
22
138
0.660985
149
1,056
4.684564
0.536913
0.06447
0.034384
0.040115
0.088825
0.088825
0.088825
0.088825
0
0
0
0.022528
0.243371
1,056
47
139
22.468085
0.851064
0.744318
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
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
fa132dcd77d4356013f00fce442c60e3fac1fb8d
816
py
Python
skaio/scheduler.py
cipriantarta/skaio
30716a3bd30d055c0c18d10a899522934bb71613
[ "BSD-3-Clause" ]
null
null
null
skaio/scheduler.py
cipriantarta/skaio
30716a3bd30d055c0c18d10a899522934bb71613
[ "BSD-3-Clause" ]
null
null
null
skaio/scheduler.py
cipriantarta/skaio
30716a3bd30d055c0c18d10a899522934bb71613
[ "BSD-3-Clause" ]
null
null
null
import importlib.util import inspect from skaio import log from skaio.core.publisher import Publisher from skaio.core.base.task import BaseTask from skaio.utils.common import get_loop tasks = ['samples.simple_tasks'] class Scheduler: def start(self): publisher = Publisher() loop = get_loop() ...
32.64
65
0.590686
96
816
4.875
0.479167
0.076923
0.055556
0
0
0
0
0
0
0
0
0.005445
0.324755
816
24
66
34
0.84392
0
0
0
0
0
0.063725
0
0
0
0
0
0
1
0.05
false
0
0.35
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fa17a8836d0b0829d07d117b80ec33b5f3ae92ce
1,123
py
Python
Analytics_Deployment/amls/model_deployment/download_model.py
dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator
7ce56d00071bd1f521429dd15ea14c0d0b217008
[ "MIT" ]
12
2021-02-13T06:23:05.000Z
2022-03-26T05:17:49.000Z
Analytics_Deployment/amls/model_deployment/download_model.py
dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator
7ce56d00071bd1f521429dd15ea14c0d0b217008
[ "MIT" ]
1
2021-10-17T00:23:51.000Z
2021-10-17T00:23:51.000Z
Analytics_Deployment/amls/model_deployment/download_model.py
dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator
7ce56d00071bd1f521429dd15ea14c0d0b217008
[ "MIT" ]
13
2021-02-13T06:23:07.000Z
2022-02-25T11:23:24.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os, uuid, sys, pickle, shutil, io, logging from azure.storage.filedatalake import DataLakeServiceClient from azure.core._match_conditions import MatchConditions from azure.storage.filedatalake._models import ContentSet...
48.826087
163
0.836153
155
1,123
5.716129
0.458065
0.072235
0.15237
0.063205
0.088036
0
0
0
0
0
0
0.000978
0.089047
1,123
23
164
48.826087
0.865103
0.203028
0
0
0
0
0.238202
0.201124
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fa23b5ad8e2d48f157fde43ab9bbb1141bdb0d96
676
py
Python
tests/conftest.py
tohanss/repobee-sanitizer
d7a22dc51f298857db4f0138c04ffd5f3fe43511
[ "MIT" ]
null
null
null
tests/conftest.py
tohanss/repobee-sanitizer
d7a22dc51f298857db4f0138c04ffd5f3fe43511
[ "MIT" ]
137
2020-06-18T14:57:11.000Z
2022-01-16T15:58:27.000Z
tests/conftest.py
tohanss/repobee-sanitizer
d7a22dc51f298857db4f0138c04ffd5f3fe43511
[ "MIT" ]
2
2020-06-20T21:47:40.000Z
2020-06-24T13:04:54.000Z
"""Global fixtures and setup code for the test suite.""" import sys import pathlib import pytest import repobee sys.path.append(str(pathlib.Path(__file__).parent / "helpers")) @pytest.fixture(autouse=True) def unregister_plugins(): """Fixture that automatically unregisters all plugins after each test functio...
28.166667
73
0.745562
90
676
5.455556
0.611111
0.081466
0
0
0
0
0
0
0
0
0
0
0.149408
676
23
74
29.391304
0.853913
0.335799
0
0
0
0
0.141509
0
0
0
0
0
0
1
0.153846
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
fa31418ce189be6854e296ddbd28f6d7bc22e85e
344
py
Python
backend/research_note/migrations/0006_remove_researchnote_is_written.py
andy23512/research-note-system
42a9d67de07a0f32615c4b9c6505b46e7c852f79
[ "MIT" ]
null
null
null
backend/research_note/migrations/0006_remove_researchnote_is_written.py
andy23512/research-note-system
42a9d67de07a0f32615c4b9c6505b46e7c852f79
[ "MIT" ]
6
2021-06-04T23:01:14.000Z
2022-02-26T19:57:11.000Z
backend/research_note/migrations/0006_remove_researchnote_is_written.py
andy23512/research-note-system
42a9d67de07a0f32615c4b9c6505b46e7c852f79
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-11-12 16:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('research_note', '0005_auto_20191112_2255'), ] operations = [ migrations.RemoveField( model_name='researchnote', name='is_wri...
19.111111
53
0.610465
37
344
5.513514
0.837838
0
0
0
0
0
0
0
0
0
0
0.125506
0.281977
344
17
54
20.235294
0.700405
0.130814
0
0
1
0
0.195286
0.077441
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
fa3658cc83397f893af5141259e17243f9b55e03
4,060
py
Python
web.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
web.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
web.py
dujinle/AccountByTornado
ef76be1d8cfffea2797bf024dcb0eaa887ca0aff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys, os import tornado.ioloop import tornado.web import tornado.httpserver import logging import logging.handlers import re from urllib import unquote import config from travellers import * reload(sys) sys.setdefaultencoding('utf8') def deamon(chdir = False): try: if os.fork() > 0: os...
31.230769
76
0.698276
568
4,060
4.908451
0.34331
0.02726
0.037303
0.047346
0.304519
0.194405
0.053085
0.053085
0.049498
0.049498
0
0.011969
0.135714
4,060
129
77
31.472868
0.782559
0.1133
0
0.160714
0
0.017857
0.233371
0.024036
0
0
0
0.007752
0
0
null
null
0.008929
0.089286
null
null
0.026786
0
0
0
null
0
0
0
0
0
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
fa372cb86b56c891becb57810223ec547518e2ca
8,739
py
Python
fluiddb/data/user.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
3
2021-05-10T14:41:30.000Z
2021-12-16T05:53:30.000Z
fluiddb/data/user.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
null
null
null
fluiddb/data/user.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
2
2018-01-24T09:03:21.000Z
2021-06-25T08:34:54.000Z
import crypt import random import re from string import ascii_letters, digits from uuid import uuid4 from storm.locals import ( Storm, DateTime, Int, Unicode, UUID, Reference, AutoReload, RawStr) from fluiddb.data.exceptions import DuplicateUserError, MalformedUsernameError from fluiddb.data.store import getMainS...
36.11157
79
0.669642
1,206
8,739
4.804312
0.235489
0.015706
0.01933
0.010356
0.166552
0.119261
0.048326
0.016569
0.016569
0
0
0.012084
0.223481
8,739
241
80
36.261411
0.841733
0.463897
0
0.08
0
0
0.078241
0.026389
0
0
0
0
0
1
0.12
false
0.09
0.09
0
0.54
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fa3a63f302b46c02ff39a3b03b267bd4f406883d
241
py
Python
Books/Book/urls.py
qq292/Books
d3b85829592bcbeb87eeccc568e22c510a289487
[ "MIT" ]
null
null
null
Books/Book/urls.py
qq292/Books
d3b85829592bcbeb87eeccc568e22c510a289487
[ "MIT" ]
null
null
null
Books/Book/urls.py
qq292/Books
d3b85829592bcbeb87eeccc568e22c510a289487
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from django.views.generic import TemplateView from .views import MainPage urlpatterns = [ path('admin/', admin.site.urls), path('', MainPage.as_view(), name='books'), ]
21.909091
47
0.73029
32
241
5.46875
0.53125
0.171429
0
0
0
0
0
0
0
0
0
0
0.145228
241
10
48
24.1
0.849515
0
0
0
0
0
0.045643
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fa3cbfd8b261691f0db27a183a13227b321d7c35
1,782
py
Python
neopixel/main.py
morgulbrut/wemos-mupy
fbe425c6a383c9c28f36f48a23c70aae98bf62cd
[ "MIT" ]
null
null
null
neopixel/main.py
morgulbrut/wemos-mupy
fbe425c6a383c9c28f36f48a23c70aae98bf62cd
[ "MIT" ]
null
null
null
neopixel/main.py
morgulbrut/wemos-mupy
fbe425c6a383c9c28f36f48a23c70aae98bf62cd
[ "MIT" ]
null
null
null
from machine import Pin import neopixel import time class NeoMatrix: def __init__(self, x, y): self.colors = [] for i in range(x): for j in range(x): colors[i][j] = Color(0,0,0) self.np = neopixel.NeoPixel(Pin(4, Pin.OUT),x*y) self.np.write() def set_pixel(self,x,y,r=0,g=0,b=0): self.colors[x]...
20.964706
82
0.537037
362
1,782
2.558011
0.179558
0.042117
0.019438
0.059395
0.316415
0.25162
0.238661
0.167387
0.100432
0.100432
0
0.054034
0.241863
1,782
84
83
21.214286
0.631384
0.691919
0
0.105263
0
0
0
0
0
0
0
0
0
0
null
null
0
0.157895
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
fa3d7b7b58127ec40c852f915a22ddc033b65684
377
py
Python
tests/unit/request/request_builders/recurring_get_schedule_builder_test.py
Zhenay/python-sdk
53161cc591fe2ec54ecfefad4fc4d5625a97afd9
[ "MIT" ]
3
2018-06-08T12:21:28.000Z
2020-04-07T12:54:04.000Z
tests/unit/request/request_builders/recurring_get_schedule_builder_test.py
Zhenay/python-sdk
53161cc591fe2ec54ecfefad4fc4d5625a97afd9
[ "MIT" ]
2
2017-09-21T15:43:46.000Z
2019-07-22T08:20:50.000Z
tests/unit/request/request_builders/recurring_get_schedule_builder_test.py
Zhenay/python-sdk
53161cc591fe2ec54ecfefad4fc4d5625a97afd9
[ "MIT" ]
4
2020-09-21T07:11:22.000Z
2022-03-21T09:42:51.000Z
import unittest from platron.request.request_builders.recurring_get_schedule_builder import RecurringGetScheduleBuilder class RecurringGetScheduleBuilderTest(unittest.TestCase): def test_get_params(self): builder = RecurringGetScheduleBuilder('12345') params = builder.get_params() self.a...
31.416667
103
0.787798
37
377
7.783784
0.594595
0.0625
0.090278
0
0
0
0
0
0
0
0
0.030581
0.132626
377
11
104
34.272727
0.850153
0
0
0
0
0
0.079576
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fa401c88954339276304ae936fc6f58c6bc88be6
2,372
py
Python
malleus/api/domain/protos/timings_pb2.py
joelgerard/malleus
763850ef270a449829b89a998cdce8febf5020ef
[ "Apache-2.0" ]
null
null
null
malleus/api/domain/protos/timings_pb2.py
joelgerard/malleus
763850ef270a449829b89a998cdce8febf5020ef
[ "Apache-2.0" ]
2
2021-02-08T20:22:50.000Z
2021-06-01T22:07:40.000Z
malleus/api/domain/protos/timings_pb2.py
joelgerard/malleus
763850ef270a449829b89a998cdce8febf5020ef
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: malleus/api/domain/protos/timings.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf i...
32.493151
231
0.778246
314
2,372
5.570064
0.343949
0.06175
0.100629
0.075472
0.246998
0.191538
0.133219
0.133219
0.085192
0.085192
0
0.023102
0.105818
2,372
72
232
32.944444
0.801509
0.102024
0
0.113208
1
0
0.09887
0.06403
0
0
0
0
0
1
0
false
0
0.132075
0
0.132075
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fa483b3f10489cad64a57007f1b02b4ab7eddb87
445
py
Python
python_scripts/countries_dates.py
tuxskar/elpythonista
ac0cd45e97dffcf6a40d1566fdee5b01380f535a
[ "MIT" ]
2
2021-09-13T16:26:26.000Z
2021-10-04T04:40:11.000Z
python_scripts/countries_dates.py
tuxskar/elpythonista
ac0cd45e97dffcf6a40d1566fdee5b01380f535a
[ "MIT" ]
null
null
null
python_scripts/countries_dates.py
tuxskar/elpythonista
ac0cd45e97dffcf6a40d1566fdee5b01380f535a
[ "MIT" ]
null
null
null
from datetime import datetime import pytz if __name__ == '__main__': places_tz = ['Asia/Tokyo', 'Europe/Madrid', 'America/Argentina/Buenos_Aires', 'US/eastern', 'US/Pacific', 'UTC'] cities_name = ['Tokyo', 'Madrid', 'Buenos Aires', 'New York', 'California', 'UTC'] for place_tz, city_name in zip(places_tz, ...
44.5
116
0.678652
61
445
4.639344
0.606557
0.09894
0.084806
0
0
0
0
0
0
0
0
0
0.159551
445
9
117
49.444444
0.756684
0
0
0
0
0
0.364045
0.067416
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fa48f487c0f61d98b503010843e5e1dd19fce9a8
5,871
py
Python
algebra_utilities/structures/semigroup.py
computational-group-the-golden-ticket/AlgebraUtilities
d5c7c2806b6bd394564ae4146a2c5164f4ebe882
[ "MIT" ]
null
null
null
algebra_utilities/structures/semigroup.py
computational-group-the-golden-ticket/AlgebraUtilities
d5c7c2806b6bd394564ae4146a2c5164f4ebe882
[ "MIT" ]
null
null
null
algebra_utilities/structures/semigroup.py
computational-group-the-golden-ticket/AlgebraUtilities
d5c7c2806b6bd394564ae4146a2c5164f4ebe882
[ "MIT" ]
null
null
null
from algebra_utilities.objects.baseobjects import * from algebra_utilities.structures.baseobjects import Printable from algebra_utilities.utils.errors import UnexpectedTypeError from algebra_utilities.utils.errors import NonAssociativeSetError from algebra_utilities.utils.errors import ElementsOverflow class...
35.79878
107
0.607392
645
5,871
5.44031
0.305426
0.044457
0.028498
0.021374
0.196922
0.131946
0.076945
0.076945
0.076945
0.076945
0
0.00102
0.332141
5,871
163
108
36.018405
0.893905
0.269119
0
0.102564
0
0
0.058959
0
0
0
0
0.055215
0
1
0.115385
false
0
0.064103
0.012821
0.282051
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
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fa4c5e2c67d5f8e3cdc1d31a4e00b2fd7c6a269b
6,301
py
Python
tests/unit/lib/logs/test_formatter.py
OscarVanL/aws-sam-cli
13e02ae53ac3a4484acd74c944123921e27823f3
[ "Apache-2.0" ]
null
null
null
tests/unit/lib/logs/test_formatter.py
OscarVanL/aws-sam-cli
13e02ae53ac3a4484acd74c944123921e27823f3
[ "Apache-2.0" ]
null
null
null
tests/unit/lib/logs/test_formatter.py
OscarVanL/aws-sam-cli
13e02ae53ac3a4484acd74c944123921e27823f3
[ "Apache-2.0" ]
null
null
null
import json from unittest import TestCase from mock import Mock, patch, call from nose_parameterized import parameterized from samcli.lib.logs.formatter import LogsFormatter, LambdaLogMsgFormatters, KeywordHighlighter, JSONMsgFormatter from samcli.lib.logs.event import LogEvent class TestLogsFormatter_pretty_print_...
38.187879
113
0.702746
736
6,301
5.722826
0.179348
0.04962
0.060541
0.031339
0.476021
0.433048
0.407407
0.398623
0.311491
0.270893
0
0.006403
0.206793
6,301
164
114
38.420732
0.836335
0.031265
0
0.361345
0
0
0.091326
0
0
0
0
0
0.184874
1
0.10084
false
0.05042
0.05042
0.008403
0.201681
0.07563
0
0
0
null
0
0
0
0
0
0
0
0
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
fa4c6f431c760c50f8930890bae505b1e114beff
3,921
py
Python
openconnect-cli.py
tcpipuk/OpenConnect-FE
d7d213cedb16b5eb30c7e100848e7e3b53467dd3
[ "Apache-2.0" ]
null
null
null
openconnect-cli.py
tcpipuk/OpenConnect-FE
d7d213cedb16b5eb30c7e100848e7e3b53467dd3
[ "Apache-2.0" ]
null
null
null
openconnect-cli.py
tcpipuk/OpenConnect-FE
d7d213cedb16b5eb30c7e100848e7e3b53467dd3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse, pexpect from getpass import getpass from time import sleep # Set up argument parser parser = argparse.ArgumentParser(prog='openconnect-cli', description='Automate logins to the OpenConnect SSL VPN client') # Type of VPN to initiate parser_type = parser.add_mutually_exclusive_g...
33.228814
132
0.683499
522
3,921
5.078544
0.314176
0.02716
0.042248
0.031686
0.208978
0.146737
0.031686
0
0
0
0
0.003722
0.177761
3,921
117
133
33.512821
0.818548
0.128284
0
0.147727
0
0
0.339013
0.012926
0
0
0
0
0
1
0.011364
false
0.079545
0.034091
0
0.113636
0.056818
0
0
0
null
0
0
0
0
0
0
0
0
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
fa4c79eb3a2bcc3c5bb9874b8d41fc99facf7f36
1,047
py
Python
unittestdemo/unittestdemo01.py
caoyp2/PyProject01
1a7d022894908b400fa24da1bb74b47a87ec04e4
[ "Apache-2.0" ]
null
null
null
unittestdemo/unittestdemo01.py
caoyp2/PyProject01
1a7d022894908b400fa24da1bb74b47a87ec04e4
[ "Apache-2.0" ]
null
null
null
unittestdemo/unittestdemo01.py
caoyp2/PyProject01
1a7d022894908b400fa24da1bb74b47a87ec04e4
[ "Apache-2.0" ]
null
null
null
import unittest #4.定义测试类,父类为unittest.TestCase。 #可继承unittest.TestCase的方法,如setUp和tearDown方法,不过此方法可以在子类重写,覆盖父类方法。 #可继承unittest.TestCase的各种断言方法。 class Test(unittest.TestCase): #5.定义setUp()方法用于测试用例执行前的初始化工作。 #注意,所有类中方法的入参为self,定义方法的变量也要“self.变量” def setUp(self): print("开始。。。。。。。。") self.number = 10 #6...
26.175
67
0.726839
120
1,047
6.158333
0.591667
0.040595
0.051421
0.067659
0.046008
0
0
0
0
0
0
0.032044
0.135626
1,047
40
68
26.175
0.78453
0.479465
0
0
0
0
0.147448
0
0
0
0
0
0.1875
1
0.3125
false
0
0.0625
0
0.4375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fa4d864c5607687ad1cc9e70a90a7da7550acda4
351
py
Python
pytools/unit.py
ry-shika/Geister-cpp-lib
d8630185e19fe06c5b2bf63ee0f37d665d7f357b
[ "BSL-1.0" ]
8
2021-03-12T00:06:44.000Z
2022-01-15T20:09:51.000Z
pytools/unit.py
ry-shika/Geister-cpp-lib
d8630185e19fe06c5b2bf63ee0f37d665d7f357b
[ "BSL-1.0" ]
40
2019-06-19T04:54:55.000Z
2020-10-25T17:58:31.000Z
pytools/unit.py
ry-shika/Geister-cpp-lib
d8630185e19fe06c5b2bf63ee0f37d665d7f357b
[ "BSL-1.0" ]
3
2021-05-25T08:26:26.000Z
2021-06-22T08:26:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- class Unit: def __init__(self, x, y, color, name): self.x = x self.y = y self.color = color self.name = name self.taken = False class OpUnit(Unit): def __init__(self, x, y, color, name): super().__init__(x, y, color...
21.9375
43
0.532764
51
351
3.431373
0.431373
0.085714
0.12
0.188571
0.405714
0.297143
0.297143
0.297143
0
0
0
0.0125
0.316239
351
16
44
21.9375
0.716667
0.119658
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
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
fa4e2e368a0acbcb5f65a50b8b60acca846de6d5
1,752
py
Python
pull_scp/config.py
FNNDSC/pl-pull_scp
99b310e5ad88f1afdb1114f14d8cf10bb9b3657d
[ "MIT" ]
null
null
null
pull_scp/config.py
FNNDSC/pl-pull_scp
99b310e5ad88f1afdb1114f14d8cf10bb9b3657d
[ "MIT" ]
null
null
null
pull_scp/config.py
FNNDSC/pl-pull_scp
99b310e5ad88f1afdb1114f14d8cf10bb9b3657d
[ "MIT" ]
null
null
null
"""Remote host configuration.""" from os import getenv, path from dotenv import load_dotenv from .log import LOGGER import pudb # Load environment variables from .env # Originally set to the "installation" directory of the app... BASE_DIR = path.abspath(path.dirname(__file__)) # But using /tmp might just ...
31.854545
83
0.67637
213
1,752
5.300469
0.413146
0.053144
0.034544
0
0
0
0
0
0
0
0
0.000714
0.200342
1,752
54
84
32.444444
0.805139
0.182648
0
0
0
0
0.27433
0.045839
0
0
0
0
0
1
0
false
0.058824
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fa50b1c117a73b73cdb56047b0035eccafe1e85c
343
py
Python
project-a/labels.py
achon22/cs231nLung
37a1d46a36f737a8d8461f7ef9237f818a74493f
[ "MIT" ]
2
2018-05-06T12:45:03.000Z
2019-03-31T07:01:41.000Z
project-a/labels.py
achon22/cs231nLung
37a1d46a36f737a8d8461f7ef9237f818a74493f
[ "MIT" ]
null
null
null
project-a/labels.py
achon22/cs231nLung
37a1d46a36f737a8d8461f7ef9237f818a74493f
[ "MIT" ]
1
2018-05-06T12:56:05.000Z
2018-05-06T12:56:05.000Z
#!/usr/bin/env python def main(): f = open('stage1_solution.csv') ones = 0 zeros = 0 total = 0 for line in f: if line[:3] == 'id,': continue line = line.strip().split(',') label = int(line[1]) if label == 1: ones += 1 total += 1 zeros = total-ones print float(zeros)/total f.close() if __name__...
16.333333
32
0.586006
54
343
3.555556
0.574074
0.104167
0
0
0
0
0
0
0
0
0
0.033962
0.227405
343
21
33
16.333333
0.690566
0.058309
0
0
0
0
0.095975
0
0
0
0
0
0
0
null
null
0
0
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
fa601fe1d2a43b58da3a5908f30d4dd1e67e4207
2,507
py
Python
pyethereum/config.py
CJentzsch/pyethereum
35c67e28ea1279b63ac40f3a987a741d6d994022
[ "MIT" ]
null
null
null
pyethereum/config.py
CJentzsch/pyethereum
35c67e28ea1279b63ac40f3a987a741d6d994022
[ "MIT" ]
null
null
null
pyethereum/config.py
CJentzsch/pyethereum
35c67e28ea1279b63ac40f3a987a741d6d994022
[ "MIT" ]
2
2020-09-09T20:01:12.000Z
2021-09-01T15:47:10.000Z
import os import uuid import StringIO import ConfigParser from pyethereum.utils import data_dir from pyethereum.packeter import Packeter from pyethereum.utils import sha3 def default_data_dir(): data_dir._set_default() return data_dir.path def default_config_path(): return os.path.join(default_data_dir(...
21.991228
75
0.70004
354
2,507
4.822034
0.392655
0.028705
0.00703
0.029291
0.049209
0.02812
0.02812
0.02812
0
0
0
0.040956
0.181891
2,507
113
76
22.185841
0.791321
0.025927
0
0.052632
0
0
0.040197
0
0
0
0
0.00885
0
1
0.184211
false
0
0.184211
0.078947
0.552632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
fa6881de69c9929008a699b6ce522f86648d2221
403
py
Python
input/migrations/0016_auto_20190524_0055.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
null
null
null
input/migrations/0016_auto_20190524_0055.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
10
2019-05-15T06:25:36.000Z
2022-02-10T08:46:38.000Z
input/migrations/0016_auto_20190524_0055.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
1
2019-05-21T03:01:48.000Z
2019-05-21T03:01:48.000Z
# Generated by Django 2.1.1 on 2019-05-24 00:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('input', '0015_auto_20190524_0052'), ] operations = [ migrations.AlterField( model_name='post', name='c...
21.210526
55
0.57072
42
403
5.357143
0.809524
0
0
0
0
0
0
0
0
0
0
0.113139
0.320099
403
18
56
22.388889
0.708029
0.111663
0
0
1
0
0.109467
0.068047
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
3af8f1e275cd19adaa5bb2394843a71b553551e5
758
py
Python
py/py_0685_inverse_digit_sum_ii.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0685_inverse_digit_sum_ii.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0685_inverse_digit_sum_ii.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 685: Inverse Digit Sum II # https://projecteuler.net/problem=685 # # Writing down the numbers which have a digit sum of 10 in ascending order, we # get:$19, 28, 37, 46,55,64,73,82,91,109, 118,\dots$Let $f(n,m)$ be the # $m^{\text{th}}$ occurrence of the digit sum $n$. For examp...
30.32
79
0.633245
141
758
3.326241
0.595745
0.051173
0.029851
0.042644
0
0
0
0
0
0
0
0.178628
0.172823
758
24
80
31.583333
0.569378
0.76781
0
0
0
0
0.04908
0
0
0
0
0
0
1
0.125
false
0.125
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3afa222274ac5c4cc6f82d844f11e23c6709df36
2,196
py
Python
test_scripts/json_over_tcp.py
luozh05/Doc
3471a9c8578d6530abf5c3ee3100488b0dc1e447
[ "Apache-2.0" ]
null
null
null
test_scripts/json_over_tcp.py
luozh05/Doc
3471a9c8578d6530abf5c3ee3100488b0dc1e447
[ "Apache-2.0" ]
null
null
null
test_scripts/json_over_tcp.py
luozh05/Doc
3471a9c8578d6530abf5c3ee3100488b0dc1e447
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import socket import sys import json #HOST="localhost" HOST="172.20.1.11" PORT=37568 def send_and_receive_msg(msg): # Create a socket (SOCK_STREAM means a TCP socket) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Connect host:port sock.connect((HOST, PORT)) # ...
26.780488
76
0.607013
299
2,196
4.334448
0.324415
0.055556
0.048611
0.102623
0.421296
0.375772
0.35571
0.304784
0.304784
0.241512
0
0.029179
0.250911
2,196
81
77
27.111111
0.758663
0.127505
0
0.288136
0
0
0.252753
0.028317
0
0
0
0
0
0
null
null
0
0.050847
null
null
0.152542
0
0
0
null
0
0
0
0
0
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
3afc9808039be0c4906a8ad82c7a46e1f069e435
5,628
py
Python
test_api.py
atifar/mini-key-value
0efe621260aa0a1aaa22ed721d05b4173b4171dd
[ "MIT" ]
null
null
null
test_api.py
atifar/mini-key-value
0efe621260aa0a1aaa22ed721d05b4173b4171dd
[ "MIT" ]
null
null
null
test_api.py
atifar/mini-key-value
0efe621260aa0a1aaa22ed721d05b4173b4171dd
[ "MIT" ]
null
null
null
def test_check_sanity(client): resp = client.get('/sanity') assert resp.status_code == 200 assert 'Sanity check passed.' == resp.data.decode() # 'list collections' tests def test_get_api_root(client): resp = client.get('/', content_type='application/json') assert resp.status_code == 200 resp_d...
31.266667
78
0.643923
762
5,628
4.489501
0.115486
0.088863
0.079509
0.099386
0.797135
0.708857
0.653902
0.620871
0.620871
0.588424
0
0.014567
0.207178
5,628
179
79
31.441341
0.752129
0.021855
0
0.568345
0
0
0.192434
0
0
0
0
0
0.323741
1
0.122302
false
0.007194
0
0
0.122302
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
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
d70045662563ef27515bc31c292104985de68053
2,733
py
Python
top_book/book/views.py
mfarjami/DRF-top
914ed9068ed73d7d8a692c8ed2e77cba96cee5b1
[ "MIT" ]
null
null
null
top_book/book/views.py
mfarjami/DRF-top
914ed9068ed73d7d8a692c8ed2e77cba96cee5b1
[ "MIT" ]
null
null
null
top_book/book/views.py
mfarjami/DRF-top
914ed9068ed73d7d8a692c8ed2e77cba96cee5b1
[ "MIT" ]
null
null
null
from rest_framework.decorators import api_view from rest_framework.views import APIView from rest_framework import status from rest_framework.response import Response from .models import Book from .serializers import BookSerializer # Create your views here. class GetAllData(APIView): def get(self, request): ...
35.960526
82
0.691914
327
2,733
5.64526
0.211009
0.091008
0.104009
0.086674
0.688516
0.668472
0.646262
0.646262
0.553629
0.507584
0
0.016582
0.205635
2,733
76
83
35.960526
0.833717
0.008416
0
0.459016
0
0
0.014027
0
0
0
0
0
0
1
0.147541
false
0
0.098361
0
0.540984
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d7051e18592cfcaabdc61f04c12bac4c5a8c6910
423
py
Python
prophet-gpl/tools/return_counter.py
jyi/ITSP
0553f683f99403efb5ef440af826c1d229a52376
[ "MIT" ]
18
2017-06-14T07:55:45.000Z
2022-03-24T09:32:43.000Z
prophet-gpl/tools/return_counter.py
jyi/ITSP
0553f683f99403efb5ef440af826c1d229a52376
[ "MIT" ]
2
2017-07-25T13:44:39.000Z
2018-03-16T06:43:40.000Z
prophet-gpl/tools/return_counter.py
jyi/ITSP
0553f683f99403efb5ef440af826c1d229a52376
[ "MIT" ]
5
2017-07-29T19:09:37.000Z
2021-04-10T16:39:48.000Z
#!/usr/bin/env python f = open("repair.log", "r"); lines = f.readlines(); cnt = 0; for line in lines: tokens = line.strip().split(); if (len(tokens) > 3): if (tokens[0] == "Total") and (tokens[1] == "return"): cnt += int(tokens[3]); if (tokens[0] == "Total") and (tokens[2] == "differ...
32.538462
93
0.520095
59
423
3.728814
0.542373
0.095455
0.081818
0.136364
0.272727
0.272727
0.272727
0.272727
0
0
0
0.028125
0.243499
423
12
94
35.25
0.659375
0.047281
0
0
0
0
0.134328
0
0
0
0
0
0
0
null
null
0
0
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d70bfa071ce979b042b3019dc6f0957d42a9409f
808
py
Python
src/genome/visibles/sphere_gene.py
stu-smith/blender-evolution
644b92d4dc30e82708b2e78da4f274c9ab142704
[ "MIT" ]
null
null
null
src/genome/visibles/sphere_gene.py
stu-smith/blender-evolution
644b92d4dc30e82708b2e78da4f274c9ab142704
[ "MIT" ]
null
null
null
src/genome/visibles/sphere_gene.py
stu-smith/blender-evolution
644b92d4dc30e82708b2e78da4f274c9ab142704
[ "MIT" ]
null
null
null
from ..gene import Gene from ..scalar_gene_property import ScalarGeneProperty from ..color_gene_property import ColorGeneProperty from ...visible_objects.sphere import Sphere class SphereGene(Gene): def __init__(self): self._size_property = ScalarGeneProperty(min=0.1, max=20, value=2) self._colo...
29.925926
74
0.689356
99
808
5.353535
0.373737
0.018868
0.090566
0
0
0
0
0
0
0
0
0.022222
0.220297
808
26
75
31.076923
0.819048
0.045792
0
0
0
0
0
0
0
0
0
0.038462
0
1
0.157895
false
0
0.210526
0.052632
0.473684
0
0
0
0
null
0
0
0
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
d7141ae014ac95863434646bbd6943b07b157f83
216
py
Python
Ex-15.py
gilmartins83/Guanabara-Python
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
[ "MIT" ]
null
null
null
Ex-15.py
gilmartins83/Guanabara-Python
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
[ "MIT" ]
null
null
null
Ex-15.py
gilmartins83/Guanabara-Python
43128c35fcd601db1f72c80a9c76f4b4f4085c7f
[ "MIT" ]
null
null
null
dias = int(input("quantos dias voce deseja alugar o carro? ")) km = float(input("Quantos kilometros você andou? ")) pago = dias * 60 + (km * 0.15) print("o valor do aluguel do carro foi de R$ {:.2f}" .format(pago))
36
67
0.662037
36
216
3.972222
0.75
0.167832
0
0
0
0
0
0
0
0
0
0.033708
0.175926
216
5
68
43.2
0.769663
0
0
0
0
0
0.539535
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d720f208a3df6385750ad1742504776a36069d68
6,151
py
Python
Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2008, Riverbank Computing Limited # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditi...
33.612022
106
0.558121
583
6,151
5.722127
0.295026
0.030576
0.048261
0.023981
0.263789
0.163369
0.1256
0.105815
0.105815
0.089329
0
0.000809
0.196228
6,151
182
107
33.796703
0.673948
0.263047
0
0.1
0
0
0.024066
0
0
0
0
0
0
1
0.157143
false
0.085714
0.157143
0
0.528571
0
0
0
0
null
0
0
0
0
0
0
0
0
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
d72a11a2c8bf6250447fd4fa6eb0f797bb01fbab
6,184
py
Python
autoPyTorch/core/autonet_classes/autonet_feature_data.py
thomascherickal/Auto-PyTorch
9e25a3bdef8e836e63979229eef77830cd64bb53
[ "BSD-3-Clause" ]
1
2019-09-02T00:37:52.000Z
2019-09-02T00:37:52.000Z
autoPyTorch/core/autonet_classes/autonet_feature_data.py
thomascherickal/Auto-PyTorch
9e25a3bdef8e836e63979229eef77830cd64bb53
[ "BSD-3-Clause" ]
null
null
null
autoPyTorch/core/autonet_classes/autonet_feature_data.py
thomascherickal/Auto-PyTorch
9e25a3bdef8e836e63979229eef77830cd64bb53
[ "BSD-3-Clause" ]
1
2019-09-02T00:40:30.000Z
2019-09-02T00:40:30.000Z
__author__ = "Max Dippel, Michael Burkart and Matthias Urban" __version__ = "0.0.1" __license__ = "BSD" from autoPyTorch.core.api import AutoNet class AutoNetFeatureData(AutoNet): @classmethod def get_default_pipeline(cls): from autoPyTorch.pipeline.base.pipeline import Pipeline from autoPyT...
52.854701
126
0.733991
535
6,184
8.229907
0.257944
0.109017
0.125369
0.146264
0.348853
0.267091
0.246196
0.246196
0.228935
0.228935
0
0.000611
0.205692
6,184
116
127
53.310345
0.895765
0.002911
0
0.178947
0
0
0.039916
0
0
0
0
0
0
1
0.021053
false
0
0.347368
0
0.389474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
d7315024b9feb9895ac394720425de68d6266009
12,033
py
Python
StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
from Stream import Stream from Stream import _no_value, _multivalue from Agent import Agent from root.nested.OperatorsTestNew import stream_agent def make_network(stream_names_tuple, agent_descriptor_dict): """ This function makes a network of agents given the names of the streams in the network and a descript...
37.25387
95
0.634588
1,577
12,033
4.519341
0.103995
0.061877
0.06749
0.061036
0.520836
0.441841
0.360039
0.259015
0.210467
0.169075
0
0.002911
0.286379
12,033
322
96
37.369565
0.827064
0.252722
0
0.145299
0
0
0.057014
0
0
0
0
0
0
0
null
null
0
0.042735
null
null
0.119658
0
0
0
null
0
0
0
0
0
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
d73b450d21d773f70afe8701a469d62e69a7223b
720
py
Python
pydis_site/apps/api/migrations/0055_reminder_mentions.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
700
2018-11-17T15:56:51.000Z
2022-03-30T22:53:17.000Z
pydis_site/apps/api/migrations/0055_reminder_mentions.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
542
2018-11-17T13:39:42.000Z
2022-03-31T11:24:00.000Z
pydis_site/apps/api/migrations/0055_reminder_mentions.py
Numerlor/site
e4cec0aeb2a791e622be8edd94fb4e82d150deab
[ "MIT" ]
178
2018-11-21T09:06:56.000Z
2022-03-31T07:43:28.000Z
# Generated by Django 2.2.14 on 2020-07-15 07:37 import django.contrib.postgres.fields import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0054_user_invalidate_unknown_role'), ] operations = [ migrations...
34.285714
307
0.704167
88
720
5.670455
0.738636
0.048096
0.084168
0.108216
0
0
0
0
0
0
0
0.035775
0.184722
720
20
308
36
0.81431
0.063889
0
0
1
0
0.19494
0.049107
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d746595f48844a5e6d0dbe01d637017879e8559b
7,064
py
Python
app/run.py
mourgaya/iscsi_ihm
aadf09590a02f6f1e6b16b000c2a4380e015f840
[ "Apache-2.0" ]
null
null
null
app/run.py
mourgaya/iscsi_ihm
aadf09590a02f6f1e6b16b000c2a4380e015f840
[ "Apache-2.0" ]
null
null
null
app/run.py
mourgaya/iscsi_ihm
aadf09590a02f6f1e6b16b000c2a4380e015f840
[ "Apache-2.0" ]
null
null
null
#author : eric mourgya # import commands from flask import jsonify from flask import Flask, Response, request, redirect,session, url_for from flask.ext.login import LoginManager, UserMixin,login_required, login_user, logout_user #@app.after_request #def treat_as_plain_text(response): # response.headers["content-typ...
27.920949
98
0.614383
837
7,064
5.109916
0.204301
0.062193
0.048632
0.058452
0.491934
0.474398
0.422492
0.422492
0.413608
0.391162
0
0.010275
0.228482
7,064
252
99
28.031746
0.774495
0.028171
0
0.491713
0
0
0.328259
0.013671
0
0
0
0
0
0
null
null
0.027624
0.022099
null
null
0.016575
0
0
0
null
0
0
0
0
0
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
d7469f7f64e499f08213f3dd92d29492cf06e4a9
539
py
Python
src/config/defaults/sc2/config.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
26
2019-10-28T09:01:45.000Z
2021-09-20T08:56:12.000Z
src/config/defaults/sc2/config.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
1
2020-07-25T06:50:05.000Z
2020-07-25T06:50:05.000Z
src/config/defaults/sc2/config.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
6
2019-12-18T12:02:57.000Z
2021-03-03T13:15:47.000Z
def get_cfg(existing_cfg, _log): """ generates """ _sanity_check(existing_cfg, _log) import ntpath, os, yaml with open(os.path.join(os.path.dirname(__file__), "{}.yml".format(ntpath.basename(__file__).split(".")[0])), 'r') as stream: try: ret = yaml.load(stream)...
29.944444
112
0.595547
67
539
4.447761
0.597015
0.110738
0.14094
0.147651
0.167785
0
0
0
0
0
0
0.004963
0.252319
539
18
113
29.944444
0.734491
0.016698
0
0
1
0
0.093254
0
0
0
0
0
0.083333
1
0.166667
false
0
0.083333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d74f99009f7b23a8259c513299a6bb144a926283
4,881
py
Python
src/old/api_server.py
ssupdoc/k8-simulation
7834d3faaed3e86b547554c6228540c316621011
[ "CC0-1.0" ]
null
null
null
src/old/api_server.py
ssupdoc/k8-simulation
7834d3faaed3e86b547554c6228540c316621011
[ "CC0-1.0" ]
null
null
null
src/old/api_server.py
ssupdoc/k8-simulation
7834d3faaed3e86b547554c6228540c316621011
[ "CC0-1.0" ]
null
null
null
from src.deployment import Deployment from src.end_point import EndPoint from src.etcd import Etcd from src.pod import Pod from src.pid_controller import PIDController from src.request import Request from src.worker_node import WorkerNode import threading import random #The APIServer handles the communication between ...
36.699248
129
0.763983
633
4,881
5.873618
0.259084
0.036579
0.012103
0.021517
0.074771
0.042496
0.042496
0.020441
0.020441
0.020441
0
0.004342
0.150584
4,881
132
130
36.977273
0.892426
0.309158
0
0.045455
0
0
0.052522
0
0
0
0
0
0
1
0.215909
false
0
0.102273
0.068182
0.420455
0.102273
0
0
0
null
0
0
0
0
0
0
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
d75199ae09fb507ebd0bec385de7a0580d95d595
1,946
py
Python
ngram_graphs/TextGraph/IGraphTextGraph.py
loginn/ngrams_graphs
74fc42d3895cdbc51eec5aaf7b5505b4432619e3
[ "MIT" ]
8
2018-04-24T17:03:29.000Z
2022-02-08T14:36:00.000Z
ngram_graphs/TextGraph/IGraphTextGraph.py
loginn/ngrams-graphs
74fc42d3895cdbc51eec5aaf7b5505b4432619e3
[ "MIT" ]
1
2019-08-13T08:50:54.000Z
2021-12-03T11:19:51.000Z
ngram_graphs/TextGraph/IGraphTextGraph.py
loginn/ngrams_graphs
74fc42d3895cdbc51eec5aaf7b5505b4432619e3
[ "MIT" ]
null
null
null
from igraph import Graph def find_node_name(graph, node_idx): return graph.vs[node_idx]["name"] class IGraphTextGraph(Graph): def __init__(self): super().__init__(directed=True) def __copy__(self): g = IGraphTextGraph() for v in self.vs: g.add_vertex(v) for e...
38.92
108
0.631552
266
1,946
4.278195
0.195489
0.04833
0.052724
0.084359
0.443761
0.212654
0.119508
0.057996
0.057996
0
0
0.000685
0.250257
1,946
49
109
39.714286
0.779301
0
0
0
0
0
0.054471
0
0
0
0
0
0
1
0.205128
false
0
0.025641
0.051282
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d75247a3779551deda4745fa7b2623bb3e507eaf
619
py
Python
pyFiDEL/utils.py
sungcheolkim78/pyFiDEL
670067b12a2efd276e23382251ec612af678731f
[ "Apache-2.0" ]
null
null
null
pyFiDEL/utils.py
sungcheolkim78/pyFiDEL
670067b12a2efd276e23382251ec612af678731f
[ "Apache-2.0" ]
null
null
null
pyFiDEL/utils.py
sungcheolkim78/pyFiDEL
670067b12a2efd276e23382251ec612af678731f
[ "Apache-2.0" ]
null
null
null
''' utils.py - utility functions Soli Deo Gloria ''' __author__ = 'Sung-Cheol Kim' __version__ = '1.0.0' import numpy as np def fermi_l(x: np.array, l1: float, l2: float) -> np.array: ''' calculate fermi-dirac distribution with np.array x with l1 and l2''' return 1. / (1. + np.exp(l2 * x + l1)) def ferm...
23.807692
78
0.596123
101
619
3.554455
0.425743
0.097493
0.066852
0.083565
0.376045
0.339833
0.261838
0.261838
0.261838
0
0
0.031579
0.232633
619
25
79
24.76
0.724211
0.289176
0
0
0
0
0.045238
0
0
0
0
0
0
1
0.2
false
0
0.1
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
0
0
0
0
0
1
0
0
1
d7599edaa481a1e260e406f973a13c62378a0dab
389
py
Python
tests/utils.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
tests/utils.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
tests/utils.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from copy import deepcopy from app import settings @contextmanager def override_settings(overrides): """ A utility function used by some fixtures to override settings """ old_settings = deepcopy(settings._settings) settings._settings.update(overrides) try: ...
24.3125
65
0.732648
43
389
6.488372
0.55814
0.229391
0.136201
0
0
0
0
0
0
0
0
0
0.210797
389
15
66
25.933333
0.908795
0.156812
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.363636
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d759cca6aa40b22128380587e7622577a783f241
1,422
py
Python
parse.py
OpenScienceFramework/citations
3679ef4a1746a287061186078ce4b9144afe9083
[ "Apache-2.0" ]
4
2015-05-20T15:48:35.000Z
2021-06-24T17:04:51.000Z
parse.py
OpenScienceFramework/citations
3679ef4a1746a287061186078ce4b9144afe9083
[ "Apache-2.0" ]
null
null
null
parse.py
OpenScienceFramework/citations
3679ef4a1746a287061186078ce4b9144afe9083
[ "Apache-2.0" ]
1
2015-01-10T13:02:45.000Z
2015-01-10T13:02:45.000Z
# encoding: utf-8 """ Parse module for parsing citations into structured data. Currently this uses the Parsley library to do this, the grammars are defined in the grammars/ folder and cycled through until one is found that works. to_dict will convert the Reference named tuple into a dictionary, which allows for easy t...
28.44
79
0.662447
185
1,422
5.081081
0.589189
0.015957
0.040426
0
0
0
0
0
0
0
0
0.000922
0.23699
1,422
49
80
29.020408
0.864516
0.010549
0
0
0
0
0.091324
0
0
0
0
0
0
0
null
null
0.037037
0.148148
null
null
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d75e34968052a479dcb04800c417d5b42abec672
3,876
py
Python
test/clean_directory.py
adevress/gfal2
ce8945d1c153e26c5d10ad43d1940b8dcace0579
[ "Apache-2.0" ]
null
null
null
test/clean_directory.py
adevress/gfal2
ce8945d1c153e26c5d10ad43d1940b8dcace0579
[ "Apache-2.0" ]
null
null
null
test/clean_directory.py
adevress/gfal2
ce8945d1c153e26c5d10ad43d1940b8dcace0579
[ "Apache-2.0" ]
1
2020-04-28T09:36:46.000Z
2020-04-28T09:36:46.000Z
#!/usr/bin/env python import gfal2 import logging import optparse import stat import sys log = logging.getLogger('gfal2.clean_directory') class Cleaner(object): def __init__(self, abort_on_error=False, recursive=False, only_files=False, chmod=False): self.abort_on_error = abort_on_error self.rec...
36.914286
100
0.576625
465
3,876
4.604301
0.260215
0.026156
0.044839
0.037366
0.17702
0.141523
0.065857
0.065857
0.065857
0.065857
0
0.008598
0.309856
3,876
104
101
37.269231
0.791776
0.00516
0
0.188235
0
0
0.136446
0.005447
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
d75e92e1cf6688e5a8ad55c6253bccf7855e6a50
2,196
py
Python
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/viper/calculators/calc_utilities.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
from pyradioconfig.parts.bobcat.calculators.calc_utilities import Calc_Utilities_Bobcat from pycalcmodel.core.variable import ModelVariableFormat from enum import Enum class Calc_Utilities_Viper(Calc_Utilities_Bobcat): def buildVariables(self, model): #Build all variables from the inherited class s...
37.220339
99
0.722222
292
2,196
5.219178
0.253425
0.146982
0.03937
0.052493
0.479659
0.433071
0.433071
0.433071
0.433071
0.433071
0
0.001176
0.22541
2,196
58
100
37.862069
0.894768
0.325592
0
0.291667
0
0
0.016393
0
0
0
0
0
0
1
0.208333
false
0
0.125
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d75ec669dfc620aaaefd9ee6ffa0b75d16e42209
2,029
py
Python
tests/logger/check_logger.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
tests/logger/check_logger.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
tests/logger/check_logger.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Confluent Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.283582
81
0.699359
280
2,029
4.903571
0.467857
0.046613
0.032047
0.023307
0.062637
0.062637
0.062637
0.062637
0.062637
0
0
0.00691
0.215377
2,029
66
82
30.742424
0.855528
0.374569
0
0
0
0
0.007241
0
0
0
0
0
0.058824
1
0.205882
false
0
0.176471
0.029412
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
1
0
0
0
0
0
0
0
1
d766600ac591a726caf5047535ca5f091cf8d7ac
10,478
py
Python
Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py
ylunalin/amrex
5715b2fc8a77e0db17bfe7907982e29ec44811ca
[ "BSD-3-Clause-LBNL" ]
null
null
null
Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py
ylunalin/amrex
5715b2fc8a77e0db17bfe7907982e29ec44811ca
[ "BSD-3-Clause-LBNL" ]
null
null
null
Tutorials/SENSEI/Advection_AmrLevel/Exec/SingleVortex/sensei/render_iso_catalyst_3d.py
ylunalin/amrex
5715b2fc8a77e0db17bfe7907982e29ec44811ca
[ "BSD-3-Clause-LBNL" ]
1
2020-01-17T05:00:26.000Z
2020-01-17T05:00:26.000Z
from paraview.simple import * from paraview import coprocessing #-------------------------------------------------------------- # Code generated from cpstate.py to create the CoProcessor. # ParaView 5.4.1 64 bits #-------------------------------------------------------------- # Global screenshot output options imag...
44.777778
364
0.654132
954
10,478
7.137317
0.371069
0.008812
0.007049
0.005287
0.036422
0.02247
0.020708
0
0
0
0
0.095564
0.176083
10,478
233
365
44.969957
0.693154
0.317141
0
0.015748
1
0
0.071895
0.012516
0
0
0
0
0
1
0.03937
false
0
0.015748
0
0.181102
0
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
d7683f0603e42e3b0a2ea0473fd022c587fdae78
995
py
Python
performance/forms.py
linikerunk/tcc-people-analytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
null
null
null
performance/forms.py
linikerunk/tcc-people-analytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
1
2020-10-11T10:09:39.000Z
2020-10-11T10:09:39.000Z
performance/forms.py
linikerunk/TCC_PeopleAnalytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
null
null
null
""" This is a forms.py that helps to work on the payload of front-end """ from django import forms from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.contrib.auth.models import User from django.forms import ModelForm from django.forms.models import inlineformse...
27.638889
73
0.742714
114
995
6.394737
0.473684
0.096022
0.061728
0.09465
0.115226
0
0
0
0
0
0
0.00123
0.182915
995
36
74
27.638889
0.895449
0.121608
0
0.208333
0
0
0.031106
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
d76a161827a2e2c2e3a71fbfaf612214e039ac3b
1,188
py
Python
preprocess.py
austinben/ECE470
05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a
[ "MIT" ]
null
null
null
preprocess.py
austinben/ECE470
05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a
[ "MIT" ]
null
null
null
preprocess.py
austinben/ECE470
05b6c4c8b41a2c1d634560a0e5ce6af5e4adbc3a
[ "MIT" ]
null
null
null
import numpy as np import os import cv2 import imutils import numpy as np from keras.preprocessing import image from matplotlib import pyplot as plt def crop_image(img): #convert the images to greyscale and add a slight guassian blur gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) blurred = cv2.GaussianBlur(g...
34.941176
86
0.686027
182
1,188
4.428571
0.5
0.029777
0.034739
0.037221
0
0
0
0
0
0
0
0.037306
0.18771
1,188
34
87
34.941176
0.797927
0.234848
0
0.090909
0
0
0
0
0
0
0
0
0
1
0.045455
false
0
0.318182
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d76f76f73a1b4d94c460fbf42b33ff78ab858a28
8,668
py
Python
Pcolor_Peaks.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
null
null
null
Pcolor_Peaks.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
1
2015-04-18T14:47:49.000Z
2015-05-01T21:51:44.000Z
Pcolor_Peaks.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
null
null
null
from __future__ import division from netCDF4 import Dataset import glob,os.path import numpy as np import numpy.ma as ma from scipy.interpolate import UnivariateSpline from matplotlib import cm from matplotlib import ticker import matplotlib.pyplot as plt #import site #site.addsitedir('/tera/phil/nchaparr/SAM2/sam_main...
40.12963
210
0.53311
1,351
8,668
3.324204
0.174685
0.079047
0.11022
0.061456
0.452683
0.417502
0.362503
0.36228
0.34558
0.345357
0
0.049773
0.288417
8,668
215
211
40.316279
0.67834
0.121135
0
0.091743
0
0
0.036587
0.012005
0
0
0
0.004651
0
0
null
null
0
0.155963
null
null
0.027523
0
0
0
null
0
0
0
0
0
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
d7702a9b2e58db18587254af35a4b4199fcc47d0
1,386
py
Python
plio/sqlalchemy_json/alchemy.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
11
2018-02-01T02:56:26.000Z
2022-02-21T12:08:12.000Z
plio/sqlalchemy_json/alchemy.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
151
2016-06-15T21:31:37.000Z
2021-11-15T16:55:53.000Z
plio/sqlalchemy_json/alchemy.py
kaitlyndlee/plio
99f0852d8eb92efeba72f366077bd023a7da7cdd
[ "Unlicense" ]
21
2016-06-17T17:02:39.000Z
2021-03-08T20:47:50.000Z
# Third-party modules try: import simplejson as json except ImportError: import json import sqlalchemy from sqlalchemy.ext import mutable # Custom modules from . import track class NestedMutable(mutable.MutableDict, track.TrackedDict): """SQLAlchemy `mutable` extension dictionary with nested change tracking."...
27.176471
78
0.752525
166
1,386
6.180723
0.463855
0.054581
0.031189
0.046784
0.14425
0.093567
0.093567
0
0
0
0
0
0.152958
1,386
50
79
27.72
0.873935
0.287157
0
0
0
0
0
0
0
0
0
0
0
1
0.148148
false
0
0.222222
0.074074
0.740741
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d7815d2c4c1816fa3330d39ab973353055d555f9
4,073
py
Python
tests/test_graph.py
nokia/PyBGL
e9868361e5a3870b5247872a8c8c91a1c065fe84
[ "BSD-3-Clause" ]
11
2019-05-20T16:47:03.000Z
2021-12-17T10:24:22.000Z
tests/test_graph.py
nokia/PyBGL
e9868361e5a3870b5247872a8c8c91a1c065fe84
[ "BSD-3-Clause" ]
null
null
null
tests/test_graph.py
nokia/PyBGL
e9868361e5a3870b5247872a8c8c91a1c065fe84
[ "BSD-3-Clause" ]
3
2019-05-24T02:24:30.000Z
2020-03-17T09:55:40.000Z
#!/usr/bin/env pytest-3 # -*- coding: utf-8 -*- __author__ = "Marc-Olivier Buob" __maintainer__ = "Marc-Olivier Buob" __email__ = "marc-olivier.buob@nokia-bell-labs.com" __copyright__ = "Copyright (C) 2020, Nokia" __license__ = "BSD-3" from pybgl.graph import * from pybgl.graphviz import graph...
33.661157
76
0.532286
625
4,073
3.2896
0.112
0.100681
0.094844
0.072957
0.743191
0.695525
0.635214
0.423152
0.359436
0.344358
0
0.046022
0.311809
4,073
120
77
33.941667
0.687478
0.010803
0
0.480769
0
0
0.025087
0.00919
0
0
0
0
0.596154
1
0.048077
false
0
0.019231
0
0.067308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
d787a69ca7a5c43e3169025b3f9e4ad5662b526b
8,695
py
Python
16_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
16_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
16_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from pandas import DataFrame, Series import matplotlib.pyplot as plt num = np.array(['3.14','-2.7','30'], dtype=np.string_) #코드 이해 쉽게 : dtype=np.string_ # num=num.astype(int) # print(num) # ValueError: invalid literal for int() with base 10: '3.14' num=num.astype(float)....
24.287709
114
0.531685
1,389
8,695
3.326854
0.229662
0.009522
0.025968
0.024237
0.315516
0.279593
0.194979
0.176152
0.136334
0.136334
0
0.158157
0.308453
8,695
357
115
24.355742
0.610344
0.582404
0
0.245098
0
0
0.090559
0
0
0
0
0
0
1
0
false
0
0.04902
0
0.04902
0.539216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
d791857131ffb45651a77bad5f5ede0b6842e7f5
3,774
py
Python
unittests/unintary_tests.py
OneCricketeer/pysqoop
616199a8441d886ffcc4111445da3d0351401454
[ "MIT" ]
9
2019-06-17T19:21:22.000Z
2021-07-12T05:14:03.000Z
unittests/unintary_tests.py
OneCricketeer/pysqoop
616199a8441d886ffcc4111445da3d0351401454
[ "MIT" ]
5
2019-07-19T14:42:43.000Z
2020-08-06T16:55:05.000Z
unittests/unintary_tests.py
OneCricketeer/pysqoop
616199a8441d886ffcc4111445da3d0351401454
[ "MIT" ]
14
2019-06-05T16:50:27.000Z
2021-08-05T16:36:15.000Z
import unittest from pysqoop.SqoopImport import Sqoop class TestStringMethods(unittest.TestCase): def test_empty_sqoop(self): try: Sqoop() except Exception as e: self.assertEqual(str(e), 'all parameters are empty') def test_properties_not_empty(self): try: ...
51.69863
454
0.607578
439
3,774
5.045558
0.250569
0.02167
0.041084
0.056885
0.708352
0.67088
0.654176
0.572009
0.496163
0.457336
0
0.022997
0.239534
3,774
72
455
52.416667
0.74878
0.009539
0
0.278689
0
0.098361
0.388383
0.186563
0
0
0
0
0.098361
1
0.098361
false
0.098361
0.131148
0
0.245902
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ad032b910fb71a08f9b40c52e3ef58efd6aac044
368
py
Python
a4/decrypt/elliptic.py
fultonms/crypto
a3819e3e81b9f93b818a63382183c1804d2edacc
[ "MIT" ]
null
null
null
a4/decrypt/elliptic.py
fultonms/crypto
a3819e3e81b9f93b818a63382183c1804d2edacc
[ "MIT" ]
null
null
null
a4/decrypt/elliptic.py
fultonms/crypto
a3819e3e81b9f93b818a63382183c1804d2edacc
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description="Decrpyt a selection of text from a substitution cypher, with the provided key") parser.add_argument('cryptFile', metavar='encrypted', type=str, help='Path to the encrpyted text') parser.add_argument('keyFile', metavar='key', type=str, help='Path to the key ...
40.888889
125
0.766304
53
368
5.264151
0.622642
0.064516
0.121864
0.107527
0.143369
0.143369
0
0
0
0
0
0
0.111413
368
8
126
46
0.853211
0
0
0
0
0
0.410326
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1