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
f27da284fb08adf74d86dd8e8f29d14df88be92b
2,432
py
Python
apps/DBspeedTest/tsdb_copy_data.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
22
2015-06-03T06:28:27.000Z
2022-03-18T08:02:45.000Z
apps/DBspeedTest/tsdb_copy_data.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
14
2015-06-08T01:31:53.000Z
2020-08-30T02:19:15.000Z
apps/DBspeedTest/tsdb_copy_data.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
26
2015-05-12T09:33:55.000Z
2021-08-30T05:41:00.000Z
# -*- coding: utf-8 -*- # Author : jeonghoonkang , https://github.com/jeonghoonkang import time import datetime #import cx_Oracle import os import sys import requests import json import time, datetime import numpy as np import _mds_id import useTSDB import socket import csv url = "http://125.140.110....
26.150538
312
0.570724
294
2,432
4.418367
0.469388
0.023095
0.013857
0.018476
0.035412
0
0
0
0
0
0
0.156471
0.300987
2,432
92
313
26.434783
0.607647
0.212171
0
0.0625
0
0
0.092062
0.012679
0
0
0
0
0
0
null
null
0
0.1875
null
null
0.046875
0
0
0
null
0
0
0
0
0
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
f27ddac59c459f1a00f0dcd02d25ee0f0204adae
183
py
Python
hackerrank/PointsOnALine.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
3
2019-12-04T01:22:34.000Z
2020-12-10T15:31:00.000Z
hackerrank/PointsOnALine.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
null
null
null
hackerrank/PointsOnALine.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
1
2019-12-04T01:24:01.000Z
2019-12-04T01:24:01.000Z
n = int(input()) x, y = list(zip(*[tuple(input().split()) for _ in range(n)])) x = all(x[0] == a for a in x) y = all(y[0] == a for a in y) print("YES" if x or y else "NO")
20.333333
62
0.508197
40
183
2.3
0.525
0.043478
0.108696
0.130435
0.173913
0
0
0
0
0
0
0.014706
0.256831
183
8
63
22.875
0.661765
0
0
0
0
0
0.028571
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
f27e2b285d73484dd987d9f9d7fa5ee6d605aa96
572
py
Python
db/database.py
iliadmitriev/auth-fapi
a219efd5a8daa9d5f876355cde6b974021ca7890
[ "MIT" ]
null
null
null
db/database.py
iliadmitriev/auth-fapi
a219efd5a8daa9d5f876355cde6b974021ca7890
[ "MIT" ]
131
2021-09-29T06:07:18.000Z
2022-03-31T08:29:30.000Z
db/database.py
iliadmitriev/auth-fapi
a219efd5a8daa9d5f876355cde6b974021ca7890
[ "MIT" ]
null
null
null
from fastapi import FastAPI from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession from sqlalchemy.orm import sessionmaker from config import DATABASE_URL async def app_init_db(app: FastAPI): engine = create_async_engine(url=DATABASE_URL, echo=False, pool_size=50, pool_pre_ping=True) async_sess...
31.777778
102
0.788462
81
572
5.345679
0.469136
0.064665
0.078522
0
0
0
0
0
0
0
0
0.00404
0.134615
572
17
103
33.647059
0.870707
0
0
0
0
0
0
0
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
f282160019b104dfb6b563a02c261b4f7aa29e20
1,215
py
Python
flashcards/migrations/0001_initial.py
ubuntustan/nyumba-kumi
bb8c8b3159e16d6c246ff758764e858cfba3a864
[ "MIT" ]
null
null
null
flashcards/migrations/0001_initial.py
ubuntustan/nyumba-kumi
bb8c8b3159e16d6c246ff758764e858cfba3a864
[ "MIT" ]
null
null
null
flashcards/migrations/0001_initial.py
ubuntustan/nyumba-kumi
bb8c8b3159e16d6c246ff758764e858cfba3a864
[ "MIT" ]
null
null
null
# Generated by Django 2.2.18 on 2021-06-02 11:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Card_Set', fields=[ ...
34.714286
126
0.585185
126
1,215
5.507937
0.47619
0.064842
0.040346
0.063401
0.302594
0.227666
0.227666
0.227666
0.227666
0.227666
0
0.033105
0.279012
1,215
34
127
35.735294
0.759132
0.03786
0
0.37037
1
0
0.087404
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f28436452c56ebb22badded332ee2ec3bd6535e9
380
py
Python
main/migrations/0004_auto_20181105_2055.py
atomicbomber-git/teacher_clusterization_cmeans
73b2ca1b579fbb4ff91662a5c39af870465bff26
[ "MIT" ]
null
null
null
main/migrations/0004_auto_20181105_2055.py
atomicbomber-git/teacher_clusterization_cmeans
73b2ca1b579fbb4ff91662a5c39af870465bff26
[ "MIT" ]
null
null
null
main/migrations/0004_auto_20181105_2055.py
atomicbomber-git/teacher_clusterization_cmeans
73b2ca1b579fbb4ff91662a5c39af870465bff26
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-05 13:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0003_auto_20181105_2038'), ] operations = [ migrations.AlterField( model_name='dosen', name='nama', ...
20
50
0.592105
42
380
5.238095
0.857143
0
0
0
0
0
0
0
0
0
0
0.122677
0.292105
380
18
51
21.111111
0.695167
0.118421
0
0
1
0
0.108108
0.069069
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
f294135649d390d81ded077a590de5d0b88465de
350
py
Python
feed/urls.py
DeanBiton/JobSeeker
ed60ec1ab4a047700d72b44d7a042dd834e43abd
[ "MIT" ]
null
null
null
feed/urls.py
DeanBiton/JobSeeker
ed60ec1ab4a047700d72b44d7a042dd834e43abd
[ "MIT" ]
null
null
null
feed/urls.py
DeanBiton/JobSeeker
ed60ec1ab4a047700d72b44d7a042dd834e43abd
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.feed, name='feed'), path('post/<int:pk>/', views.PostDetailView.as_view(), name='post-detail'), path('post/<int:pk>/delete/', views.PostDeleteView.as_view(), name='post-delete'), path('post/new/', views.PostCreateView.as_v...
31.818182
86
0.668571
47
350
4.914894
0.446809
0.103896
0.12987
0.181818
0
0
0
0
0
0
0
0
0.12
350
10
87
35
0.75
0
0
0
0
0
0.231429
0.06
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
f295bf81624f804cd64d73c20b369edce6cc7cad
1,240
py
Python
client/nm/urls.py
mohwa/nm
295175c923ea33d3d1333e8d7788119eefb987f9
[ "MIT" ]
null
null
null
client/nm/urls.py
mohwa/nm
295175c923ea33d3d1333e8d7788119eefb987f9
[ "MIT" ]
null
null
null
client/nm/urls.py
mohwa/nm
295175c923ea33d3d1333e8d7788119eefb987f9
[ "MIT" ]
null
null
null
""" ntower URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
31.794872
77
0.709677
170
1,240
5.111765
0.435294
0.069045
0.017261
0.027618
0.134638
0.134638
0.086306
0
0
0
0
0.018393
0.166935
1,240
38
78
32.631579
0.822846
0.896774
0
0
0
0
0.108108
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f2b042cc04add871cfa8ee735e18394005aa5e79
3,068
py
Python
fcNN/datasets.py
sniafas/ML-Projects
ce3272130d5f73535bef0dcb09dc00aa932f2af2
[ "MIT" ]
1
2020-08-12T13:22:52.000Z
2020-08-12T13:22:52.000Z
fcNN/datasets.py
sniafas/ML-Projects
ce3272130d5f73535bef0dcb09dc00aa932f2af2
[ "MIT" ]
null
null
null
fcNN/datasets.py
sniafas/ML-Projects
ce3272130d5f73535bef0dcb09dc00aa932f2af2
[ "MIT" ]
1
2021-02-20T22:50:25.000Z
2021-02-20T22:50:25.000Z
import numpy as np import random def data_circle(num_samples, noise): """ Generates the two circles dataset with the given number of samples and noise :param num_samples: total number of samples :param noise: noise percentage (0 .. 50) :return: None """ radius = 5 def get_circle_label(...
35.264368
100
0.577249
476
3,068
3.628151
0.201681
0.104227
0.028952
0.049218
0.555298
0.498552
0.460915
0.460915
0.460915
0.390272
0
0.03902
0.281617
3,068
87
101
35.264368
0.744555
0.163625
0
0.409091
1
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0.022727
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f2b29c71f7f1c2ca3e062e7feb7a1beac4542178
584
py
Python
python/xviz_avs/builder/declarative_ui/video.py
EliotCao/xviz
57429ba8f76a8bb7ac0889d021a12e22a52f8e7e
[ "Apache-2.0" ]
851
2019-02-19T18:06:42.000Z
2022-01-17T03:04:23.000Z
python/xviz_avs/builder/declarative_ui/video.py
Smart-Ag/xviz
71c4470fdcb5c497793eb53666da6a5feb6832f0
[ "Apache-2.0" ]
291
2019-02-19T18:48:01.000Z
2022-01-17T03:03:59.000Z
python/xviz_avs/builder/declarative_ui/video.py
assalmeftahi/xviz
b9f05ade77b1fe4f0fd478e6075e4f62456ec6a0
[ "Apache-2.0" ]
221
2019-02-19T20:57:37.000Z
2022-01-20T08:43:01.000Z
from xviz_avs.builder.declarative_ui.base_ui_builder import XVIZBaseUiBuilder from xviz_avs.builder.declarative_ui.constants import UI_TYPES class XVIZVideoBuilder(XVIZBaseUiBuilder): def __init__(self, cameras, **kwargs): super().__init__(UI_TYPES.VIDEO, **kwargs) self._cameras = cameras ...
27.809524
77
0.684932
71
584
5.295775
0.464789
0.117021
0.058511
0.095745
0.164894
0.164894
0
0
0
0
0
0
0.22089
584
20
78
29.2
0.826374
0
0
0
0
0
0.075342
0
0
0
0
0
0
1
0.214286
false
0
0.142857
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
1
0
0
0
0
0
0
0
1
f2c24a7cb47c321ec51f408cd23646c6e7320c0f
2,243
py
Python
bulkSshRunner.py
cbabs/bulkSshRunner
85645f914c6bd969721d6a6e63a84f5708ad6f3f
[ "MIT" ]
null
null
null
bulkSshRunner.py
cbabs/bulkSshRunner
85645f914c6bd969721d6a6e63a84f5708ad6f3f
[ "MIT" ]
null
null
null
bulkSshRunner.py
cbabs/bulkSshRunner
85645f914c6bd969721d6a6e63a84f5708ad6f3f
[ "MIT" ]
1
2018-09-30T17:06:09.000Z
2018-09-30T17:06:09.000Z
import netmiko import time import getpass # This file is where all output is logged timestamp = time.ctime().replace(':', '.') # Open file with hosts hostList = open("hosts.txt").read().splitlines() # Open file with hosts cmdsList = open("sshCmds.txt").read().splitlines() # Check files for data if not...
24.648352
96
0.513598
222
2,243
5.121622
0.432432
0.03518
0.021108
0.029903
0.082674
0.036939
0
0
0
0
0
0.002817
0.366919
2,243
91
97
24.648352
0.797887
0.049487
0
0.076923
0
0
0.215513
0
0
0
0
0
0
1
0.057692
false
0.134615
0.057692
0
0.134615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4b31b619300716f2454ab6f1e9ab23dbab067bc4
1,548
py
Python
app.py
AlexJCM/firmadigital-tester-flask
84a965ffe519b84f46807f991d45d71fb222dd6b
[ "BSD-3-Clause" ]
null
null
null
app.py
AlexJCM/firmadigital-tester-flask
84a965ffe519b84f46807f991d45d71fb222dd6b
[ "BSD-3-Clause" ]
null
null
null
app.py
AlexJCM/firmadigital-tester-flask
84a965ffe519b84f46807f991d45d71fb222dd6b
[ "BSD-3-Clause" ]
null
null
null
import os from base64 import b64decode from flask import Flask, jsonify, request from flask_cors import CORS app = Flask(__name__) cors = CORS(app, resources={r"/static/*": {"origins": "*"}}) #CORS(app) @app.route('/') def index(): return "Hola mundo desde servico web rest con Flask!" @app.route('/rest', metho...
29.769231
126
0.686693
206
1,548
4.898058
0.446602
0.077304
0.074331
0.049554
0
0
0
0
0
0
0
0.010535
0.202842
1,548
51
127
30.352941
0.807131
0.248062
0
0
0
0
0.128139
0
0
0
0
0.019608
0
1
0.0625
false
0
0.125
0.03125
0.28125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
4b3adccdefcce4e0835dfdda779ad7553ad390cc
358
py
Python
virtual/lib/python3.6/site-packages/pylint/test/regrtest_data/descriptor_crash.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
463
2015-01-15T08:17:42.000Z
2022-03-28T15:10:20.000Z
virtual/lib/python3.6/site-packages/pylint/test/regrtest_data/descriptor_crash.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
52
2015-01-06T02:43:59.000Z
2022-03-14T11:15:21.000Z
virtual/lib/python3.6/site-packages/pylint/test/regrtest_data/descriptor_crash.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
249
2015-01-07T22:49:49.000Z
2022-03-18T02:32:06.000Z
# -*- coding: iso-8859-1 -*- import urllib class Page(object): _urlOpen = staticmethod(urllib.urlopen) def getPage(self, url): handle = self._urlOpen(url) data = handle.read() handle.close() return data #_getPage #Page if __name__ == "__main__": import sys p = Pa...
17.047619
43
0.592179
43
358
4.674419
0.627907
0
0
0
0
0
0
0
0
0
0
0.023077
0.273743
358
20
44
17.9
0.75
0.106145
0
0
0
0
0.025316
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
4b3afe320b9df39eef64790e3a4739e8b8179c60
436
py
Python
09-sm-endpoint-protobuf/work/proto.out/__init__.py
C24IO/SageMaker-Endpoints-Benchmark
1020f5aab494ed3e87c82959a60b9ad6091e6d84
[ "MIT" ]
null
null
null
09-sm-endpoint-protobuf/work/proto.out/__init__.py
C24IO/SageMaker-Endpoints-Benchmark
1020f5aab494ed3e87c82959a60b9ad6091e6d84
[ "MIT" ]
null
null
null
09-sm-endpoint-protobuf/work/proto.out/__init__.py
C24IO/SageMaker-Endpoints-Benchmark
1020f5aab494ed3e87c82959a60b9ad6091e6d84
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time from datetime import datetime # Get the seconds since epoch secondsSinceEpoch = time.time() # Convert seconds since epoch to struct_time timeObj = time.localtime(secondsSinceEpoch) # get the current timestamp elements from struct_time object i.e. print('Current TimeStamp is : %d-%d...
33.538462
151
0.770642
68
436
4.823529
0.514706
0.164634
0.036585
0.036585
0.018293
0
0
0
0
0
0
0
0.12156
436
13
151
33.538462
0.856397
0.355505
0
0
0
0
0.143885
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4b3c1a12529721ab1fdd6d99dd6852d0cc485f3a
803
py
Python
widgets/status.py
buzzsurfr/lbm
01799b966bc38ef109d14131c0100c794e6e74a2
[ "MIT" ]
null
null
null
widgets/status.py
buzzsurfr/lbm
01799b966bc38ef109d14131c0100c794e6e74a2
[ "MIT" ]
20
2016-05-09T11:22:20.000Z
2016-06-16T14:53:44.000Z
widgets/status.py
buzzsurfr/lbm
01799b966bc38ef109d14131c0100c794e6e74a2
[ "MIT" ]
null
null
null
from django.forms import HiddenInput from django.forms.utils import flatatt from django.utils import formats from django.utils.encoding import force_text from django.utils.html import format_html class StatusIconWidget(HiddenInput): object_type = None availability_status = None enabled_status = None status_descrip...
28.678571
72
0.755915
114
803
5.157895
0.377193
0.085034
0.076531
0
0
0
0
0
0
0
0
0
0.14944
803
27
73
29.740741
0.860908
0.068493
0
0
0
0
0.021477
0
0
0
0
0
0
1
0.095238
false
0
0.238095
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4b4c16243f2eaba707ed5c3650bd95f7c3520c29
1,405
py
Python
lambda_function.py
cloud-froggies/budget-validation
db0985919df8aff815497ef67d759464d11b109a
[ "MIT" ]
null
null
null
lambda_function.py
cloud-froggies/budget-validation
db0985919df8aff815497ef67d759464d11b109a
[ "MIT" ]
null
null
null
lambda_function.py
cloud-froggies/budget-validation
db0985919df8aff815497ef67d759464d11b109a
[ "MIT" ]
null
null
null
import json import pymysql import os import sys import logging from decimal import Decimal print('Loading function sophia') logger = logging.getLogger() logger.setLevel(logging.INFO) # Configuration Values endpoint = os.environ['db_endpoint'] username = os.environ['db_admin_user'] password = os.environ['db_admin_pa...
29.270833
108
0.671886
169
1,405
5.502959
0.508876
0.029032
0.035484
0.034409
0
0
0
0
0
0
0
0.00265
0.194306
1,405
47
109
29.893617
0.818905
0.014235
0
0
0
0
0.257598
0
0
0
0
0
0
1
0.030303
false
0.060606
0.181818
0
0.212121
0.212121
0
0
0
null
0
0
0
0
0
0
0
0
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
4b4d842a539dc5b4bf27f30d370f8cc4682da2bd
4,997
py
Python
sdk/scintilla/scripts/HFacer.py
psryland/rylogic_code
f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b
[ "CNRI-Python" ]
2
2020-11-11T16:19:04.000Z
2021-01-19T01:53:29.000Z
sdk/scintilla/scripts/HFacer.py
psryland/rylogic_code
f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b
[ "CNRI-Python" ]
1
2020-07-27T09:00:21.000Z
2020-07-27T10:58:10.000Z
sdk/scintilla/scripts/HFacer.py
psryland/rylogic_code
f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b
[ "CNRI-Python" ]
1
2021-04-04T01:39:55.000Z
2021-04-04T01:39:55.000Z
#!/usr/bin/env python3 # HFacer.py - regenerate the Scintilla.h and SciLexer.h files from the Scintilla.iface interface # definition file. # Implemented 2000 by Neil Hodgson neilh@scintilla.org # Requires Python 2.5 or later import sys import os import Face from FileGenerator import UpdateFile, Generate, Re...
36.474453
102
0.612367
661
4,997
4.574887
0.223903
0.095238
0.049603
0.049603
0.649802
0.619048
0.582011
0.529431
0.488757
0.488757
0
0.005749
0.19932
4,997
136
103
36.742647
0.750062
0.167501
0
0.615385
1
0
0.244128
0.005747
0
0
0
0
0
1
0.048077
false
0
0.038462
0
0.125
0.086538
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
4b5055920d09d9c08109b10a0e42cf49511d3396
365
py
Python
python/OpenDay.py
Mysterypancake1/GMod-Fun
d57e69f88691f679fbb3a1fb14eeb44466287cfc
[ "MIT" ]
24
2017-07-20T12:33:15.000Z
2022-03-09T06:13:13.000Z
python/OpenDay.py
Mysterypancake1/GMod-Fun
d57e69f88691f679fbb3a1fb14eeb44466287cfc
[ "MIT" ]
null
null
null
python/OpenDay.py
Mysterypancake1/GMod-Fun
d57e69f88691f679fbb3a1fb14eeb44466287cfc
[ "MIT" ]
8
2017-12-06T04:13:19.000Z
2020-05-25T13:01:01.000Z
print("hello") print("What is your name?") x = input() print("Hello,", x) print("Is life treating you well?") y = input() while "bye" not in y: if "school" in y: print("What's wrong with school?") y = input() elif "parents" in y: print("what's wrong with your parents") y = input() else: print("T...
22.8125
43
0.608219
59
365
3.762712
0.508475
0.108108
0.072072
0.108108
0.198198
0.198198
0.198198
0
0
0
0
0
0.227397
365
16
44
22.8125
0.787234
0
0
0.25
0
0
0.418033
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
4b590354f91a441d40fafb6b0212f1b666d8ac97
1,265
py
Python
sportability2shutterfly.py
pythonbag/scripts
811c47cb926776657e482132ec03fdbc6e52ba19
[ "Apache-2.0" ]
null
null
null
sportability2shutterfly.py
pythonbag/scripts
811c47cb926776657e482132ec03fdbc6e52ba19
[ "Apache-2.0" ]
null
null
null
sportability2shutterfly.py
pythonbag/scripts
811c47cb926776657e482132ec03fdbc6e52ba19
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # convert sportability.com player info to shutterfly.com format. # import sys import csv def pullContact(list,row,num): if row["Parent"+num+"_FirstName"] != "" and row["Parent1_LastName"] != "": key=row["Parent"+num+"_FirstName"]+row["Parent1_LastName"] if key not in list: ...
37.205882
79
0.557312
142
1,265
4.78169
0.394366
0.132548
0.17673
0.092784
0
0
0
0
0
0
0
0.004324
0.268775
1,265
33
80
38.333333
0.72973
0.141502
0
0
0
0
0.241667
0.019444
0
0
0
0
0
0
null
null
0
0.074074
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
4b6cd4a2ad66a3d1b31960755f3e07580ad484d5
2,647
py
Python
threatscrape/spiders/iana.py
threatlead/threatscrape
858d07b5e436d0ea24ddb2ef30aab5b2c104c865
[ "MIT" ]
null
null
null
threatscrape/spiders/iana.py
threatlead/threatscrape
858d07b5e436d0ea24ddb2ef30aab5b2c104c865
[ "MIT" ]
null
null
null
threatscrape/spiders/iana.py
threatlead/threatscrape
858d07b5e436d0ea24ddb2ef30aab5b2c104c865
[ "MIT" ]
null
null
null
import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from threatscrape.items import IanaTldItem import dateparser import idna import re from ipaddress import IPv4Address, IPv6Address, AddressValueError class IanaTldSpider(CrawlSpider): name = 'iana_tld' al...
41.359375
115
0.642614
327
2,647
5.125382
0.357798
0.0358
0.023866
0.0179
0.051313
0.051313
0
0
0
0
0
0.009337
0.231205
2,647
63
116
42.015873
0.814251
0.031356
0
0.074074
0
0.018519
0.142132
0.050371
0
0
0
0.015873
0
1
0.037037
false
0.018519
0.148148
0
0.407407
0
0
0
0
null
0
0
0
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
4b7181e0013f9278eb2727446382e76e7559fac5
3,004
py
Python
django/demo/urls.py
williamlagos/contents-web
516ed59a581afe5836c7cda6d39cc7ea6a725f55
[ "MIT" ]
null
null
null
django/demo/urls.py
williamlagos/contents-web
516ed59a581afe5836c7cda6d39cc7ea6a725f55
[ "MIT" ]
null
null
null
django/demo/urls.py
williamlagos/contents-web
516ed59a581afe5836c7cda6d39cc7ea6a725f55
[ "MIT" ]
null
null
null
from django.conf.urls import url,include from plethora.views import * urlpatterns = [ url(r'^spread$', init_spread), url(r'^spread/products', store_main), url(r'^spread/cancel', cancel), url(r'^spread/delivery', delivery), url(r'^spread/correios', mail), url(r'^spread/spreadable', spreadable), ...
35.761905
67
0.652463
371
3,004
5.247978
0.261456
0.123267
0.214689
0.029276
0.050334
0
0
0
0
0
0
0
0.150466
3,004
83
68
36.192771
0.762931
0.541278
0
0
0
0
0.272659
0.021723
0
0
0
0
0
1
0.029412
false
0
0.147059
0.029412
0.176471
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4b76ea2191b9ee7899f60741d3edce60dff4a76a
6,401
py
Python
tool_sdk/api/basic/disable_tool_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
tool_sdk/api/basic/disable_tool_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
tool_sdk/api/basic/disable_tool_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: disable_tool.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.protobu...
35.960674
482
0.753476
744
6,401
6.204301
0.189516
0.041594
0.050043
0.024263
0.50195
0.483969
0.463605
0.455373
0.438908
0.438908
0
0.033612
0.121544
6,401
177
483
36.163842
0.787302
0.058741
0
0.624161
1
0.006711
0.201795
0.143451
0
0
0
0
0
1
0
false
0
0.033557
0
0.033557
0
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
4b7aebb22b6efa9541b3beba5515c080311b1d5c
13,403
py
Python
Plugwise-2-web.py
easyball57/plugwise2py
384c2e5abbc287fd7b7ba583e47dc1ff5674ceb4
[ "Apache-2.0" ]
null
null
null
Plugwise-2-web.py
easyball57/plugwise2py
384c2e5abbc287fd7b7ba583e47dc1ff5674ceb4
[ "Apache-2.0" ]
null
null
null
Plugwise-2-web.py
easyball57/plugwise2py
384c2e5abbc287fd7b7ba583e47dc1ff5674ceb4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2014, 2015 Seven Watt <info@sevenwatt.com> # <http://www.sevenwatt.com> # # This file is part of Plugwise-2. # # Plugwise-2 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...
36.720548
142
0.58569
1,607
13,403
4.802116
0.258245
0.017623
0.014513
0.016328
0.239471
0.205909
0.16522
0.129195
0.129195
0.120902
0
0.011967
0.289264
13,403
364
143
36.821429
0.798131
0.159293
0
0.24031
0
0.003876
0.179026
0.022658
0
0
0
0.002747
0
0
null
null
0.007752
0.093023
null
null
0.007752
0
0
0
null
0
0
0
0
0
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
4b7b0a4b32c80aec17e2444cb2932dc2eace290f
3,148
py
Python
rabbit.py
VitorMob/Crypt-DES-based
df55ceac8035f4c74b5ddaed357ec96ee420768f
[ "BSD-3-Clause" ]
2
2021-03-31T04:16:04.000Z
2021-07-28T19:59:59.000Z
rabbit.py
VitorMob/Crypt-DES-based
df55ceac8035f4c74b5ddaed357ec96ee420768f
[ "BSD-3-Clause" ]
null
null
null
rabbit.py
VitorMob/Crypt-DES-based
df55ceac8035f4c74b5ddaed357ec96ee420768f
[ "BSD-3-Clause" ]
3
2021-03-31T01:21:36.000Z
2021-08-08T06:20:07.000Z
#!/usr/bin/python3 #coding: utf-8 # Libs import PySimpleGUI as sg from PySimpleGUI import * def Archives(): #Define the window´s contents sg.theme('DarkGrey3') #Rabbit-Archives layout2 = [ [sg.Image("./assets/toca.png")], [sg.Text("File-Name", size=(10,0), font='Courier 12', ba...
33.136842
124
0.555591
371
3,148
4.663073
0.374663
0.020809
0.024277
0.039884
0.141619
0.089017
0.065896
0.040462
0
0
0
0.029583
0.291296
3,148
94
125
33.489362
0.745406
0.088628
0
0.061538
0
0
0.365777
0
0
0
0
0
0
1
0.046154
false
0.123077
0.030769
0
0.076923
0.046154
0
0
0
null
0
0
0
0
0
0
0
0
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
4b80f85f9b436ca40c1ebedc8cb9f4dfab32748c
34,657
py
Python
Pandemic Warrior/main/Vaccines_gui.py
varunkm192002/Pandemic-Warrior
04481b74ebacb0086733a2084bbdf6dbb15c1d1f
[ "BSD-3-Clause" ]
null
null
null
Pandemic Warrior/main/Vaccines_gui.py
varunkm192002/Pandemic-Warrior
04481b74ebacb0086733a2084bbdf6dbb15c1d1f
[ "BSD-3-Clause" ]
null
null
null
Pandemic Warrior/main/Vaccines_gui.py
varunkm192002/Pandemic-Warrior
04481b74ebacb0086733a2084bbdf6dbb15c1d1f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Akshita.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGu...
41.406213
133
0.639957
3,988
34,657
5.514293
0.100552
0.158247
0.089855
0.11241
0.758629
0.677595
0.644445
0.567823
0.329362
0.300578
0
0.039381
0.213088
34,657
836
134
41.455742
0.766977
0.007848
0
0.437805
1
0
0.215929
0.037409
0
0
0
0
0
1
0.002439
false
0
0.002439
0
0.006098
0
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
4b8a82a2ffa9c7d8626edd9900293ac31772599e
2,357
py
Python
src/tests/t_u2u.py
val-verde/krb5
c1d6a9849367f5198cb3e071712376c008ced6d7
[ "MIT" ]
1
2015-05-14T22:15:04.000Z
2015-05-14T22:15:04.000Z
src/tests/t_u2u.py
val-verde/krb5
c1d6a9849367f5198cb3e071712376c008ced6d7
[ "MIT" ]
9
2020-05-13T16:28:13.000Z
2021-12-30T04:07:49.000Z
src/tests/t_u2u.py
frozencemetery/krb5
bb8fa495d00ccd931eec87a01b8920636cf7903e
[ "MIT" ]
4
2020-07-01T12:41:46.000Z
2022-01-26T03:05:30.000Z
from k5test import * realm = K5Realm(create_host=False) # Create a second user principal and get tickets for it. u2u_ccache = 'FILE:' + os.path.join(realm.testdir, 'ccu2u') realm.addprinc('alice', password('alice')) realm.kinit('alice', password('alice'), ['-c', u2u_ccache]) # Verify that -allow_dup_skey denies u2u ...
38.639344
77
0.658464
321
2,357
4.722741
0.339564
0.068602
0.055409
0.049472
0.395778
0.354222
0.266491
0.218997
0.117414
0.117414
0
0.025602
0.154858
2,357
60
78
39.283333
0.735442
0.161646
0
0.052632
0
0
0.287239
0
0
0
0
0
0
1
0
false
0.052632
0.026316
0
0.026316
0
0
0
0
null
0
0
0
0
0
0
0
0
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
4b8fbb5c5c1039c743a31ee2b845190e80d0ed9e
2,989
py
Python
pyforms/gui/Controls/ControlCheckBoxList.py
sunj1/my_pyforms
d92c37cbddb3ff34fe1ace3874e0116c09e7c0cf
[ "MIT" ]
null
null
null
pyforms/gui/Controls/ControlCheckBoxList.py
sunj1/my_pyforms
d92c37cbddb3ff34fe1ace3874e0116c09e7c0cf
[ "MIT" ]
null
null
null
pyforms/gui/Controls/ControlCheckBoxList.py
sunj1/my_pyforms
d92c37cbddb3ff34fe1ace3874e0116c09e7c0cf
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = "Ricardo Ribeiro" __credits__ = ["Ricardo Ribeiro"] __license__ = "MIT" __version__ = "0.0" __maintainer__ = "Ricardo Ribeiro" __email__ = "ricardojvr@gmail.com" __status__ = "Development" import pyforms.Utils.tools as tools from PyQ...
30.5
119
0.538976
280
2,989
5.557143
0.339286
0.056555
0.104113
0.032776
0.244859
0.190231
0.190231
0.190231
0.190231
0.190231
0
0.002574
0.220141
2,989
97
120
30.814433
0.664951
0.01907
0
0.278689
0
0
0.037706
0
0
0
0
0
0
0
null
null
0.016393
0.04918
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
4b9b28e67378fa98e12be503c3c2a1fb5a8132e6
6,762
py
Python
bin/p3movie.py
emkailu/PAT3DEM
74e7a0f30179e49ea5c7da1bea893e21a3ed601a
[ "MIT" ]
null
null
null
bin/p3movie.py
emkailu/PAT3DEM
74e7a0f30179e49ea5c7da1bea893e21a3ed601a
[ "MIT" ]
null
null
null
bin/p3movie.py
emkailu/PAT3DEM
74e7a0f30179e49ea5c7da1bea893e21a3ed601a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import argparse import subprocess import glob from EMAN2 import * def file_base(movie): # return the filename and basename, exclude '.p3' return movie, os.path.basename(os.path.splitext(movie)[0]).replace('.p3', '') def scale(movie, com_par): d=EMData(movie,0) if d["nx"...
43.070064
322
0.677019
1,083
6,762
4.074792
0.212373
0.043508
0.03467
0.014503
0.236121
0.164061
0.128257
0.126445
0.111036
0.111036
0
0.018046
0.147737
6,762
156
323
43.346154
0.747701
0.08814
0
0.124031
0
0.031008
0.284599
0
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.023256
0
0
0
null
0
0
0
0
0
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
4b9b3bb0f25265222d1085f893cea656665497c4
2,004
py
Python
lm_eval/tasks/piqa.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
4
2021-10-14T15:55:39.000Z
2021-12-15T14:44:08.000Z
lm_eval/tasks/piqa.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
null
null
null
lm_eval/tasks/piqa.py
yuvalkirstain/lm-evaluation-harness
bac26c85c991a310c8791213d186f713387cc0fd
[ "MIT" ]
null
null
null
import numpy as np from lm_eval.base import MultipleChoiceTask, rf from ..metrics import mean from .common import HFTask class PiQA(HFTask, MultipleChoiceTask): DATASET_PATH = "piqa" DATASET_NAME = None def has_training_docs(self): return True def has_validation_docs(self): return Tr...
26.368421
115
0.530938
231
2,004
4.463203
0.320346
0.061106
0.040737
0.064016
0.465567
0.465567
0.356935
0.310378
0.310378
0.310378
0
0.013838
0.31487
2,004
76
116
26.368421
0.737072
0.017964
0
0.413793
0
0.017241
0.145399
0.041179
0
0
0
0.013158
0
1
0.189655
false
0
0.068966
0.086207
0.534483
0
0
0
0
null
0
0
0
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
4b9dbe2e4a5ebbd211c33d09e06394ce3c041105
2,246
py
Python
reinhardt/tests/settings.py
momamene/django-gatekeeper
22236aac380f0f72cb02375bae5dcfe0bb1a4438
[ "MIT" ]
1
2019-08-22T00:17:44.000Z
2019-08-22T00:17:44.000Z
reinhardt/tests/settings.py
momamene/django-gatekeeper
22236aac380f0f72cb02375bae5dcfe0bb1a4438
[ "MIT" ]
21
2016-08-24T00:29:45.000Z
2021-11-15T17:47:32.000Z
reinhardt/tests/settings.py
momamene/django-gatekeeper
22236aac380f0f72cb02375bae5dcfe0bb1a4438
[ "MIT" ]
null
null
null
import environ env = environ.Env() # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '^uykg#pbpl*lv6(+5g-760)&b$3*=e@&w-r$^7f-i1k(!v7w4-' # SECURITY WA...
25.522727
71
0.695459
237
2,246
6.514768
0.506329
0.109456
0.055052
0.064767
0.081606
0.081606
0.081606
0.044041
0
0
0
0.012814
0.166073
2,246
87
72
25.816092
0.811532
0.231968
0
0
0
0.019608
0.586982
0.50355
0
0
0
0
0
1
0
false
0
0.019608
0
0.019608
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ba0c3a22bbd51ad31faea27e4ea340592f6bd69
796
py
Python
0551-0600/0594-LongestHarmoniousSubsequence/LongestHarmoniousSubsequence.py
Sun-Zhen/leetcode
57fe0de95881255393e0d6817e75bfae8f5744dc
[ "Apache-2.0" ]
3
2018-04-12T05:13:52.000Z
2018-04-15T05:11:51.000Z
0551-0600/0594-LongestHarmoniousSubsequence/LongestHarmoniousSubsequence.py
Sun-Zhen/leetcode
57fe0de95881255393e0d6817e75bfae8f5744dc
[ "Apache-2.0" ]
null
null
null
0551-0600/0594-LongestHarmoniousSubsequence/LongestHarmoniousSubsequence.py
Sun-Zhen/leetcode
57fe0de95881255393e0d6817e75bfae8f5744dc
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ @author: Alden @email: sunzhenhy@gmail.com @date: 2018/4/18 @version: 1.0.0.0 """ class Solution(object): def findLHS(self, nums): """ :type nums: List[int] :rtype: int """ temp_dict = dict() for v in nums: temp_dict[v] = temp_...
24.121212
62
0.494975
125
796
2.976
0.368
0.172043
0.072581
0.112903
0.225806
0.225806
0.225806
0.225806
0.225806
0.225806
0
0.073077
0.346734
796
32
63
24.875
0.642308
0.032663
0
0
0
0
0.013008
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
4ba19956c068aa817e58db2f300639d454398454
262
py
Python
Beginner/URI_1151.py
rbshadow/Python_URI
4f7df8cdea0eba5c550bb3016b1a7ab6dc723d56
[ "MIT" ]
3
2016-10-24T13:26:45.000Z
2020-10-12T17:44:00.000Z
Beginner/URI_1151.py
rbshadow/Python_URI
4f7df8cdea0eba5c550bb3016b1a7ab6dc723d56
[ "MIT" ]
null
null
null
Beginner/URI_1151.py
rbshadow/Python_URI
4f7df8cdea0eba5c550bb3016b1a7ab6dc723d56
[ "MIT" ]
null
null
null
def math(): i_put = int(input()) a = 0 b = 1 for i in range(i_put): if i == (i_put-1): print(a, end='') else: print(a, end=' ') a, b = b, a + b print() if __name__ == '__main__': math()
14.555556
29
0.39313
38
262
2.421053
0.5
0.130435
0.195652
0
0
0
0
0
0
0
0
0.02027
0.435115
262
17
30
15.411765
0.601351
0
0
0.153846
0
0
0.034351
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.230769
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4ba514d1d41c2baa3715467db9adb2119600eda7
1,135
py
Python
hospital/migrations/0003_charges_medicines.py
Shreyashm16/Hospital-Appointment-and-Information-System
929b7eb22cc6a0399e6fff3c7012d1c65d7c47cb
[ "MIT" ]
7
2021-07-15T08:59:58.000Z
2021-12-29T20:21:36.000Z
hospital/migrations/0003_charges_medicines.py
siddharth25pandey/Hospital-Information-Appointment-System
1df5edd1f0dc2f0f385e7195db221027b4f64efb
[ "MIT" ]
null
null
null
hospital/migrations/0003_charges_medicines.py
siddharth25pandey/Hospital-Information-Appointment-System
1df5edd1f0dc2f0f385e7195db221027b4f64efb
[ "MIT" ]
4
2021-05-11T08:36:02.000Z
2021-08-08T11:45:11.000Z
# Generated by Django 3.1.5 on 2021-04-30 10:29 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hospital', '0002_patadmit_roomcharges'), ] operations = [ migrations.CreateModel( name='Medicin...
34.393939
147
0.576211
106
1,135
6.075472
0.528302
0.037267
0.043478
0.068323
0.245342
0.245342
0.245342
0.245342
0.245342
0.245342
0
0.02583
0.2837
1,135
32
148
35.46875
0.766298
0.039648
0
0.384615
1
0
0.119485
0.022978
0
0
0
0
0
1
0
false
0
0.076923
0
0.192308
0
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
4babdb94913d2c17ee47d7dc0b2b4edfabe89d4b
247
py
Python
examples/toapi-pic/items/pixabay.py
davidthewatson/toapi
5f77ffa7a53692bcf9f14919a1aa435bf0152bd4
[ "Apache-2.0" ]
null
null
null
examples/toapi-pic/items/pixabay.py
davidthewatson/toapi
5f77ffa7a53692bcf9f14919a1aa435bf0152bd4
[ "Apache-2.0" ]
null
null
null
examples/toapi-pic/items/pixabay.py
davidthewatson/toapi
5f77ffa7a53692bcf9f14919a1aa435bf0152bd4
[ "Apache-2.0" ]
null
null
null
from toapi import Item, XPath class Pixabay(Item): __base_url__ = 'https://pixabay.com/' img = XPath('//a//img/@src') class Meta: source = XPath('//div[@class="item"]') route = {'/pic/?q=:key': '/zh/photos/?q=:key'}
22.454545
54
0.558704
33
247
4.030303
0.69697
0.06015
0
0
0
0
0
0
0
0
0
0
0.214575
247
10
55
24.7
0.685567
0
0
0
0
0
0.336032
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4bae79e6492452ae2fe71916eb1e1de2f99f8755
7,843
py
Python
accounts/tests/test_forms.py
risha700/django-accounts
161fe35fe55c94c33812bbf3c1da7beb59a96524
[ "BSD-3-Clause" ]
null
null
null
accounts/tests/test_forms.py
risha700/django-accounts
161fe35fe55c94c33812bbf3c1da7beb59a96524
[ "BSD-3-Clause" ]
null
null
null
accounts/tests/test_forms.py
risha700/django-accounts
161fe35fe55c94c33812bbf3c1da7beb59a96524
[ "BSD-3-Clause" ]
null
null
null
import django from django.contrib.auth import get_user_model from django.test import override_settings, TestCase, Client, RequestFactory from django.urls import reverse from accounts.forms import UserRegistrationForm, LoginForm, TokenVerificationForm, PhoneVerificationForm from accounts.views import verify_phone, acti...
47.246988
113
0.673084
854
7,843
5.977752
0.168618
0.033301
0.038786
0.042311
0.666797
0.572968
0.560039
0.508913
0.486386
0.486386
0
0.037437
0.209869
7,843
165
114
47.533333
0.786348
0.01326
0
0.5
0
0
0.131919
0.002716
0
0
0
0
0.178571
1
0.128571
false
0.057143
0.064286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4bba3f2c9f9aaa3fe59aca95b3fa1783d9e7baf2
2,000
py
Python
pixelpuncher/npc/migrations/0008_auto_20160807_0335.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
pixelpuncher/npc/migrations/0008_auto_20160807_0335.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
pixelpuncher/npc/migrations/0008_auto_20160807_0335.py
ej2/pixelpuncher
8dd31090252c00772932c78ea21438d1e979f722
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-08-07 03:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('item', '0017_container_description'), ('player', '0023...
35.087719
129
0.5945
191
2,000
6.031414
0.408377
0.072917
0.119792
0.140625
0.488715
0.488715
0.454861
0.368056
0.368056
0.368056
0
0.037216
0.2745
2,000
56
130
35.714286
0.75672
0.0325
0
0.44898
1
0
0.171325
0.050725
0
0
0
0
0
1
0
false
0
0.061224
0
0.122449
0
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
4bc1b3bf9c9f9ed2356b9a70051d27f67ccc94e3
640
py
Python
oidc_provider/migrations/0029_auto_20200310_1442.py
MediaMonksForks/django-oidc-provider
36872e5aa463175e25b03da2e375e778784d3664
[ "MIT" ]
null
null
null
oidc_provider/migrations/0029_auto_20200310_1442.py
MediaMonksForks/django-oidc-provider
36872e5aa463175e25b03da2e375e778784d3664
[ "MIT" ]
null
null
null
oidc_provider/migrations/0029_auto_20200310_1442.py
MediaMonksForks/django-oidc-provider
36872e5aa463175e25b03da2e375e778784d3664
[ "MIT" ]
null
null
null
# Generated by Django 2.0.9 on 2020-03-10 14:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('oidc_provider', '0028_jwttoken_jti'), ] operations = [ migrations.AlterModelOptions( name='jwttoken', options={'verb...
26.666667
96
0.60625
68
640
5.529412
0.691176
0.087766
0.058511
0.074468
0
0
0
0
0
0
0
0.051836
0.276563
640
23
97
27.826087
0.760259
0.070313
0
0.117647
1
0
0.202361
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4bc2cc84638193e7a2185909898071fdaa78d1ef
2,389
py
Python
pyExperiment/utils.py
emmanuellebeau/pyExperiment
d9c205e26a164d4b3472d121e0e4e89965130524
[ "BSD-2-Clause" ]
1
2018-09-24T14:05:42.000Z
2018-09-24T14:05:42.000Z
pyExperiment/utils.py
emmanuellebeau/pyExperiment
d9c205e26a164d4b3472d121e0e4e89965130524
[ "BSD-2-Clause" ]
11
2018-09-20T10:50:48.000Z
2018-11-13T11:30:15.000Z
pyExperiment/utils.py
emmanuellebeau/pyExperiment
d9c205e26a164d4b3472d121e0e4e89965130524
[ "BSD-2-Clause" ]
3
2018-10-23T14:40:10.000Z
2021-11-14T03:17:29.000Z
from psychopy import gui, visual, event, core import sys, logging, os """ A selection of experiment classes """ def shutdown(class_obj): print('Aborted by user!') class_obj.win.close() core.quit() def get_keypress(class_obj): keys = event.getKeys() if keys: if keys[0] in ['lctrl', 'rctrl'...
29.134146
78
0.593554
318
2,389
4.339623
0.446541
0.04058
0.023188
0.027536
0.018841
0.018841
0
0
0
0
0
0.013699
0.297195
2,389
82
79
29.134146
0.808219
0.202595
0
0.04
0
0
0.061443
0.011838
0
0
0
0.012195
0.02
1
0.1
false
0
0.04
0
0.22
0.02
0
0
0
null
0
0
0
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
2991b28cc36808a6b165bb2101f1df393934786b
1,845
py
Python
flask_example/app.py
b3g00d/flask_example
a87457b826257c6aba921c77942e3a84c8f62273
[ "Apache-2.0" ]
null
null
null
flask_example/app.py
b3g00d/flask_example
a87457b826257c6aba921c77942e3a84c8f62273
[ "Apache-2.0" ]
null
null
null
flask_example/app.py
b3g00d/flask_example
a87457b826257c6aba921c77942e3a84c8f62273
[ "Apache-2.0" ]
null
null
null
import os import click from flask import Flask from flask_example.extensions import ( migrate, db ) from flask_example.models import ExampleBase def create_app(env_name=None, blueprints=None): SETTINGS_PATH = os.path.join( os.path.dirname(os.path.abspath(__file__)), 'config.py' ) ...
22.228916
57
0.678049
228
1,845
5.258772
0.311404
0.06005
0.032527
0.040033
0
0
0
0
0
0
0
0.002088
0.221138
1,845
82
58
22.5
0.832289
0
0
0.080645
0
0
0.056369
0.012466
0
0
0
0
0
1
0.209677
false
0.032258
0.096774
0.016129
0.33871
0.112903
0
0
0
null
0
0
0
0
0
0
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
2998facc61de86ea8abf72d08f996fd850b9291c
1,797
py
Python
png_2_nii_loop.py
meltemiatay/neurohack_dl_gan
a6a0850f4101aa8229ee173dff15e1df9c616f8a
[ "MIT" ]
null
null
null
png_2_nii_loop.py
meltemiatay/neurohack_dl_gan
a6a0850f4101aa8229ee173dff15e1df9c616f8a
[ "MIT" ]
null
null
null
png_2_nii_loop.py
meltemiatay/neurohack_dl_gan
a6a0850f4101aa8229ee173dff15e1df9c616f8a
[ "MIT" ]
null
null
null
""" This script loads png images of single slices from one participants and, using the png_2_nii_GANversion.py script, converts them back into nifti file format relying on the information found in the original nifti file header. """ import os import glob import re import numpy as np import subprocess base_path_in...
29.95
224
0.724541
288
1,797
4.284722
0.34375
0.097245
0.063209
0.055105
0.597245
0.367099
0.224473
0.200972
0.200972
0.200972
0
0.029987
0.146355
1,797
59
225
30.457627
0.774446
0
0
0.176471
0
0
0.217978
0.150562
0
0
0
0
0
0
null
null
0
0.147059
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
2999090a0c895361d0f50cb0e2aa31cc945b6ea4
550
py
Python
setup.py
JoTsaiCN/PageAuto
a164635cb182474afa4ba372e0fbefc6bd68a507
[ "Apache-2.0" ]
null
null
null
setup.py
JoTsaiCN/PageAuto
a164635cb182474afa4ba372e0fbefc6bd68a507
[ "Apache-2.0" ]
null
null
null
setup.py
JoTsaiCN/PageAuto
a164635cb182474afa4ba372e0fbefc6bd68a507
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup from setuptools import find_packages setup( name="PageAuto", version="0.0.1", description="An easy way to automate web app with selenium.", long_description=open("README.md", encoding="utf8").read(), author="Jo Tsai", author_email="joecai199...
25
65
0.650909
66
550
5.333333
0.757576
0.079545
0.113636
0
0
0
0
0
0
0
0
0.02027
0.192727
550
21
66
26.190476
0.772523
0.038182
0
0
0
0
0.324478
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
299dfd52506503b4fe30e5ae5ec9be64064b1769
2,619
py
Python
Python/binary-tree-preorder-traversal.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/binary-tree-preorder-traversal.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/binary-tree-preorder-traversal.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(n) # Space: O(1) # # Given a binary tree, return the preorder traversal of its nodes' values. # # For example: # Given binary tree {1,#,2,3}, # 1 # \ # 2 # / # 3 # return [1,2,3]. # # Note: Recursive solution is trivial, could you do it iteratively? # # Definition for a binary tree node...
24.707547
74
0.504773
301
2,619
4.358804
0.259136
0.053354
0.00686
0.016768
0.108232
0.089939
0.051829
0
0
0
0
0.014375
0.38908
2,619
105
75
24.942857
0.805625
0.140512
0
0.206349
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.015873
0
0
0
null
0
0
0
0
0
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
299f5ab560c5b1c0520a74b0aa550c012dae8e9e
470
py
Python
mlib/container_script.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
1
2020-06-16T17:26:45.000Z
2020-06-16T17:26:45.000Z
mlib/container_script.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
mlib/container_script.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import ClassVar from mlib.file import File @dataclass class ContainerBashScript: FINISH_STR: ClassVar[str] = '__DNN_IS_FINISHED__' name: str bashscript_str: str def __post_init__(self): from mlib.open_mind import OM_MOUNT txt = f''' ...
22.380952
53
0.66383
61
470
4.819672
0.52459
0.054422
0
0
0
0
0
0
0
0
0
0
0.251064
470
20
54
23.5
0.835227
0
0
0
0
0
0.273504
0.102564
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
299f74264a39121dd13615ecfbca9274ae045969
2,397
py
Python
test_app.py
Apoorv13/vul_report_generator
6ad61dba59c66f2a01f082dae1cf63d318640f21
[ "MIT" ]
null
null
null
test_app.py
Apoorv13/vul_report_generator
6ad61dba59c66f2a01f082dae1cf63d318640f21
[ "MIT" ]
null
null
null
test_app.py
Apoorv13/vul_report_generator
6ad61dba59c66f2a01f082dae1cf63d318640f21
[ "MIT" ]
null
null
null
import pandas as pd import os from flask import Flask, render_template, request from werkzeug import secure_filename from flask.ext.pymongo import PyMongo, MongoClient app = Flask(__name__) app.config['MONGO_DBNAME'] = 'report_helper' app.config['MONGO_URI'] = 'mongodb://localhost:27017/report_helper' mongo...
34.73913
68
0.587401
260
2,397
5.203846
0.357692
0.097561
0.070953
0.031042
0
0
0
0
0
0
0
0.008966
0.302044
2,397
69
69
34.73913
0.799761
0
0
0
0
0
0.256223
0.016738
0
0
0
0
0
0
null
null
0
0.080645
null
null
0.322581
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
29a22e30115c33f84204f8a92fa1dc179fcc392b
1,033
py
Python
0x0F-python-object_relational_mapping/5-filter_cities.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x0F-python-object_relational_mapping/5-filter_cities.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x0F-python-object_relational_mapping/5-filter_cities.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 """ script that takes in the name of a state as an argument and lists all cities of that state, using the database hbtn_0e_4_usa """ from sys import argv import MySQLdb if __name__ == '__main__': my_user = argv[1] my_pass = argv[2] my_db = argv[3] name_s = argv[4] ...
22.955556
72
0.556631
144
1,033
3.8125
0.465278
0.10929
0.071038
0.040073
0.043716
0
0
0
0
0
0
0.018625
0.324298
1,033
44
73
23.477273
0.767908
0.138432
0
0
0
0
0.026406
0
0
0
0
0
0
1
0
false
0.068966
0.068966
0
0.068966
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
29aa76428e38da3f5a5547734743e9aefb58fbe0
7,855
py
Python
StarTrailMovementv1.py
gfurlich/StarTrails
4ce9c04621f0dc1699257281c6e49d2419be575a
[ "MIT" ]
null
null
null
StarTrailMovementv1.py
gfurlich/StarTrails
4ce9c04621f0dc1699257281c6e49d2419be575a
[ "MIT" ]
null
null
null
StarTrailMovementv1.py
gfurlich/StarTrails
4ce9c04621f0dc1699257281c6e49d2419be575a
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' File : StarTrailMovementv1.py Author : Greg Furlich Date Created : 12/30/2017 Purpose : A python script simulate star trails for a random array of positions for <n_stars> around a randomly positioned rotational axis. The stars are then rotated for a length of a <rotation_angle>. A image of ea...
28.154122
316
0.705156
1,252
7,855
4.227636
0.229233
0.071415
0.031173
0.028339
0.184206
0.139241
0.098621
0.02116
0.011336
0.011336
0
0.021765
0.157734
7,855
278
317
28.255396
0.778265
0.341948
0
0.095652
0
0
0.100653
0.02567
0
0
0
0
0
0
null
null
0
0.06087
null
null
0.052174
0
0
0
null
0
0
0
0
0
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
29b0fed58139e94a49aa6e76decfa0ef51d4f98a
5,306
py
Python
py/runner.py
co60ca/EmotionNet
7d151e9e768db0a68b379597b2fb14be1468987f
[ "MIT" ]
63
2016-05-03T03:55:10.000Z
2022-03-07T06:34:15.000Z
py/runner.py
co60ca/EmotionNet
7d151e9e768db0a68b379597b2fb14be1468987f
[ "MIT" ]
null
null
null
py/runner.py
co60ca/EmotionNet
7d151e9e768db0a68b379597b2fb14be1468987f
[ "MIT" ]
23
2016-09-22T01:18:01.000Z
2021-11-28T11:04:19.000Z
# The MIT License (MIT) # # Copyright (c) 2016 Maeve Kennedy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mod...
34.907895
101
0.663211
721
5,306
4.800277
0.377254
0.026004
0.013869
0.013869
0.055475
0.040451
0.040451
0.040451
0.040451
0.040451
0
0.019951
0.234829
5,306
151
102
35.139073
0.832512
0.37467
0
0.121951
0
0
0.083278
0.025753
0
0
0
0
0
0
null
null
0
0.073171
null
null
0.012195
0
0
0
null
0
0
0
0
0
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
29b8156e2367493c2a881e854b153f7f30227da9
678
py
Python
kara/validator/substring_validator.py
genvia/kara
0b3f8975fc816e64100cd845c36998ac77eace6c
[ "BSD-2-Clause" ]
null
null
null
kara/validator/substring_validator.py
genvia/kara
0b3f8975fc816e64100cd845c36998ac77eace6c
[ "BSD-2-Clause" ]
1
2021-03-31T19:03:57.000Z
2021-03-31T19:03:57.000Z
kara/validator/substring_validator.py
genvia/kara
0b3f8975fc816e64100cd845c36998ac77eace6c
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from kara.common import karaerror from kara.validator.validator import Validator from kara.validator.validator import register_validator @register_validator class SubStringValidator(Validator): prefix = '~' prefix_len = len(prefix) def is_supported(self, obj, cond, t...
30.818182
95
0.684366
92
678
4.956522
0.456522
0.052632
0.074561
0.114035
0.241228
0
0
0
0
0
0
0.013333
0.225664
678
21
96
32.285714
0.855238
0.09882
0
0
0
0
0.001645
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0.153846
0.769231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
29c7b57518e2f7bf6c5aeffcde9099f81a370c56
8,319
py
Python
homes_for_sale/migrations/0001_initial.py
Xtuden-com/django-property
6656d469a5d06c103a34c2e68b9f1754413fb3ba
[ "MIT" ]
null
null
null
homes_for_sale/migrations/0001_initial.py
Xtuden-com/django-property
6656d469a5d06c103a34c2e68b9f1754413fb3ba
[ "MIT" ]
null
null
null
homes_for_sale/migrations/0001_initial.py
Xtuden-com/django-property
6656d469a5d06c103a34c2e68b9f1754413fb3ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-24 07:15 from __future__ import unicode_literals from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion import django.db.models.manager class Migration(migrat...
51.03681
150
0.567857
793
8,319
5.773014
0.21942
0.050459
0.058978
0.078637
0.573176
0.549148
0.515291
0.496505
0.496505
0.477283
0
0.016283
0.283928
8,319
162
151
51.351852
0.752224
0.008174
0
0.441558
1
0
0.160766
0
0
0
0
0
0
1
0
false
0
0.038961
0
0.064935
0
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
29c88ce560790a3bddb76fdef6c31b5e3f4c654e
1,518
py
Python
conanfile.py
ikeyan/conan-cpp_redis
5245f4bb30d8c64fbe942b298227c010ad820597
[ "MIT" ]
null
null
null
conanfile.py
ikeyan/conan-cpp_redis
5245f4bb30d8c64fbe942b298227c010ad820597
[ "MIT" ]
null
null
null
conanfile.py
ikeyan/conan-cpp_redis
5245f4bb30d8c64fbe942b298227c010ad820597
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools import os class CppRedisConan(ConanFile): name = "cpp_redis" version = "master" url = "https://github.com/ikeyan/conan-cpp_redis" license = "MIT" description = "C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform."...
37.02439
114
0.610013
195
1,518
4.646154
0.420513
0.05298
0.046358
0.039735
0.181015
0.181015
0.077263
0.077263
0
0
0
0.005051
0.217391
1,518
40
115
37.95
0.757576
0.166667
0
0
0
0.035714
0.3152
0.0208
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.535714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
29cdb7a2c16dc48990e546d078427d4d6025167d
2,194
py
Python
src/general_utils/mysql_management/mysql_tables/stock_data_table.py
Freitacr/ML-StockAnalysisProject
37411c1204ecf69040ba2a1658013e4bf71eef9d
[ "MIT" ]
null
null
null
src/general_utils/mysql_management/mysql_tables/stock_data_table.py
Freitacr/ML-StockAnalysisProject
37411c1204ecf69040ba2a1658013e4bf71eef9d
[ "MIT" ]
6
2018-01-05T16:42:09.000Z
2021-03-18T00:20:18.000Z
src/general_utils/mysql_management/mysql_tables/stock_data_table.py
Freitacr/ML-StockAnalysisProject
37411c1204ecf69040ba2a1658013e4bf71eef9d
[ "MIT" ]
1
2021-03-21T04:49:51.000Z
2021-03-21T04:49:51.000Z
from typing import List, Iterable, Any, Optional from general_utils.mysql_management import mysql_data_manipulator from general_utils.mysql_management.mysql_utils import mysql_table_abc from general_utils.mysql_management.mysql_utils import mysql_decorators from general_utils.mysql_management.mysql_utils import m...
42.192308
97
0.688696
263
2,194
5.353612
0.262357
0.099432
0.106534
0.071023
0.254972
0.15483
0.110795
0.110795
0.110795
0
0
0
0.231996
2,194
51
98
43.019608
0.835608
0
0
0.097561
0
0
0.076062
0
0
0
0
0
0
1
0.121951
false
0.097561
0.121951
0
0.268293
0
0
0
0
null
0
0
0
0
0
0
0
0
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
29ce9a0c6050022a36fc95ed93250a68ed649b9f
578
py
Python
app/web.py
hfeixas/interview-buddy
c4c662c5c6971eb1eb6e0154a48357a2351cac92
[ "MIT" ]
null
null
null
app/web.py
hfeixas/interview-buddy
c4c662c5c6971eb1eb6e0154a48357a2351cac92
[ "MIT" ]
null
null
null
app/web.py
hfeixas/interview-buddy
c4c662c5c6971eb1eb6e0154a48357a2351cac92
[ "MIT" ]
null
null
null
import json import flask import yaml app = flask.Flask(__name__) def db_load(): data = yaml.safe_load(open("database/questions.yaml")) return data @app.get("/") def test(): """Basic Home Route Page""" return flask.render_template("index.html") @app.get("/api/topics") def topics(): """Topics""" ...
18.645161
58
0.643599
76
578
4.671053
0.460526
0.050704
0.050704
0
0
0
0
0
0
0
0
0
0.183391
578
30
59
19.266667
0.752119
0.065744
0
0
0
0
0.127863
0.043893
0
0
0
0
0
1
0.190476
false
0
0.142857
0
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
29db4bed13f321a3ba9c2a5532e2dcff2ff8681b
528
py
Python
q4.py
qadeerassan/python-data-structures-I-a4
00b5367a95391725a11a72f4f91429b4b1f61cef
[ "MIT" ]
null
null
null
q4.py
qadeerassan/python-data-structures-I-a4
00b5367a95391725a11a72f4f91429b4b1f61cef
[ "MIT" ]
null
null
null
q4.py
qadeerassan/python-data-structures-I-a4
00b5367a95391725a11a72f4f91429b4b1f61cef
[ "MIT" ]
null
null
null
""" ---------------------------------------------------- q4.py pq_combine ---------------------------------------------------- Author: Qadeer Assan ID: 160257370 Email: assa7370@mylaurier.ca _updated_="2018-02-01" ---------------------------------------------------- """ from asgn04 import pq_combine from pr...
21.12
53
0.488636
55
528
4.563636
0.654545
0.10757
0
0
0
0
0
0
0
0
0
0.083333
0.136364
528
24
54
22
0.467105
0.496212
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
29e089ad506aefce2d42bbc498b5b9cec8f53997
4,441
py
Python
src/apps/desktop_client.py
pykanet/pykanet
12e5a267ae815fb17c37871bd04c66e121602e51
[ "MIT" ]
null
null
null
src/apps/desktop_client.py
pykanet/pykanet
12e5a267ae815fb17c37871bd04c66e121602e51
[ "MIT" ]
null
null
null
src/apps/desktop_client.py
pykanet/pykanet
12e5a267ae815fb17c37871bd04c66e121602e51
[ "MIT" ]
2
2019-03-08T14:51:02.000Z
2019-03-08T15:43:28.000Z
''' Main Screen of the client interface ''' from kivy.uix.label import Label from kivy.uix.boxlayout import BoxLayout from kivy.uix.screenmanager import ScreenManager, Screen, NoTransition from kivy.lang import Builder from kivy.properties import BooleanProperty, StringProperty from apps.login_client import Log...
29.606667
95
0.536366
394
4,441
5.873096
0.317259
0.05618
0.060501
0.043215
0.282627
0.210026
0.10847
0.055315
0.055315
0
0
0.005247
0.399234
4,441
149
96
29.805369
0.862069
0.06395
0
0.438596
0
0
0.8479
0.058909
0
0
0
0.006711
0
1
0
false
0.008772
0.087719
0
0.122807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
29eb441580d808c95fa7e49833eea4ca7a115a99
1,642
py
Python
Preprocess/uri2label.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
Preprocess/uri2label.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
null
null
null
Preprocess/uri2label.py
houzw/knowledge-base-data
60771e8bf300227e1a26c9e77f56b09d23acd64a
[ "MIT" ]
1
2018-12-17T06:40:53.000Z
2018-12-17T06:40:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: houzhiwei # time: 2019/9/10 22:42 from owlready2 import * from os import path # <owl:imports rdf:resource="http://data.ordnancesurvey.co.uk/ontology/geometry/"/> # <owl:imports rdf:resource="http://www.egc.org/ont/base/props"/> # <owl:imports rdf:resource="http:/...
37.318182
83
0.710719
241
1,642
4.709544
0.414938
0.079295
0.103084
0.16652
0.348899
0.29163
0.219383
0.219383
0.219383
0.186784
0
0.020791
0.091961
1,642
43
84
38.186047
0.740443
0.503654
0
0
0
0
0.06391
0.031328
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.190476
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
29ed0a770f4f58f23645f3368244d11c373d2d1b
5,979
py
Python
yocto/poky/bitbake/lib/toaster/bldcontrol/sshbecontroller.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
2
2019-03-27T08:11:14.000Z
2020-02-22T20:40:24.000Z
yocto/poky/bitbake/lib/toaster/bldcontrol/sshbecontroller.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
39
2016-08-23T11:23:28.000Z
2017-04-07T08:00:52.000Z
yocto/poky/bitbake/lib/toaster/bldcontrol/sshbecontroller.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
1
2021-09-10T18:44:30.000Z
2021-09-10T18:44:30.000Z
# # ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- # # BitBake Toaster Implementation # # Copyright (C) 2014 Intel Corporation # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # pub...
37.603774
185
0.661147
743
5,979
5.257066
0.336474
0.039939
0.028674
0.026882
0.276242
0.225038
0.165387
0.150538
0.150538
0.134921
0
0.00762
0.231811
5,979
158
186
37.841772
0.842804
0.150694
0
0.197917
0
0
0.068864
0
0
0
0
0
0.114583
0
null
null
0.010417
0.104167
null
null
0.03125
0
0
0
null
0
0
0
0
0
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
29f2ba7b76e78bbc037f1e79e8cd574abd3f0d6d
350
py
Python
working-with-data/part2/replace.py
LucasHelal/data-science
9b243be1dea23a521e6ebb49dc358708a9b17dbd
[ "MIT" ]
null
null
null
working-with-data/part2/replace.py
LucasHelal/data-science
9b243be1dea23a521e6ebb49dc358708a9b17dbd
[ "MIT" ]
null
null
null
working-with-data/part2/replace.py
LucasHelal/data-science
9b243be1dea23a521e6ebb49dc358708a9b17dbd
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from pandas import Series, DataFrame # Lets make Series ser1 = Series([1, 2, 3, 4, 1, 2, 3, 4]) # Using replace we can select --> .replace(value to be replaced, new_value) ser1.replace(1, np.nan) # Can also input lists ser1.replace([1, 4], [100, 400]) # Can also input diction...
21.875
75
0.691429
62
350
3.887097
0.532258
0.136929
0.024896
0.033195
0
0
0
0
0
0
0
0.076389
0.177143
350
15
76
23.333333
0.760417
0.394286
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
29f9f8e6902a96bea04c2a803465522891160e85
4,322
py
Python
slappsim/Function.py
pacslab/SLAppMdlOpt
2ebfd97d78014c92b101b0806b2000d4ac40c31e
[ "MIT" ]
1
2022-03-09T02:08:13.000Z
2022-03-09T02:08:13.000Z
slappsim/Function.py
pacslab/SLAppMdlOpt
2ebfd97d78014c92b101b0806b2000d4ac40c31e
[ "MIT" ]
null
null
null
slappsim/Function.py
pacslab/SLAppMdlOpt
2ebfd97d78014c92b101b0806b2000d4ac40c31e
[ "MIT" ]
null
null
null
import math import uuid from functools import partial from slappsim.Petri import * class FunctionStart(Place): def __init__(self): Place.__init__(self, holding=None) self.label = 'FunctionStart' class FunctionEnd(Place): def __init__(self): Place.__init__(self, holding=None) ...
30.43662
115
0.621009
573
4,322
4.518325
0.21815
0.03708
0.025492
0.02163
0.245268
0.215141
0.183469
0.183469
0.138277
0.103515
0
0.004806
0.277881
4,322
141
116
30.652482
0.824736
0.263304
0
0.179487
0
0
0.01732
0
0
0
0
0
0.012821
1
0.205128
false
0.025641
0.051282
0.038462
0.448718
0
0
0
0
null
0
0
0
0
0
0
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
4b00ded5aa557e8c3ab62ac0b7e2828bc8f5781f
3,431
py
Python
archived/scripts/parse_vendor.py
forquare/freebsd-port-helpers
004f401f5a7c601f2f9344ff3ca18c031d2bee0e
[ "BSD-2-Clause" ]
null
null
null
archived/scripts/parse_vendor.py
forquare/freebsd-port-helpers
004f401f5a7c601f2f9344ff3ca18c031d2bee0e
[ "BSD-2-Clause" ]
null
null
null
archived/scripts/parse_vendor.py
forquare/freebsd-port-helpers
004f401f5a7c601f2f9344ff3ca18c031d2bee0e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python2.7 import sys import os import json def f5(seq, idfun=None): # order preserving if idfun is None: def idfun(x): return x seen = {} result = [] for item in seq: marker = idfun(item) # in old Python versions: # if seen.has_key(marker) # but in new ...
28.591667
71
0.409793
325
3,431
4.307692
0.28
0.051429
0.028571
0.023571
0.247143
0.221429
0.21
0.21
0.155714
0.114286
0
0.015667
0.460507
3,431
119
72
28.831933
0.740681
0.057418
0
0.322581
0
0
0.124613
0
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.096774
0
0
0
null
0
0
0
0
0
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
4b015c7f4fb2fa7eff8225fbeb51b53f24a4f6b4
9,727
py
Python
tests/test_sendmail.py
bmwiedemann/aiosmtplib
9f273c83136506e3f1bcbe698520614960137805
[ "MIT" ]
null
null
null
tests/test_sendmail.py
bmwiedemann/aiosmtplib
9f273c83136506e3f1bcbe698520614960137805
[ "MIT" ]
null
null
null
tests/test_sendmail.py
bmwiedemann/aiosmtplib
9f273c83136506e3f1bcbe698520614960137805
[ "MIT" ]
null
null
null
""" SMTP.sendmail and SMTP.send_message method testing. """ import copy import pytest from aiosmtplib import ( SMTPNotSupported, SMTPRecipientsRefused, SMTPResponseException, SMTPStatus, ) pytestmark = pytest.mark.asyncio() async def test_sendmail_simple_success(smtp_client, smtpd_server, message)...
29.837423
87
0.678318
1,108
9,727
5.713899
0.127256
0.10109
0.056863
0.060022
0.764018
0.706839
0.674143
0.631654
0.600221
0.570526
0
0.009577
0.2271
9,727
325
88
29.929231
0.832535
0.008327
0
0.578261
0
0
0.062541
0.011794
0
0
0.001082
0
0.226087
1
0
false
0
0.013043
0
0.013043
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
4b02e14ef60c1b594c00e03d5622dac49fd346b7
2,962
py
Python
syhelpers/encoding.py
larrycameron80/outis
ef9b720fa12e8e0748a826354f138eabc33747fe
[ "MIT" ]
129
2017-04-29T23:13:37.000Z
2022-02-22T03:24:02.000Z
syhelpers/encoding.py
larrycameron80/outis
ef9b720fa12e8e0748a826354f138eabc33747fe
[ "MIT" ]
1
2017-09-15T21:06:28.000Z
2017-09-19T16:55:11.000Z
syhelpers/encoding.py
larrycameron80/outis
ef9b720fa12e8e0748a826354f138eabc33747fe
[ "MIT" ]
51
2017-04-29T22:01:24.000Z
2021-09-09T03:55:52.000Z
import math import hashlib import base64 from syhelpers.log import print_error def xor_encode(text, key): """ XOR the given text input with the specified key. text must be bytes, key must be string, result is bytes, sorry... """ # noinspection PyTypeChecker return b"".join(bytes([ord(x) ^ y]...
23.322835
103
0.611411
423
2,962
4.271868
0.307329
0.022136
0.053127
0.024903
0.294964
0.254012
0.149419
0.080797
0.059768
0.059768
0
0.039683
0.27684
2,962
126
104
23.507937
0.803922
0.386901
0
0.098039
0
0
0.098411
0
0
0
0
0.015873
0
1
0.176471
false
0
0.078431
0
0.490196
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
1
0
0
0
0
0
0
0
0
0
0
1
4b0913e9f7686f2fa8ded27e8db52ad0fc9187cc
478
py
Python
constant.py
mzrwalzy/NJUPTCatsFlask
15b5c9ffe19b1f8e825d888c0eb75e07ca0b9999
[ "MIT" ]
null
null
null
constant.py
mzrwalzy/NJUPTCatsFlask
15b5c9ffe19b1f8e825d888c0eb75e07ca0b9999
[ "MIT" ]
null
null
null
constant.py
mzrwalzy/NJUPTCatsFlask
15b5c9ffe19b1f8e825d888c0eb75e07ca0b9999
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # @Time : 2021/9/29 16:39 # @Author : Charon. MYSQL_USER = 'root' MYSQL_PASSWORD = 'Mzr81555651' MYSQL_HOST = 'sh-cynosdbmysql-grp-km8956l2.sql.tencentcdb.com' MYSQL_PORT = '20386' MYSQL_DATABASE = 'cats' MYSQL_URI = f'mysql+pymysql://{MYSQL_USER}:{MYSQL_PASSWORD}@{MYSQL_HOST}:{MYSQL_PORT...
28.117647
116
0.656904
71
478
4.225352
0.690141
0.04
0
0
0
0
0
0
0
0
0
0.093976
0.131799
478
16
117
29.875
0.628916
0.142259
0
0
0
0
0.460591
0.364532
0
0
0
0
0
1
0
false
0.222222
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4b0a5abae2e474b509cc25cc17747a78a6fb563d
1,771
py
Python
eecs-online-server/homework/migrations/0001_initial.py
luhc228/eecs-online-test
72cbe3d238b26c3ee4d03fbde59c1e34f4fc29cd
[ "MIT" ]
4
2020-01-09T05:10:30.000Z
2020-10-18T07:14:51.000Z
eecs-online-server/homework/migrations/0001_initial.py
luhc228/eecs-online
72cbe3d238b26c3ee4d03fbde59c1e34f4fc29cd
[ "MIT" ]
14
2019-12-02T10:53:06.000Z
2022-03-12T00:09:05.000Z
eecs-online-server/homework/migrations/0001_initial.py
luhc228/eecs-online-test
72cbe3d238b26c3ee4d03fbde59c1e34f4fc29cd
[ "MIT" ]
4
2019-11-02T08:34:45.000Z
2019-12-10T13:10:05.000Z
# Generated by Django 2.2.6 on 2019-12-12 22:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Homework', fields=[ ...
37.680851
120
0.549972
168
1,771
5.636905
0.386905
0.050686
0.133052
0.105597
0.4868
0.458289
0.390708
0.390708
0.390708
0.390708
0
0.026764
0.303783
1,771
46
121
38.5
0.741281
0.025409
0
0.461538
1
0
0.134571
0.013341
0
0
0
0
0
1
0
false
0
0.051282
0
0.153846
0
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
4b0c34abc1192d99710c7fd86cbe58f893773cce
573
py
Python
setup.py
ShakataGaNai/pygrape
f879cf7a3fce3cc3aad76eef74b41e68e0e9e956
[ "MIT" ]
26
2018-04-16T00:36:40.000Z
2021-01-11T02:58:36.000Z
setup.py
ShakataGaNai/pygrape
f879cf7a3fce3cc3aad76eef74b41e68e0e9e956
[ "MIT" ]
1
2018-04-16T05:29:44.000Z
2018-04-16T05:29:44.000Z
setup.py
ShakataGaNai/pygrape
f879cf7a3fce3cc3aad76eef74b41e68e0e9e956
[ "MIT" ]
3
2018-04-16T04:00:41.000Z
2019-07-29T02:28:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- try: # Use setuptools if available, for install_requires (among other things). from setuptools import setup except ImportError: from distutils.core import setup setup( name='pygrape', packages=['pygrape'], version='1.1', description='pygrape is...
27.285714
87
0.692845
70
573
5.628571
0.785714
0.055838
0
0
0
0
0
0
0
0
0
0.031646
0.172775
573
20
88
28.65
0.799578
0.198953
0
0
0
0
0.379386
0.050439
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
4b1abdec75b3966b242a27f527e8577150361953
2,956
py
Python
simhash.py
memosstilvi/simhash
052457acf6ee9d4ec9316e94a6b071c7da00f8a2
[ "MIT" ]
22
2015-08-24T15:32:38.000Z
2022-01-19T09:04:15.000Z
simhash.py
memosstilvi/simhash
052457acf6ee9d4ec9316e94a6b071c7da00f8a2
[ "MIT" ]
3
2018-04-14T09:35:24.000Z
2022-03-28T10:39:31.000Z
simhash.py
memosstilvi/simhash
052457acf6ee9d4ec9316e94a6b071c7da00f8a2
[ "MIT" ]
3
2017-11-05T11:47:28.000Z
2020-09-12T22:20:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import re from hashlib import md5 import sys class Token: def __init__(self, hash_list, weight): self.hash_list = hash_list self.weight = weight def tokenize(doc): """ Lower case, remove punctuation and split in spaces """ doc = doc.l...
28.980392
85
0.612652
439
2,956
3.972665
0.343964
0.037271
0.010321
0.009174
0.053899
0.030963
0
0
0
0
0
0.02754
0.287551
2,956
101
86
29.267327
0.80057
0.03383
0
0
0
0
0.010385
0
0
0
0
0
0
0
null
null
0
0.057692
null
null
0.019231
0
0
0
null
0
0
0
0
0
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
4b24b10b0b8a8af0798f4cb270886ea97182e1e4
642
py
Python
hunter.py
aliluyala/PocHunter
ff2d7e745eabd81ffb77920fe00813b17fc432cf
[ "MIT" ]
95
2016-07-05T12:44:25.000Z
2022-01-24T09:16:44.000Z
hunter.py
sigma-random/PocHunter
ff2d7e745eabd81ffb77920fe00813b17fc432cf
[ "MIT" ]
2
2016-10-24T09:35:24.000Z
2017-07-28T08:50:31.000Z
hunter.py
sigma-random/PocHunter
ff2d7e745eabd81ffb77920fe00813b17fc432cf
[ "MIT" ]
39
2016-06-13T07:47:39.000Z
2020-11-26T00:53:48.000Z
#!/usr/bin/env python # coding=utf-8 # author=dave.fang@outlook.com # create=20160520 from lib.poc_launcher import PocLauncher """ * Author Dave * Version 1.0 * 测试用例 """ if __name__ == '__main__': pl = PocLauncher() pl.verify('http://127.0.0.1/', 'beebeeto', 'discuz_x3_0_xss.py') pl.verify('h...
33.789474
102
0.663551
103
642
3.825243
0.563107
0.101523
0.152284
0.190355
0.28934
0.28934
0.28934
0.243655
0.142132
0
0
0.09009
0.135514
642
18
103
35.666667
0.61982
0.121495
0
0
0
0
0.562
0.266
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
4b24cd75211f197f67378a889cf591091ab0dd5e
1,985
py
Python
app/__init__.py
mark-solo/flask-mg_ttrl
9b9bd749aeaeeb88628a64b75ab9854bdd23eb5f
[ "MIT" ]
null
null
null
app/__init__.py
mark-solo/flask-mg_ttrl
9b9bd749aeaeeb88628a64b75ab9854bdd23eb5f
[ "MIT" ]
1
2022-03-08T21:09:38.000Z
2022-03-08T21:09:38.000Z
app/__init__.py
mark-solo/flask-mg_ttrl
9b9bd749aeaeeb88628a64b75ab9854bdd23eb5f
[ "MIT" ]
null
null
null
from flask import Flask, request, current_app from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager from flask_bootstrap import Bootstrap from flask_moment import Moment from flask_babel import Babel from flask_babel import lazy_gettext...
28.768116
90
0.780856
290
1,985
5.151724
0.3
0.048193
0.040161
0.058902
0.087015
0.049531
0.049531
0.049531
0
0
0
0.003998
0.117884
1,985
69
91
28.768116
0.849229
0.026196
0
0
0
0.018519
0.10668
0.012429
0
0
0
0
0
1
0.037037
false
0
0.314815
0.018519
0.388889
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
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
4b256d4ec8e017d95fa3eaee6b898625d572cc28
13,354
py
Python
shells/generic_terraform_service/src/data_model.py
oleksandr-r-q/CloudShell-Terraform-Shell
8d331cf8eebeae794e4e73a3c70af8064bafa434
[ "Apache-2.0" ]
4
2021-11-26T05:41:05.000Z
2022-03-11T20:01:40.000Z
shells/generic_terraform_service/src/data_model.py
oleksandr-r-q/CloudShell-Terraform-Shell
8d331cf8eebeae794e4e73a3c70af8064bafa434
[ "Apache-2.0" ]
10
2021-07-14T05:19:54.000Z
2021-11-02T05:37:48.000Z
shells/generic_terraform_service/src/data_model.py
oleksandr-r-q/CloudShell-Terraform-Shell
8d331cf8eebeae794e4e73a3c70af8064bafa434
[ "Apache-2.0" ]
1
2021-11-01T07:46:59.000Z
2021-11-01T07:46:59.000Z
from cloudshell.shell.core.driver_context import ResourceCommandContext, AutoLoadDetails, AutoLoadAttribute, \ AutoLoadResource from collections import defaultdict class LegacyUtils(object): def __init__(self): self._datamodel_clss_dict = self.__generate_datamodel_classes_dict() def migrate_autol...
36.189702
298
0.652613
1,467
13,354
5.74165
0.143149
0.068147
0.101033
0.08548
0.427876
0.340021
0.255135
0.194942
0.148522
0.084768
0
0.003242
0.260971
13,354
368
299
36.288043
0.850238
0.172982
0
0.104972
0
0
0.153854
0.002302
0
0
0
0
0
1
0.248619
false
0.005525
0.016575
0.01105
0.41989
0
0
0
0
null
0
0
0
0
0
0
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
d99b595ac6fbadcc16220af4b37777daff8d6bdb
388
py
Python
src/evalg/genprog/util.py
lschlessinger1/MS-project
e1c02d1d1a7a2480ff6f14f30625dc42ee3417e3
[ "MIT" ]
2
2019-04-29T15:18:11.000Z
2019-12-13T18:58:40.000Z
src/evalg/genprog/util.py
lschlessinger1/MS-project
e1c02d1d1a7a2480ff6f14f30625dc42ee3417e3
[ "MIT" ]
275
2019-02-19T22:59:39.000Z
2020-10-03T08:56:08.000Z
src/evalg/genprog/util.py
lschlessinger1/MS-project
e1c02d1d1a7a2480ff6f14f30625dc42ee3417e3
[ "MIT" ]
null
null
null
from typing import Callable, List from src.evalg.encoding import BinaryTree def check_binary_trees(f: Callable) -> Callable: def wrapper(self, parents: List[BinaryTree]): if not all(isinstance(parent, BinaryTree) for parent in parents): raise TypeError('all parents must be of type %s' % Binar...
29.846154
83
0.708763
51
388
5.27451
0.647059
0.081784
0
0
0
0
0
0
0
0
0
0
0.208763
388
12
84
32.333333
0.876222
0
0
0
0
0
0.07732
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
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
d99e932912e474a94325bcb6860f17967317b39e
1,698
py
Python
yoapi/extensions/__init__.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
1
2021-12-17T03:25:34.000Z
2021-12-17T03:25:34.000Z
yoapi/extensions/__init__.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
null
null
null
yoapi/extensions/__init__.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Extensions for flask. We collect all the extensions to increase visibility into extension development. How do you know if a third-party library needs to be written as a flask extension? The common theme it becomes a requirement when said library requires configuration, such as an API key o...
32.037736
78
0.690813
221
1,698
5.20362
0.425339
0.07913
0.073913
0.090435
0.111304
0.05913
0
0
0
0
0
0.000764
0.229093
1,698
52
79
32.653846
0.877769
0.457008
0
0
0
0
0.043919
0
0
0
0
0
0
1
0.25
false
0
0.05
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
1
0
0
0
0
0
0
0
1
d99fef22c5cbabc05ce911d16e36d5f238ba3995
18,608
py
Python
test/dialect/mssql/test_engine.py
pexip/os-sqlalchemy
904728e26b3068dd8f243e27f4c274deb46aaca4
[ "MIT" ]
null
null
null
test/dialect/mssql/test_engine.py
pexip/os-sqlalchemy
904728e26b3068dd8f243e27f4c274deb46aaca4
[ "MIT" ]
null
null
null
test/dialect/mssql/test_engine.py
pexip/os-sqlalchemy
904728e26b3068dd8f243e27f4c274deb46aaca4
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 from sqlalchemy import Column from sqlalchemy import engine_from_config from sqlalchemy import event from sqlalchemy import exc from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import Table from sqlalchemy import testing from sqlalchemy.dialects.mssql import adodbapi f...
31.379427
79
0.550623
1,838
18,608
5.387378
0.198041
0.021208
0.023632
0.019996
0.525651
0.427489
0.399616
0.359422
0.334175
0.285902
0
0.034234
0.343831
18,608
592
80
31.432432
0.77674
0.0158
0
0.352
0
0
0.221366
0.13224
0
0
0
0
0.02
1
0.074
false
0.056
0.044
0.004
0.158
0
0
0
0
null
0
0
0
0
0
0
0
0
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
d9a19a9c760612baa334c56c56146e91f6a7f4ed
214
py
Python
docs/src/options/prompt/tutorial002.py
dmontagu/typer
9009a8d40cb6cf2228403a787a87fae7e3aadf7d
[ "MIT" ]
2
2020-06-25T05:46:17.000Z
2021-12-13T05:38:00.000Z
docs/src/options/prompt/tutorial002.py
dmontagu/typer
9009a8d40cb6cf2228403a787a87fae7e3aadf7d
[ "MIT" ]
null
null
null
docs/src/options/prompt/tutorial002.py
dmontagu/typer
9009a8d40cb6cf2228403a787a87fae7e3aadf7d
[ "MIT" ]
null
null
null
import typer def main( name: str, lastname: str = typer.Option(..., prompt="Please tell me your last name"), ): typer.echo(f"Hello {name} {lastname}") if __name__ == "__main__": typer.run(main)
16.461538
78
0.626168
29
214
4.344828
0.655172
0
0
0
0
0
0
0
0
0
0
0
0.21028
214
12
79
17.833333
0.745562
0
0
0
0
0
0.280374
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9a32cb7837d09880dec85abb7680c497aeee165
30,447
py
Python
components/life_support.py
BTCallahan/super-ds9
0649cea1b0b2c6fdc64095b228c537c54e42f84e
[ "MIT" ]
null
null
null
components/life_support.py
BTCallahan/super-ds9
0649cea1b0b2c6fdc64095b228c537c54e42f84e
[ "MIT" ]
null
null
null
components/life_support.py
BTCallahan/super-ds9
0649cea1b0b2c6fdc64095b228c537c54e42f84e
[ "MIT" ]
null
null
null
from __future__ import annotations from math import ceil, floor from random import uniform from typing import TYPE_CHECKING, Dict, List from components.starship_system import StarshipSystem from data_globals import PRECISION_SCANNING_VALUES from get_config import CONFIG_OBJECT import colors from global_functions impor...
50.492537
176
0.382731
2,326
30,447
4.714961
0.118229
0.061639
0.039573
0.03009
0.566791
0.450625
0.391994
0.338014
0.294611
0.264794
0
0.015209
0.57027
30,447
602
177
50.576412
0.82299
0.027983
0
0.39726
0
0.00274
0.067243
0.011416
0
0
0
0
0
1
0.032877
false
0
0.030137
0.010959
0.087671
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
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
d9a63d7cbbb09d810f4315db1de721c1280bdade
399
py
Python
experiments/messaging/zmq/zmq_req.py
chartbeat-labs/wade
91923ed10bee4b2f084b156b31d4e4700bf2326c
[ "Apache-2.0" ]
16
2016-01-27T22:07:51.000Z
2020-04-26T01:23:05.000Z
experiments/messaging/zmq/zmq_req.py
chartbeat-labs/wade
91923ed10bee4b2f084b156b31d4e4700bf2326c
[ "Apache-2.0" ]
4
2016-02-03T22:00:39.000Z
2016-02-29T18:33:02.000Z
experiments/messaging/zmq/zmq_req.py
chartbeat-labs/wade
91923ed10bee4b2f084b156b31d4e4700bf2326c
[ "Apache-2.0" ]
4
2016-01-27T22:30:09.000Z
2019-02-17T02:02:18.000Z
import zmq if __name__ == '__main__': context = zmq.Context() socket = context.socket(zmq.REQ) #socket = context.socket(zmq.DEALER) socket.connect('tcp://localhost:12345') num = 200000 for i in xrange(num): # REQ socket.send("hello") socket.recv() # DEALER ...
22.166667
48
0.581454
46
399
4.826087
0.521739
0.175676
0.171171
0.198198
0
0
0
0
0
0
0
0.037931
0.273183
399
17
49
23.470588
0.727586
0.273183
0
0
0
0
0.119298
0.073684
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
d9a847a0b9e9dec0ac5c52d3981d90c0e4df6fe4
784
py
Python
insta/forms.py
shack1234/Instagram
f5fd55b1ef85ecfbe55ba40964f67f4c9ed07ed4
[ "MIT" ]
null
null
null
insta/forms.py
shack1234/Instagram
f5fd55b1ef85ecfbe55ba40964f67f4c9ed07ed4
[ "MIT" ]
4
2020-06-06T01:12:23.000Z
2021-09-08T02:06:45.000Z
insta/forms.py
shack1234/Instagram
f5fd55b1ef85ecfbe55ba40964f67f4c9ed07ed4
[ "MIT" ]
null
null
null
from django import forms from .models import Image, Profile, Comments from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SignupForm(UserCreationForm): email = forms.EmailField(max_length=200, help_text='Required') class Meta: model = User fi...
30.153846
71
0.667092
85
784
6.117647
0.458824
0.069231
0.107692
0.132692
0.161538
0
0
0
0
0
0
0.008078
0.210459
784
26
72
30.153846
0.831987
0
0
0.181818
0
0
0.136306
0
0
0
0
0
0
1
0
false
0.045455
0.181818
0
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
d9aa1ac3b963f29f3bc1ef97efafc069991c9de4
1,223
py
Python
agate/aggregations/mode.py
timgates42/agate
6152feae83d48ab36e62d4ee5a434bb1ae1bdff5
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
agate/aggregations/mode.py
timgates42/agate
6152feae83d48ab36e62d4ee5a434bb1ae1bdff5
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
agate/aggregations/mode.py
timgates42/agate
6152feae83d48ab36e62d4ee5a434bb1ae1bdff5
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
#!/usr/bin/env python from collections import defaultdict from agate.aggregations.base import Aggregation from agate.aggregations.has_nulls import HasNulls from agate.data_types import Number from agate.exceptions import DataTypeError from agate.warns import warn_null_calculation class Mode(Aggregation): """ ...
26.586957
93
0.681112
158
1,223
5.088608
0.43038
0.087065
0.087065
0.049751
0.10199
0.10199
0.10199
0.10199
0
0
0
0.001068
0.234669
1,223
45
94
27.177778
0.857906
0.107931
0
0.08
0
0
0.054358
0
0
0
0
0
0
1
0.16
false
0
0.24
0.04
0.52
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9ab4bdf56a08523b086a65816b4c4a05f07e8e4
443
py
Python
playstore/gplay/apishell.py
markraemer/mH-PriSe
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
[ "MIT" ]
1
2016-12-02T06:50:44.000Z
2016-12-02T06:50:44.000Z
playstore/gplay/apishell.py
markraemer/mH-PriSe
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
[ "MIT" ]
null
null
null
playstore/gplay/apishell.py
markraemer/mH-PriSe
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
[ "MIT" ]
null
null
null
#!/usr/bin/python # Do not remove GOOGLE_LOGIN = GOOGLE_PASSWORD = AUTH_TOKEN = None BANNER = """ Google Play Unofficial API Interactive Shell Successfully logged in using your Google account. The variable 'api' holds the API object. Feel free to use help(api). """ import code from googleplay import GooglePlayAPI ...
23.315789
90
0.778781
63
443
5.365079
0.68254
0.097633
0.100592
0.147929
0.201183
0.201183
0
0
0
0
0
0
0.13544
443
18
91
24.611111
0.882507
0.06772
0
0
0
0
0.40146
0
0
0
0
0
0
1
0
false
0.181818
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
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
d9ac5235a3f3f21c12ccd8234c3eed2645eea428
4,569
py
Python
experiments/gen_demos.py
abdelq/gym-duckietown
189392eab698b26db5e253b2a7fbe063b6e5e410
[ "MIT" ]
null
null
null
experiments/gen_demos.py
abdelq/gym-duckietown
189392eab698b26db5e253b2a7fbe063b6e5e410
[ "MIT" ]
null
null
null
experiments/gen_demos.py
abdelq/gym-duckietown
189392eab698b26db5e253b2a7fbe063b6e5e410
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ This script generates fake/synthetic demonstrations (trajectories) by mutating sequences of actions to maximize the total reward obtained. The resulting sequences of actions are saved to a JSON file. """ import time import random import argparse import math import json import gym_duckietown...
28.917722
131
0.626176
658
4,569
4.235562
0.296353
0.005741
0.026911
0.015788
0.233943
0.200933
0.136347
0.079656
0.079656
0.047363
0
0.016954
0.264172
4,569
157
132
29.101911
0.812017
0.201576
0
0.212766
1
0
0.072657
0.006933
0
0
0.002773
0.006369
0
1
0.042553
false
0
0.085106
0
0.180851
0.053191
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
d9b4a7142014796eaf988dce1f9c39f422076efb
257
py
Python
src/lib/components/utils/scrollbar.py
billyeatcookies/Biscuit
6faa20c7755ab6317d7b68b3dfdd57c8a972750b
[ "MIT" ]
1
2021-11-09T07:31:22.000Z
2021-11-09T07:31:22.000Z
src/lib/components/utils/scrollbar.py
billyeatcookies/Biscuit
6faa20c7755ab6317d7b68b3dfdd57c8a972750b
[ "MIT" ]
null
null
null
src/lib/components/utils/scrollbar.py
billyeatcookies/Biscuit
6faa20c7755ab6317d7b68b3dfdd57c8a972750b
[ "MIT" ]
null
null
null
from tkinter import ttk class AutoScrollbar(ttk.Scrollbar): def set(self, low, high): if float(low) <= 0.0 and float(high) >= 1.0: self.grid_remove() else: self.grid() ttk.Scrollbar.set(self, low, high)
23.363636
52
0.568093
35
257
4.142857
0.571429
0.165517
0.137931
0.193103
0
0
0
0
0
0
0
0.022346
0.303502
257
10
53
25.7
0.78771
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
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
d9b89f95977c0ed582897a12d2dc778a395b21c8
872
py
Python
tests/read/test_response.py
NRCan/backdrop
ba45e21b81c09859310ca4be249b25016b8731dc
[ "MIT" ]
9
2015-10-20T04:36:48.000Z
2020-09-08T18:47:01.000Z
tests/read/test_response.py
NRCan/backdrop
ba45e21b81c09859310ca4be249b25016b8731dc
[ "MIT" ]
31
2015-01-11T11:57:05.000Z
2021-03-24T10:52:33.000Z
tests/read/test_response.py
alphagov/backdrop
1256e5075d7e5a0e41afb0f0913a5f2c4bdb9ad8
[ "MIT" ]
4
2015-01-25T09:06:45.000Z
2021-04-10T20:27:36.000Z
import unittest from hamcrest import * from backdrop.core.timeseries import MONTH from backdrop.core.response import create_period_group from tests.support.test_helpers import d, d_tz class TestResponseMethods(unittest.TestCase): def test_building_month_groups(self): doc = {"_month_start_at": d(2013, 4, 1...
43.6
76
0.71789
133
872
4.323308
0.338346
0.031304
0.055652
0.146087
0.605217
0.514783
0.514783
0.431304
0.431304
0.431304
0
0.054945
0.165138
872
19
77
45.894737
0.73489
0
0
0.125
0
0
0.084862
0
0
0
0
0
0.25
1
0.125
false
0
0.3125
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
d9b967e3839df3c01e20dcfed40e5ad0f182fc97
401
py
Python
conftest.py
MaximeBarroin/test-ci-niveau-3
cb0d7feda257f7ac3199d696dcbe735791d342f8
[ "MIT" ]
null
null
null
conftest.py
MaximeBarroin/test-ci-niveau-3
cb0d7feda257f7ac3199d696dcbe735791d342f8
[ "MIT" ]
null
null
null
conftest.py
MaximeBarroin/test-ci-niveau-3
cb0d7feda257f7ac3199d696dcbe735791d342f8
[ "MIT" ]
null
null
null
from __future__ import print_function from pytest import fixture @fixture def global_fixture(): print("\n(Doing global fixture setup stuff!)") def pytest_configure(config): config.addinivalue_line( "markers", "db: Example marker for tagging Database related tests" ) config.addinivalue_line( ...
23.588235
74
0.718204
48
401
5.8125
0.583333
0.09319
0.150538
0.200717
0
0
0
0
0
0
0
0
0.199501
401
16
75
25.0625
0.869159
0
0
0.166667
0
0
0.391521
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.166667
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
d9ba55ab6d003f66bd3b4fd175f16c71055bf9b2
379
py
Python
pset_pandas_ext/101problems/p20.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_pandas_ext/101problems/p20.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_pandas_ext/101problems/p20.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" 20. How to compute difference of differences between consequtive numbers of a series? """ """ Difficulty Level: L1 """ """ Difference of differences between the consequtive numbers of ser. """ """ Input """ """ ser = pd.Series([1, 3, 6, 10, 15, 21, 27, 35]) """ """ Desired Output """ """ [nan, 2.0, 3.0, 4.0, 5.0, 6...
16.478261
85
0.583113
68
379
3.25
0.514706
0.036199
0.040724
0.054299
0.036199
0.036199
0
0
0
0
0
0.135048
0.17942
379
22
86
17.227273
0.575563
0.224274
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
d9c652d05824af7800c459eb5c4231976df2a042
50,390
py
Python
python/ccxt/bitfinex.py
bmschwartz/ccxt
9197b497ce765251efcd3ca2e750f78edd7c20c6
[ "MIT" ]
null
null
null
python/ccxt/bitfinex.py
bmschwartz/ccxt
9197b497ce765251efcd3ca2e750f78edd7c20c6
[ "MIT" ]
null
null
null
python/ccxt/bitfinex.py
bmschwartz/ccxt
9197b497ce765251efcd3ca2e750f78edd7c20c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
42.132107
426
0.488311
4,545
50,390
5.324532
0.20066
0.028099
0.032231
0.01719
0.27
0.228388
0.197107
0.169091
0.12
0.108595
0
0.037245
0.387775
50,390
1,195
427
42.167364
0.747196
0.160746
0
0.170551
1
0.001059
0.152499
0.009683
0
0
0
0.000837
0
1
0.039195
false
0.001059
0.020127
0.005297
0.099576
0
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
d9cb1e5f5015242daba34cdbef3cfc64ed7db851
699
py
Python
api/forms.py
NewFilmTracker/FilmTrackerWeb
1f09f4cbaf63e233b4c59012dac172c87b252944
[ "MIT" ]
null
null
null
api/forms.py
NewFilmTracker/FilmTrackerWeb
1f09f4cbaf63e233b4c59012dac172c87b252944
[ "MIT" ]
8
2018-10-16T10:31:10.000Z
2021-12-13T02:04:18.000Z
api/forms.py
NewFilmTracker/FilmTrackerWeb
1f09f4cbaf63e233b4c59012dac172c87b252944
[ "MIT" ]
2
2018-10-05T09:04:10.000Z
2020-08-31T06:09:58.000Z
from django import forms import datetime class QueryForm(forms.Form): query = forms.CharField(required=True, max_length=100) lang = forms.ChoiceField(widget=forms.Select(), choices=([('en', 'en'), ('id', 'id')]), initial='en', required=True) count = forms.IntegerField(required...
33.285714
97
0.669528
88
699
5.25
0.454545
0.155844
0.060606
0.082251
0.506494
0.506494
0.506494
0.506494
0.506494
0.506494
0
0.017301
0.173104
699
20
98
34.95
0.782007
0
0
0.285714
0
0
0.037196
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.785714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9d1bbceb0e1b568cebaa9bbcde48a24224d7e0c
1,762
py
Python
run-framework/chop.py
vnaveen0/nachos
99933b0da5474bf43bd167d2540438375237b2d9
[ "MIT" ]
1
2018-02-28T10:00:00.000Z
2018-02-28T10:00:00.000Z
run-framework/chop.py
vnaveen0/nachos
99933b0da5474bf43bd167d2540438375237b2d9
[ "MIT" ]
1
2020-04-06T22:30:00.000Z
2020-04-06T22:30:00.000Z
run-framework/chop.py
vnaveen0/nachos
99933b0da5474bf43bd167d2540438375237b2d9
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys, pprint, operator def main(filename): chops = {} totalCov = 0 with open(filename, 'r') as f: for l in f: s = l.strip().split(' ') cid = s[4] + '|' + s[-1] if cid not in chops.keys(): chops[cid] = { 'ids' : [], 'fqs' :...
33.245283
112
0.480704
256
1,762
3.273438
0.339844
0.057279
0.042959
0.042959
0.150358
0.064439
0.064439
0
0
0
0
0.020145
0.295687
1,762
52
113
33.884615
0.655117
0.160045
0
0
0
0
0.078804
0
0
0
0
0
0
0
null
null
0
0.030303
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
d9d89ce69174a5fe71301ebeb32b063fa1f533ca
2,181
py
Python
engine/timing/game.py
alexcher-im/sgemu
e85c6834b1057a27ba5c41c357c0de2336a12e2e
[ "Zlib" ]
5
2020-10-24T12:39:52.000Z
2021-04-04T22:47:44.000Z
engine/timing/game.py
alexcher-im/sgemu
e85c6834b1057a27ba5c41c357c0de2336a12e2e
[ "Zlib" ]
null
null
null
engine/timing/game.py
alexcher-im/sgemu
e85c6834b1057a27ba5c41c357c0de2336a12e2e
[ "Zlib" ]
null
null
null
from time import sleep as time_sleep from timeit import default_timer as timer from glfw.GLFW import glfwPollEvents from .base import TimingManager from ..event.tick import TickEvent class GameTimingManager(TimingManager): def __init__(self, window): super(GameTimingManager, self).__init__() sel...
34.619048
121
0.591013
252
2,181
4.93254
0.353175
0.050684
0.054706
0.045857
0.403862
0.403862
0.304103
0.304103
0.304103
0.304103
0
0.00807
0.318203
2,181
62
122
35.177419
0.827841
0.198074
0
0.488372
0
0
0.013785
0
0
0
0
0.016129
0
1
0.069767
false
0
0.116279
0
0.209302
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d9d9eb8297ade2b17d86be8a2babadf1535a0106
2,047
py
Python
antaytheist/quote/quotepeople.py
antaytheist/antaytheist
52f64f5e09c4bd52d694eb44af62bb897ab492da
[ "MIT" ]
null
null
null
antaytheist/quote/quotepeople.py
antaytheist/antaytheist
52f64f5e09c4bd52d694eb44af62bb897ab492da
[ "MIT" ]
null
null
null
antaytheist/quote/quotepeople.py
antaytheist/antaytheist
52f64f5e09c4bd52d694eb44af62bb897ab492da
[ "MIT" ]
null
null
null
# misc quote (from people) for antaytheist peoplequotes = { "contend": { "text": "I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours", "source":{ "name...
47.604651
538
0.62384
283
2,047
4.508834
0.526502
0.031348
0.023511
0.049373
0.056426
0
0
0
0
0
0
0.010547
0.258915
2,047
42
539
48.738095
0.830587
0.019541
0
0.114286
0
0.085714
0.685287
0
0
0
0
0
0.028571
1
0.028571
false
0
0
0
0.085714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9dabc6fab0ae546cdd532247ff5e43c977fd489
954
py
Python
yanshi/script/sh_yanshi.py
happy6666/stockStrategies
01ac608d1f69a7318d168036e8e6f77aa95c649c
[ "Apache-2.0" ]
null
null
null
yanshi/script/sh_yanshi.py
happy6666/stockStrategies
01ac608d1f69a7318d168036e8e6f77aa95c649c
[ "Apache-2.0" ]
1
2019-11-04T07:56:09.000Z
2019-11-04T07:56:09.000Z
yanshi/script/sh_yanshi.py
happy6666/stockStrategies
01ac608d1f69a7318d168036e8e6f77aa95c649c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import urllib2 as ub import time as ts import traceback as tb import sys from bs4 import BeautifulSoup def getRawData(): req=ub.Request('http://www.shfe.com.cn/statements/delaymarket_all.html?isAjax=true') req.add_header('user-agent','Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like ...
28.909091
137
0.691824
163
954
3.95092
0.644172
0.02795
0.037267
0.065217
0.097826
0.071429
0
0
0
0
0
0.047847
0.12369
954
32
138
29.8125
0.722488
0.016771
0
0.103448
0
0.034483
0.246531
0
0
0
0
0
0
0
null
null
0
0.172414
null
null
0.103448
0
0
0
null
0
0
0
0
0
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
d9daeba95b20009459a77cc757a26bfe11a16e6b
1,918
py
Python
codalab/apps/jobs/migrations/0001_initial.py
AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public
64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7
[ "Apache-2.0" ]
333
2015-12-29T22:49:40.000Z
2022-03-27T12:01:57.000Z
codalab/apps/jobs/migrations/0001_initial.py
AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public
64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7
[ "Apache-2.0" ]
1,572
2015-12-28T21:54:00.000Z
2022-03-31T13:00:32.000Z
codalab/apps/jobs/migrations/0001_initial.py
AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public
64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7
[ "Apache-2.0" ]
107
2016-01-08T03:46:07.000Z
2022-03-16T08:43:57.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Job' db.create_table(u'jobs_job', ( (u'id', self.gf('django.db.models.fields.Aut...
45.666667
113
0.59854
229
1,918
4.882096
0.279476
0.107335
0.175313
0.250447
0.663685
0.663685
0.647585
0.647585
0.497317
0.445438
0
0.006515
0.199687
1,918
42
114
45.666667
0.721824
0.031804
0
0
0
0
0.42233
0.269687
0
0
0
0
0
1
0.064516
false
0
0.129032
0
0.290323
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
d9dd00d44de816149659c90a814f8fe394866c18
1,677
py
Python
app/auth/views.py
cinston/Pitch
502937e0562eb8a7c3708831dccbf34e18fa8b93
[ "Unlicense" ]
null
null
null
app/auth/views.py
cinston/Pitch
502937e0562eb8a7c3708831dccbf34e18fa8b93
[ "Unlicense" ]
null
null
null
app/auth/views.py
cinston/Pitch
502937e0562eb8a7c3708831dccbf34e18fa8b93
[ "Unlicense" ]
null
null
null
from . import auth from flask import render_template, redirect, url_for, flash from flask_login import login_user, logout_user, login_required from ..models import User from .forms import RegistrationForm, LoginForm from .. import db from ..email import mail_message @auth.route('/login', methods=['GET', 'POST']) def l...
37.266667
170
0.689922
219
1,677
5.141553
0.319635
0.05595
0.049734
0.053286
0.101243
0.101243
0
0
0
0
0
0
0.187239
1,677
45
171
37.266667
0.826119
0.05486
0
0.058824
0
0
0.124759
0
0
0
0
0
0
1
0.088235
false
0.088235
0.205882
0
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
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
d9e2896fef4586597ccd7580cae9846ff37ab3c5
2,547
py
Python
versionfield/version.py
Omnia-M-Badr/django-versionfield
5b9b114210d42967f6107436efcbcfd36a9a0bd1
[ "MIT" ]
2
2021-12-05T06:11:50.000Z
2022-03-10T16:10:28.000Z
versionfield/version.py
Omnia-M-Badr/django-versionfield
5b9b114210d42967f6107436efcbcfd36a9a0bd1
[ "MIT" ]
null
null
null
versionfield/version.py
Omnia-M-Badr/django-versionfield
5b9b114210d42967f6107436efcbcfd36a9a0bd1
[ "MIT" ]
5
2019-02-19T05:58:43.000Z
2022-03-10T11:15:06.000Z
from .constants import DEFAULT_NUMBER_BITS from .utils import convert_version_string_to_int, convert_version_int_to_string class Version(object): def __init__(self, string, number_bits=DEFAULT_NUMBER_BITS): """ Take in a verison string e.g. '3.0.1' Store it as a converted int """ ...
32.240506
121
0.612093
332
2,547
4.39759
0.207831
0.123288
0.124658
0.10411
0.626027
0.557534
0.519178
0.49863
0.49863
0.49863
0
0.008924
0.296035
2,547
78
122
32.653846
0.805354
0.086376
0
0.491525
0
0
0
0
0
0
0
0
0
1
0.20339
false
0
0.033898
0.067797
0.576271
0
0
0
0
null
0
0
0
0
0
0
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
d9e3df8304f9e6cc449821a3d4b4f336ce65f66a
1,046
py
Python
soccer/gameplay/constants.py
AniruddhaG123/robocup-software
0eb3b3957428894f2f39341594800be803665f44
[ "Apache-2.0" ]
1
2019-09-24T22:59:25.000Z
2019-09-24T22:59:25.000Z
soccer/gameplay/constants.py
ananth-kumar01/robocup-software
4043a7f9590d02f617d8e9a762697e4aaa27f1a6
[ "Apache-2.0" ]
null
null
null
soccer/gameplay/constants.py
ananth-kumar01/robocup-software
4043a7f9590d02f617d8e9a762697e4aaa27f1a6
[ "Apache-2.0" ]
null
null
null
import robocup import math DegreesToRadians = math.pi / 180.0 RadiansToDegrees = 180.0 / math.pi OurChipRoll = 3 # Average distance at which a ball is slow enough to capture TheirChipping = (.1, .8) class OurChipping: MIN_CARRY = .1 MAX_CARRY = .8 CAPTURE_DISTANCE = 3 MIN_CARRY_TIME = .1 MAX_CAR...
21.791667
78
0.650096
148
1,046
4.52027
0.547297
0.011958
0.026906
0
0
0
0
0
0
0
0
0.089844
0.265774
1,046
47
79
22.255319
0.78125
0.260994
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.060606
0
0.757576
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9e5660b0eb0f11a2f0f4e8330544a26f7382ed2
8,755
py
Python
H-FT/final.py
huligagn/hello
81c992f640ccd40ad764fcd886a5dfe6a156efb2
[ "Apache-2.0" ]
null
null
null
H-FT/final.py
huligagn/hello
81c992f640ccd40ad764fcd886a5dfe6a156efb2
[ "Apache-2.0" ]
null
null
null
H-FT/final.py
huligagn/hello
81c992f640ccd40ad764fcd886a5dfe6a156efb2
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import os import scipy.io import numpy as np import cv2 USE_TFRECORDS = True cwd = os.getcwd() train_set = '../data/hypotheses.tfrecords' VGG_PATH = cwd + "/../data/imagenet-vgg-verydeep-19.mat" learning_rate = 0.0008 batch_size = 15 img_size = 227 n_classes = 20 thres...
34.880478
128
0.599772
1,153
8,755
4.313096
0.224631
0.019908
0.012065
0.018098
0.249548
0.203499
0.144782
0.102755
0.090288
0.048864
0
0.037851
0.21542
8,755
251
129
34.880478
0.686126
0.223073
0
0.014599
0
0
0.109997
0.010185
0
0
0
0
0.007299
0
null
null
0
0.036496
null
null
0.043796
0
0
0
null
0
0
0
0
0
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
d9ea549728bfb22ed8ba5758d14003d6f0074cc6
379
py
Python
examples/SearchDemo.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
null
null
null
examples/SearchDemo.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
4
2019-11-07T12:32:19.000Z
2020-07-19T14:04:44.000Z
examples/SearchDemo.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
5
2019-12-04T15:56:55.000Z
2022-01-14T06:19:18.000Z
import re regex = "\d{3}-\d{2}-\d{4}" text = input("Enter a text: ") match1 = re.search(regex, text) if match1 != None: print(text, " contains a SSN") print("start position of the matched text is " + str(match1.start())) print("start and end position of the matched text is " + str(match1....
23.6875
60
0.60686
59
379
3.898305
0.542373
0.078261
0.113043
0.173913
0.304348
0.304348
0.304348
0.304348
0
0
0
0.024221
0.237467
379
15
61
25.266667
0.771626
0
0
0
0
0
0.404762
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.333333
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
d9ec615f3ef725e04b35eae5fcbe431586ad35d7
1,459
py
Python
oo/pessoa.py
JosemarBrito/pythonbirds
eaa80f98bd4365b1146556b5f144dbab03fbf9bb
[ "MIT" ]
1
2020-10-04T03:29:20.000Z
2020-10-04T03:29:20.000Z
oo/pessoa.py
JosemarBrito/pythonbirds
eaa80f98bd4365b1146556b5f144dbab03fbf9bb
[ "MIT" ]
null
null
null
oo/pessoa.py
JosemarBrito/pythonbirds
eaa80f98bd4365b1146556b5f144dbab03fbf9bb
[ "MIT" ]
null
null
null
class Pessoa: olhos = 2 def __init__(self, *filhos, nome=None, idade=35): self.idade = idade self.nome = nome self.filhos = list(filhos) def cumprimentar(self): return f'Ola Mundo{id(self)}' @staticmethod def metodo_estatico(): return 50 @classmethod ...
27.018519
86
0.675805
172
1,459
5.52907
0.27907
0.073607
0.044164
0.050473
0.069401
0
0
0
0
0
0
0.005186
0.206991
1,459
53
87
27.528302
0.816768
0.013023
0
0.045455
0
0
0.055633
0
0
0
0
0
0
1
0.090909
false
0.022727
0
0.068182
0.227273
0.431818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
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
d9eddd62a20310ec3b29269220a9b819de83be97
533
py
Python
experiment/urls.py
mago1chi/-questionnaire_system4experiment
f890b05444d86154835aef689f66469f6ad6a569
[ "MIT" ]
null
null
null
experiment/urls.py
mago1chi/-questionnaire_system4experiment
f890b05444d86154835aef689f66469f6ad6a569
[ "MIT" ]
null
null
null
experiment/urls.py
mago1chi/-questionnaire_system4experiment
f890b05444d86154835aef689f66469f6ad6a569
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf.urls.static import static from django.conf import settings urlpatterns = patterns('', # Examples: # url(r'^$', 'experiment.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^eva...
35.533333
105
0.677298
70
533
5.128571
0.4
0.05571
0.116992
0.100279
0
0
0
0
0
0
0
0
0.123827
533
14
106
38.071429
0.768737
0.369606
0
0
0
0
0.114804
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
d9ee382f22fd31d6b97d850b5d3acd4e8fa62aa9
1,606
py
Python
TestModule/test_cache.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
1
2019-04-15T04:23:53.000Z
2019-04-15T04:23:53.000Z
TestModule/test_cache.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
null
null
null
TestModule/test_cache.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
null
null
null
#!/usr/bin/python #coding:UTF-8 cache = {} def add_dict(line): list_str = line.split(" ") word = list_str[0].strip("\n") meaning = list_str[1].strip("\n") #print "%s : %s" % (word, meaning) #dict_tmp = {word : meaning} #cache.update(dict_tmp) cache[word] = meaning def read_cache(): fp...
22.942857
45
0.522416
197
1,606
4.13198
0.314721
0.135135
0.029484
0.078624
0.432432
0.432432
0.432432
0.388206
0.388206
0.316953
0
0.010166
0.326276
1,606
69
46
23.275362
0.742144
0.234745
0
0.422222
0
0
0.06925
0
0
0
0
0
0
0
null
null
0
0
null
null
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d9f0095f382dfb47a47c3ea0e93c533f98b0a77a
750
py
Python
genyrator/__init__.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
1
2020-07-01T16:54:39.000Z
2020-07-01T16:54:39.000Z
genyrator/__init__.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
10
2018-11-16T15:04:21.000Z
2021-06-01T22:27:38.000Z
genyrator/__init__.py
jumblesale/genyrator
c4429f689e92e8447b0b944e7d9b434f99cae51d
[ "MIT" ]
2
2018-08-08T10:42:35.000Z
2019-07-25T11:56:06.000Z
# flake8: noqa __version__ = '0.0.142' from genyrator.entities.Column import ( Column, IdentifierColumn, ForeignKeyRelationship, create_column, create_identifier_column, ) from genyrator.types import ( TypeOption, string_to_type_option, python_type_to_type_option, type_option_to_t...
20.27027
68
0.756
85
750
6.270588
0.364706
0.146341
0.196998
0.101313
0.090056
0
0
0
0
0
0
0.00974
0.178667
750
36
69
20.833333
0.855519
0.016
0
0
0
0
0.009511
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d9f309c1b14edab243283eedd067b4078e1caf30
4,593
py
Python
src/robot/running/importer.py
silviot/bryanoakley-robotframework-linenumbers
7cc85c1cb8bdbf63d3bb6721ad1ddf8d9420d85e
[ "ECL-2.0", "Apache-2.0" ]
4
2016-02-29T17:00:24.000Z
2019-06-27T08:49:13.000Z
lib/robot/running/importer.py
nbbull/RIDE
e6496f0b1b6dc454b9479de48b6949bce29b53df
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
lib/robot/running/importer.py
nbbull/RIDE
e6496f0b1b6dc454b9479de48b6949bce29b53df
[ "ECL-2.0", "Apache-2.0" ]
2
2017-10-30T06:34:47.000Z
2019-03-12T07:23:08.000Z
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # 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...
35.330769
89
0.639016
583
4,593
4.852487
0.291595
0.019795
0.019442
0.021209
0.116649
0.066455
0.027572
0.027572
0.027572
0.027572
0
0.005019
0.262573
4,593
129
90
35.604651
0.830233
0.165251
0
0.11236
0
0
0.075993
0
0
0
0
0
0
1
0.168539
false
0
0.235955
0.033708
0.561798
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9f3ec23170cb9b5d12e2a8047e657b97e43201d
293
py
Python
training/constant.py
AlecDivito/rbc-battlesnakes
2579b171180092e697a04b34270cbba7754b02fe
[ "MIT" ]
null
null
null
training/constant.py
AlecDivito/rbc-battlesnakes
2579b171180092e697a04b34270cbba7754b02fe
[ "MIT" ]
1
2021-08-11T21:06:40.000Z
2021-08-11T21:06:40.000Z
training/constant.py
AlecDivito/rbc-battlesnakes
2579b171180092e697a04b34270cbba7754b02fe
[ "MIT" ]
1
2021-08-11T22:35:03.000Z
2021-08-11T22:35:03.000Z
from enum import Enum import numpy as np class Evolution(Enum): SELECTION = 1 BEST = 2 BOARD_CATEGORIES = 3 SNAKE_EYESIGHT = 11 class BoardItem(): EMPTY = 0 ENEMY_BODY = 1 ENEMY_HEAD = 2 FOOD = 3 FRIENDLY_HEAD = 4 FRIENDLY_BODY = 5 OUT_OF_BOUNDS = 6
12.73913
22
0.641638
43
293
4.186047
0.744186
0.111111
0
0
0
0
0
0
0
0
0
0.058537
0.300341
293
22
23
13.318182
0.819512
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.866667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
d9fd61f431c861b2e631d734a651819a77fbcd9a
1,025
py
Python
python/nano/src/bigdl/nano/automl/utils/parallel_worker.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/automl/utils/parallel_worker.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/automl/utils/parallel_worker.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # 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 ...
28.472222
74
0.717073
157
1,025
4.579618
0.592357
0.083449
0.036161
0.044506
0.086231
0.086231
0.086231
0.086231
0
0
0
0.01083
0.189268
1,025
35
75
29.285714
0.854392
0.579512
0
0
0
0
0.106538
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1