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
212fc4c8274bff77fd2ba5e1eb370184f1267a29
1,406
py
Python
Server/ExpertWebtool/Helper/__init__.py
Kieran-Bacon/Expert-Opinions-Vegetation-Change
5b1e9a47beaecea1207979ff0a5ee02a26e5f3a9
[ "Apache-2.0" ]
null
null
null
Server/ExpertWebtool/Helper/__init__.py
Kieran-Bacon/Expert-Opinions-Vegetation-Change
5b1e9a47beaecea1207979ff0a5ee02a26e5f3a9
[ "Apache-2.0" ]
null
null
null
Server/ExpertWebtool/Helper/__init__.py
Kieran-Bacon/Expert-Opinions-Vegetation-Change
5b1e9a47beaecea1207979ff0a5ee02a26e5f3a9
[ "Apache-2.0" ]
null
null
null
from .Email import email from .Storage import CMOStore, tempStorage, emptyDirectory from .HiddenPages import HiddenPages from .Permissions import AUTHORITY, permissions import re, uuid, hashlib import pyramid.httpexceptions as exc from ExpertWebtool.DatabaseHandler import DatabaseHandler as db # Regular expressions...
25.563636
105
0.710526
174
1,406
5.718391
0.454023
0.056281
0.015075
0.01809
0.01809
0.01809
0.01809
0.01809
0
0
0
0.016225
0.167141
1,406
55
106
25.563636
0.833476
0.088193
0
0.210526
0
0.026316
0.077647
0.039216
0
0
0
0
0
1
0.078947
false
0.078947
0.210526
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
21322f26c9a525bb00090b361ef7a5475b141b3e
1,824
py
Python
util/fastq_trim_pad.py
zhongmicai/ITS_clustering
0177f3fba2570fa18b2aecdfb9737fb18f222ebf
[ "BSD-2-Clause" ]
1
2020-05-28T06:47:07.000Z
2020-05-28T06:47:07.000Z
util/fastq_trim_pad.py
zhongmicai/ITS_clustering
0177f3fba2570fa18b2aecdfb9737fb18f222ebf
[ "BSD-2-Clause" ]
null
null
null
util/fastq_trim_pad.py
zhongmicai/ITS_clustering
0177f3fba2570fa18b2aecdfb9737fb18f222ebf
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys, os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) import lib.fasta as fasta import lib.fastq as fastq import lib.progress as progress import lib.die as die if len(sy...
24.986301
94
0.628289
244
1,824
4.688525
0.303279
0.031469
0.048951
0.059441
0.170455
0.148601
0.148601
0
0
0
0
0.027066
0.230263
1,824
72
95
25.333333
0.787749
0.010965
0
0.12963
0
0
0.108153
0
0
0
0
0
0.092593
0
null
null
0
0.092593
null
null
0.092593
0
0
0
null
0
0
0
0
0
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
21420a7082f5bdbb79aeba0c7992618f7f11f24a
8,943
py
Python
qa/ExternalScripts/LCOVCoveragePublish.py
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
9
2018-11-19T10:15:29.000Z
2021-08-30T11:52:07.000Z
qa/ExternalScripts/LCOVCoveragePublish.py
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
qa/ExternalScripts/LCOVCoveragePublish.py
IOR-BIC/ALBA
b574968b05d9a3a2756dd2ac61d015a0d20232a4
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-06-10T22:56:29.000Z
2019-12-12T06:22:56.000Z
import sys import os import time from datetime import datetime import glob currentPathScript = os.path.split(os.path.realpath(__file__))[0] try: sys.path.append(os.path.realpath(os.path.join(currentPathScript,"..",".."))) from qa import albaPath except ImportError: import albaPath def usage(): print ...
46.336788
182
0.537515
884
8,943
5.411765
0.307692
0.023829
0.022993
0.027592
0.298286
0.253763
0.229306
0.184783
0.184783
0.184783
0
0.007478
0.297216
8,943
192
183
46.578125
0.753699
0.055351
0
0.085714
0
0.007143
0.299419
0.062967
0
0
0
0
0
0
null
null
0
0.064286
null
null
0.085714
0
0
0
null
0
0
0
0
0
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
214b22bf3a7c8fe6c47aaf28617041044f223792
1,401
py
Python
students/k3343/laboratory_works/Revenko_Anna/laboratory_work_1/hotel_project/hotel_app/models.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3343/laboratory_works/Revenko_Anna/laboratory_work_1/hotel_project/hotel_app/models.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3343/laboratory_works/Revenko_Anna/laboratory_work_1/hotel_project/hotel_app/models.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
from django.db import models from django.contrib.auth.models import User # Create your models here. class Hotel(models.Model): address = models.CharField(max_length=50) name = models.CharField(max_length=50) capacity = models.IntegerField() comfort = models.CharField(max_length=50) def __str__(self): return "{...
25.017857
82
0.674518
195
1,401
4.65641
0.317949
0.115639
0.099119
0.132159
0.386564
0.241189
0.155286
0.155286
0
0
0
0.036334
0.135617
1,401
55
83
25.472727
0.71346
0.017131
0
0.139535
0
0
0.047273
0
0
0
0
0
0
1
0.069767
false
0
0.046512
0.069767
0.651163
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
214c4792637e1d2fd4627a7b0ea50a95380a9af6
12,693
py
Python
generators.py
subpic/kutils
dd39437381acbfc9cdbcd1299db001b5493248d6
[ "MIT" ]
9
2019-07-31T13:08:16.000Z
2021-05-22T01:42:56.000Z
generators.py
subpic/kutils
dd39437381acbfc9cdbcd1299db001b5493248d6
[ "MIT" ]
null
null
null
generators.py
subpic/kutils
dd39437381acbfc9cdbcd1299db001b5493248d6
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import multiprocessing as mp from munch import Munch import keras from image_utils import * from generic import * from tensor_ops import * # GENERATORS class DataGeneratorDisk(keras.utils.Sequence): """ Generates data for training Keras models - inherits from keras....
47.718045
108
0.582526
1,511
12,693
4.72998
0.156188
0.027984
0.012313
0.01763
0.595914
0.543725
0.514901
0.481881
0.475584
0.411082
0
0.006134
0.332152
12,693
265
109
47.898113
0.836971
0.041046
0
0.42236
0
0
0.010589
0
0
0
0
0
0
0
null
null
0
0.049689
null
null
0.018634
0
0
0
null
0
0
0
0
0
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
214c6cf925c04d77bee261dbd05f50fb72c39699
936
py
Python
jdcloud_sdk/core/logger.py
lidaobing/jdcloud-sdk-python
f305e8ddd74ab4ad445477744534e7299d4d93fb
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/core/logger.py
lidaobing/jdcloud-sdk-python
f305e8ddd74ab4ad445477744534e7299d4d93fb
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/core/logger.py
lidaobing/jdcloud-sdk-python
f305e8ddd74ab4ad445477744534e7299d4d93fb
[ "Apache-2.0" ]
1
2019-03-01T08:44:37.000Z
2019-03-01T08:44:37.000Z
# coding=utf8 # Copyright 2018-2025 JDCLOUD.COM # # 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 agr...
22.829268
74
0.71688
137
936
4.810219
0.649635
0.091047
0.039454
0.048558
0
0
0
0
0
0
0
0.022942
0.208333
936
40
75
23.4
0.866397
0.601496
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
214db646e316c6641936a254b8846c71d70f0145
886
py
Python
LectureNote/04.Stack_Queue/#10/My_Structure.py
minssoj/Study_turtleCoding
5a1ab3c099311e6417f2a07e87132840fc3c7aed
[ "MIT" ]
null
null
null
LectureNote/04.Stack_Queue/#10/My_Structure.py
minssoj/Study_turtleCoding
5a1ab3c099311e6417f2a07e87132840fc3c7aed
[ "MIT" ]
null
null
null
LectureNote/04.Stack_Queue/#10/My_Structure.py
minssoj/Study_turtleCoding
5a1ab3c099311e6417f2a07e87132840fc3c7aed
[ "MIT" ]
2
2021-12-13T08:02:31.000Z
2021-12-18T08:36:23.000Z
class Node: def __init__(self, item: int, prev=None): self.item = item self.prev = prev class Stack: def __init__(self): self.last = None def push(self, item): self.last = Node(item, self.last) def pop(self): item = self.last.item self.last = self.last....
21.609756
45
0.521445
113
886
3.946903
0.265487
0.107623
0.107623
0.071749
0
0
0
0
0
0
0
0.001821
0.380361
886
41
46
21.609756
0.810565
0
0
0.235294
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0
0
0.411765
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
214e46aeb8cde8b3cb861835cfa38de2776fffda
244
py
Python
ai-engineer/course0_20190911/a1_python_lib/matploitlib/plt3_simple_plot.py
linksdl/meta-project-artificial_intelligence_projects
3abe0dc59aa891717a661b3ad1e987c14536bd62
[ "Apache-2.0" ]
null
null
null
ai-engineer/course0_20190911/a1_python_lib/matploitlib/plt3_simple_plot.py
linksdl/meta-project-artificial_intelligence_projects
3abe0dc59aa891717a661b3ad1e987c14536bd62
[ "Apache-2.0" ]
null
null
null
ai-engineer/course0_20190911/a1_python_lib/matploitlib/plt3_simple_plot.py
linksdl/meta-project-artificial_intelligence_projects
3abe0dc59aa891717a661b3ad1e987c14536bd62
[ "Apache-2.0" ]
null
null
null
# 3 - simple plot """ Please note, this script is for python3+. If you are using python2+, please modify it accordingly. """ import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1, 1, 100) y = 2*x + 1 plt.plot(x, y) plt.show()
17.428571
56
0.680328
44
244
3.772727
0.727273
0
0
0
0
0
0
0
0
0
0
0.050505
0.188525
244
13
57
18.769231
0.787879
0.471311
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
2151384fbba5eb86094375eb27b0585b28e707d4
3,387
py
Python
apps/projects/permissions.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
1
2019-01-19T06:58:39.000Z
2019-01-19T06:58:39.000Z
apps/projects/permissions.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
null
null
null
apps/projects/permissions.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
null
null
null
from apps.projects.models import ProjectPitch, ProjectPhases, ProjectPlan from rest_framework import permissions from .models import Project class IsProjectOwner(permissions.BasePermission): """ Allows access only to project owner. """ def has_object_permission(self, request, view, obj): if is...
34.561224
156
0.683791
395
3,387
5.774684
0.243038
0.03858
0.064445
0.076721
0.53573
0.53573
0.498027
0.498027
0.480491
0.454187
0
0
0.240921
3,387
97
157
34.917526
0.887203
0.20313
0
0.461538
0
0
0.005354
0
0
0
0
0
0
1
0.153846
false
0
0.057692
0.019231
0.653846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
215358dda1f519318100a02ffc1c0c002007c064
1,393
py
Python
sac/logger.py
yardenas/jax-sac
cc9cffbfda90e02749f77b7997e44a739e88b55e
[ "MIT" ]
null
null
null
sac/logger.py
yardenas/jax-sac
cc9cffbfda90e02749f77b7997e44a739e88b55e
[ "MIT" ]
null
null
null
sac/logger.py
yardenas/jax-sac
cc9cffbfda90e02749f77b7997e44a739e88b55e
[ "MIT" ]
null
null
null
from collections import defaultdict import tensorflow as tf from tensorboardX import SummaryWriter class TrainingLogger(object): def __init__(self, log_dir): self._writer = SummaryWriter(log_dir) self._metrics = defaultdict(tf.metrics.Mean) def __getitem__(self, item): return self._me...
33.97561
71
0.631012
182
1,393
4.604396
0.335165
0.131265
0.077566
0.064439
0.282816
0.181384
0.136038
0
0
0
0
0.004643
0.226849
1,393
41
72
33.97561
0.773445
0.010768
0
0.16129
0
0
0.050835
0
0
0
0
0
0
1
0.258065
false
0
0.096774
0.032258
0.419355
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2154092e0f0993f2319656d87e7c7c76dd16ce54
843
py
Python
run.py
Trcx528/CDCC
6700ae61e0f020c1ae8224bf6e5084def8733b79
[ "MIT" ]
null
null
null
run.py
Trcx528/CDCC
6700ae61e0f020c1ae8224bf6e5084def8733b79
[ "MIT" ]
null
null
null
run.py
Trcx528/CDCC
6700ae61e0f020c1ae8224bf6e5084def8733b79
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """This file is just for easy startup in a development enviroment""" import sys import re import os from app import app # for uwsgi application = app if __name__ == '__main__': try: import config if config.prod["DEBUG"] is None or config.prod["DEBUG"] is True: os...
30.107143
80
0.597865
119
843
4.134454
0.521008
0.073171
0.085366
0.069106
0
0
0
0
0
0
0
0.009434
0.245552
843
27
81
31.222222
0.764151
0.130486
0
0
0
0
0.215172
0.030345
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
215876256add479460012790b0624e91194feae1
6,062
py
Python
simpleopenstack/tests/test_factories.py
wtsi-hgi/python-simple-openstack
d62e490d66ec62bf0cf78f83089d278d71bf7509
[ "MIT" ]
1
2017-06-10T13:32:20.000Z
2017-06-10T13:32:20.000Z
simpleopenstack/tests/test_factories.py
wtsi-hgi/python-simple-openstack
d62e490d66ec62bf0cf78f83089d278d71bf7509
[ "MIT" ]
1
2017-06-01T17:30:44.000Z
2017-06-01T17:30:44.000Z
simpleopenstack/tests/test_factories.py
wtsi-hgi/python-simple-openstack
d62e490d66ec62bf0cf78f83089d278d71bf7509
[ "MIT" ]
null
null
null
import unittest from abc import ABCMeta, abstractmethod from typing import Type, Generic, TypeVar from simpleopenstack.factories import OpenstackKeypairManagerFactory, OpenstackItemManagerFactory, \ OpenstackInstanceManagerFactory, OpenstackImageManagerFactory, OpenstackManagerFactory, \ OpenstackFlavorManager...
36.083333
115
0.758166
483
6,062
9.333333
0.194617
0.028394
0.031943
0.023957
0.280612
0.265084
0.16748
0.140639
0.127995
0.097826
0
0
0.168096
6,062
167
116
36.299401
0.893912
0.086605
0
0.27
0
0
0.004856
0
0
0
0
0
0.13
1
0.21
false
0.01
0.09
0.1
0.48
0
0
0
0
null
0
0
0
0
0
0
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
215a78bbd592f2ed34e2662cfb20e47f7addd19e
7,834
py
Python
BlenderProject/ProceduralBuildingGenerator/parameters.py
AlexMG99/ProceduralBuildingGeneratorTool
6cf8619449385d8d78561b66c93b43b5ee8a2443
[ "MIT" ]
3
2021-06-21T17:02:51.000Z
2022-03-25T16:03:31.000Z
BlenderProject/ProceduralBuildingGenerator/parameters.py
AlexMG99/ProceduralBuildingGeneratorTool
6cf8619449385d8d78561b66c93b43b5ee8a2443
[ "MIT" ]
null
null
null
BlenderProject/ProceduralBuildingGenerator/parameters.py
AlexMG99/ProceduralBuildingGeneratorTool
6cf8619449385d8d78561b66c93b43b5ee8a2443
[ "MIT" ]
null
null
null
import bpy from bpy.props import (StringProperty, BoolProperty, IntProperty, FloatProperty, FloatVectorProperty, EnumProperty, PointerProperty, ) ...
27.584507
112
0.52987
792
7,834
5.223485
0.183081
0.014503
0.010877
0.011603
0.340343
0.276045
0.258642
0.225526
0.196519
0.177907
0
0.043051
0.350651
7,834
283
113
27.681979
0.770199
0.001787
0
0.336066
0
0
0.191225
0
0
0
0
0
0
1
0.008197
true
0
0.012295
0
0.147541
0
0
0
0
null
0
0
0
0
0
0
0
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
215c55b0babdadfe1ab2db24c708c5e2189b9831
10,692
py
Python
program_synthesis_engine/modules/db_helpers.py
amit9oct/Program-Synthesizer
cd5967bc24131279a5cbc35c74c06538c518b247
[ "WTFPL" ]
1
2021-03-16T06:07:28.000Z
2021-03-16T06:07:28.000Z
program_synthesis_engine/modules/db_helpers.py
amit9oct/Program-Synthesizer
cd5967bc24131279a5cbc35c74c06538c518b247
[ "WTFPL" ]
4
2020-03-24T15:47:48.000Z
2021-02-02T21:46:07.000Z
program_synthesis_engine/modules/db_helpers.py
amit9oct/Program-Synthesizer
cd5967bc24131279a5cbc35c74c06538c518b247
[ "WTFPL" ]
3
2018-07-24T13:03:13.000Z
2021-08-14T16:57:58.000Z
import math import sqlite3 import helpers import spell_corrector class sqlite_db_helpers: """ This class has helpers to go through a Database given its name, and helper functions to anonymize words in a sentence """ # constant SQL queries get_tables_query = "SELECT name FROM sqlite_master WH...
37.914894
118
0.581089
1,279
10,692
4.639562
0.182174
0.047186
0.043141
0.039097
0.319515
0.264071
0.155544
0.131951
0.123862
0.123862
0
0.011575
0.337449
10,692
281
119
38.049822
0.826087
0.112514
0
0.274648
0
0
0.039954
0.003212
0
0
0
0.003559
0
0
null
null
0
0.028169
null
null
0.035211
0
0
0
null
0
0
0
0
0
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
215e208a70a3fe4cf5071664a86a73c45856cd6d
503
py
Python
web/utils/libs.py
BennyJane/career-planning-info
406b41dc2913fce8623609efe4885abd9474cb6d
[ "MIT" ]
1
2021-01-11T01:37:18.000Z
2021-01-11T01:37:18.000Z
web/utils/libs.py
BennyJane/career-planning-info
406b41dc2913fce8623609efe4885abd9474cb6d
[ "MIT" ]
null
null
null
web/utils/libs.py
BennyJane/career-planning-info
406b41dc2913fce8623609efe4885abd9474cb6d
[ "MIT" ]
null
null
null
import os import time import random import hashlib import datetime def produceId(): filePath = os.getcwd() src = filePath + str(time.time()) m = hashlib.md5() m.update(src.encode('utf-8')) return m.hexdigest() def getFormatDate(date=None, _format="%Y-%m-%d %H:%M:%S"): if date is None: ...
20.12
70
0.648111
72
503
4.472222
0.583333
0
0
0
0
0
0
0
0
0
0
0.00995
0.200795
503
24
71
20.958333
0.791045
0
0
0
0
0
0.043738
0
0
0
0
0
0
1
0.166667
false
0
0.277778
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
216477a766db19768e9d92683f7984bc664f3fac
388
py
Python
examples/light.py
sepulworld/enviroplus-python
22ad858957b25f971190c4d5ae6999d4ad9369c9
[ "MIT" ]
2
2020-02-29T09:17:49.000Z
2020-04-08T16:44:21.000Z
examples/light.py
sepulworld/enviroplus-python
22ad858957b25f971190c4d5ae6999d4ad9369c9
[ "MIT" ]
null
null
null
examples/light.py
sepulworld/enviroplus-python
22ad858957b25f971190c4d5ae6999d4ad9369c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import ltr559 print("""light.py - Print readings from the LTR559 Light & Proximity sensor. Press Ctrl+C to exit! """) try: while True: lux = ltr559.get_lux() prox = ltr559.get_proximity() print("""Light: {:05.02f} Lux Proximity: {:05.02f} """.format(lux...
17.636364
76
0.631443
53
388
4.584906
0.660377
0.082305
0
0
0
0
0
0
0
0
0
0.07309
0.224227
388
21
77
18.47619
0.734219
0.051546
0
0
0
0
0.365123
0
0
0
0
0
0
1
0
false
0.066667
0.133333
0
0.133333
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
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
21693d951060fab992477ea71019ad9fb523c6ea
3,417
py
Python
olpy/misc.py
openlattice/olpy
4e89b6f3561bd8de09f98cabeac31f7f4ee10977
[ "Apache-2.0" ]
null
null
null
olpy/misc.py
openlattice/olpy
4e89b6f3561bd8de09f98cabeac31f7f4ee10977
[ "Apache-2.0" ]
null
null
null
olpy/misc.py
openlattice/olpy
4e89b6f3561bd8de09f98cabeac31f7f4ee10977
[ "Apache-2.0" ]
null
null
null
from auth0.v3.authentication import GetToken import openlattice import requests import json import os def post_jira(username, password, summary, description = "", project = None, assignee = None, issuetype = "Task", points = 1): """ Posts a task to jira. """ if assignee is None: ...
30.508929
104
0.595552
389
3,417
5.071979
0.287918
0.052712
0.054739
0.042575
0.215915
0.215915
0.131779
0.083122
0.083122
0.083122
0
0.004847
0.275388
3,417
112
105
30.508929
0.792003
0.026339
0
0.043956
0
0
0.276918
0.045496
0
0
0
0
0
1
0.043956
false
0.131868
0.054945
0.010989
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
21694d3cb9a8bbd8a9f7c8c545f16f6eee950765
254
py
Python
tests/settings.py
sourya-deepsource/django-octicons
49eca38a28b8c128d3e5dd5262bef97deb429789
[ "MIT" ]
15
2018-09-21T10:47:42.000Z
2021-09-11T12:30:29.000Z
tests/settings.py
sourya-deepsource/django-octicons
49eca38a28b8c128d3e5dd5262bef97deb429789
[ "MIT" ]
5
2018-10-13T06:05:30.000Z
2020-07-29T07:37:09.000Z
tests/settings.py
sourya-deepsource/django-octicons
49eca38a28b8c128d3e5dd5262bef97deb429789
[ "MIT" ]
5
2018-09-22T14:17:23.000Z
2020-08-18T18:27:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- SECRET_KEY = 'hunter2' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'APP_DIRS': True, }, ] INSTALLED_APPS = [ 'octicons.apps.OcticonsConfig' ]
14.941176
69
0.602362
25
254
6
0.92
0
0
0
0
0
0
0
0
0
0
0.010152
0.224409
254
16
70
15.875
0.751269
0.165354
0
0
0
0
0.461905
0.357143
0
0
0
0
0
1
0
false
0
0
0
0
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
216c464dc688485cb55f7a72f54c6a7e2f74e659
1,043
py
Python
src/fl_simulation/client/update.py
microsoft/fl-simulation
d177d329c82559c7efe82deae8dea8f9baa49495
[ "MIT" ]
5
2021-12-14T02:21:53.000Z
2021-12-26T07:45:13.000Z
src/fl_simulation/client/update.py
microsoft/fl-simulation
d177d329c82559c7efe82deae8dea8f9baa49495
[ "MIT" ]
1
2022-01-04T04:51:20.000Z
2022-01-04T04:51:20.000Z
src/fl_simulation/client/update.py
microsoft/fl-simulation
d177d329c82559c7efe82deae8dea8f9baa49495
[ "MIT" ]
null
null
null
"""Data types for model updates.""" from dataclasses import dataclass, field from typing import Generic, Hashable, Optional, TypeVar from fl_simulation.utils.types import ModelDiff, ControlVarDiff T_wid = TypeVar("T_wid", bound=Hashable) @dataclass class ModelUpdate(Generic[T_wid]): """The class containing the...
27.447368
110
0.739214
132
1,043
5.772727
0.530303
0.020997
0.070866
0.060367
0.08399
0.08399
0
0
0
0
0
0
0.167785
1,043
37
111
28.189189
0.87788
0.167785
0
0.2
0
0
0.008977
0
0
0
0
0
0
1
0
false
0.066667
0.2
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
dcbc7df25ff8f03f0c3912b4e9ab8044dca88e33
3,548
py
Python
dractor/exceptions.py
akamac/dractor
a9a0599da89333d06ba3006810081d45afa8d4c6
[ "Apache-2.0" ]
null
null
null
dractor/exceptions.py
akamac/dractor
a9a0599da89333d06ba3006810081d45afa8d4c6
[ "Apache-2.0" ]
2
2019-03-17T15:40:39.000Z
2019-03-17T15:40:41.000Z
dractor/exceptions.py
osgirl/dractor
aa0ba9f5e4802ae365df3cb7d51c31b8d1b2349b
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Verizon. All Rights Reserved. # # File: exceptions.py # Author: John Hickey, Phil Chandler # Date: 2017-02-17 # # 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 th...
27.083969
76
0.697576
375
3,548
6.573333
0.490667
0.024341
0.029209
0.03286
0
0
0
0
0
0
0
0.005463
0.174464
3,548
130
77
27.292308
0.836122
0.541714
0
0
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0
0
0.896552
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
dcbdc612ae5fb4cc8bb2dfd7e53c9e61396f1558
610
py
Python
entities/timer.py
ipad0214/weatherstation-server
f8b775785fe152ec0b31902bcc38de0b60ca471f
[ "MIT" ]
null
null
null
entities/timer.py
ipad0214/weatherstation-server
f8b775785fe152ec0b31902bcc38de0b60ca471f
[ "MIT" ]
null
null
null
entities/timer.py
ipad0214/weatherstation-server
f8b775785fe152ec0b31902bcc38de0b60ca471f
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, ForeignKey, Float from sqlalchemy.dialects.postgresql import TIMESTAMP Base = declarative_base() class Timer(Base): __tablename__ = 'tb_timer' id = Column(Integer, primary_key=True, autoincrement=True) ...
25.416667
65
0.660656
64
610
6.171875
0.484375
0.106329
0
0
0
0
0
0
0
0
0
0
0.244262
610
23
66
26.521739
0.856833
0
0
0
0
0
0.05082
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0.055556
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
dcc3b402fbce74f420779da51cc6b8931f5580ac
1,066
py
Python
S.py
shubhamg0sai/instagram-automation
d8232c8579c8140ffe076d88368b6ff9acede0df
[ "MIT" ]
null
null
null
S.py
shubhamg0sai/instagram-automation
d8232c8579c8140ffe076d88368b6ff9acede0df
[ "MIT" ]
1
2022-03-14T03:24:24.000Z
2022-03-27T04:46:12.000Z
S.py
shubhamg0sai/instagram-automation
d8232c8579c8140ffe076d88368b6ff9acede0df
[ "MIT" ]
null
null
null
import base64 import zlib inp = int(input('''base64[1]\nbase32[2]\nzlib[3]\nmarshal[4]\n''')) if inp == 1: file = input("enter a file to encode into base64\n") f = open(file) sample_string = f.read() sample_string_bytes = sample_string.encode("ascii") base64_bytes = base64.b64encode(sample_string...
26
67
0.67167
157
1,066
4.407643
0.242038
0.17341
0.098266
0.065029
0.50289
0.50289
0.468208
0.367052
0.193642
0.193642
0
0.052083
0.189493
1,066
40
68
26.65
0.748843
0
0
0.387097
0
0
0.254221
0.040338
0
0
0
0
0
0
null
null
0
0.064516
null
null
0.129032
0
0
0
null
0
0
0
0
0
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
dcc4d73996a9923670d4f6b71caa762ffcf02dfd
725
py
Python
python_impl/face_detector.py
dcastro9/smart_mirror_project
0b72a26bba3b75609a54a238cd0771e93df121ed
[ "MIT" ]
4
2017-05-03T19:03:46.000Z
2019-07-07T08:13:53.000Z
python_impl/face_detector.py
dcastro9/smart_mirror_project
0b72a26bba3b75609a54a238cd0771e93df121ed
[ "MIT" ]
1
2018-02-14T16:28:16.000Z
2018-02-14T16:34:25.000Z
python_impl/face_detector.py
dcastro9/smart_mirror_project
0b72a26bba3b75609a54a238cd0771e93df121ed
[ "MIT" ]
3
2015-04-25T19:28:06.000Z
2019-07-07T03:57:32.000Z
import cv2 # local modules from video import create_capture from common import clock, draw_str class FaceDetector(object): def __init__(self, cascade_fn, nested_fn=None): self.cascade = cv2.CascadeClassifier(cascade_fn) if (None != nested_fn): self.nested = cv2.CascadeClassifier(nested...
32.954545
134
0.633103
96
725
4.635417
0.520833
0.074157
0.026966
0.035955
0
0
0
0
0
0
0
0.043876
0.245517
725
22
135
32.954545
0.769653
0.017931
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.176471
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
dcc86206dafc03e4be042f5e51bc8b9799751b18
664
py
Python
src/plugins/system/Platform.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
src/plugins/system/Platform.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
src/plugins/system/Platform.py
andreaswatch/piTomation
140bff77ad0b84ad17898106c7be7dc48a2d0783
[ "MIT" ]
null
null
null
from sys import platform from pydantic.class_validators import validator from modules.base.Configuration import * from modules.base.Instances import * @configuration class SystemPlatformConfiguration(PlatformConfiguration): '''Configuration settings for the System platform.''' @validator('platform') ...
25.538462
81
0.707831
70
664
6.571429
0.557143
0.047826
0.065217
0
0
0
0
0
0
0
0
0
0.195783
664
26
82
25.538462
0.861423
0.09488
0
0
0
0
0.098305
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
dcd53fae9f701ddd5168c43d68f3b5c052f0fc78
3,057
py
Python
b2fuse/cached_bucket.py
sondree/b2_fuse
1c5bfa987fba1db59c3734ee7468bc644fb72ebb
[ "MIT" ]
253
2015-12-07T07:32:05.000Z
2021-12-28T01:06:01.000Z
b2fuse/cached_bucket.py
falense/b2_fuse
1c5bfa987fba1db59c3734ee7468bc644fb72ebb
[ "MIT" ]
73
2015-12-14T08:43:00.000Z
2021-12-08T11:57:03.000Z
b2fuse/cached_bucket.py
sondree/b2_fuse
1c5bfa987fba1db59c3734ee7468bc644fb72ebb
[ "MIT" ]
34
2016-02-02T00:32:49.000Z
2021-02-18T02:22:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #The MIT License (MIT) #Copyright (c) 2015 Sondre Engebraaten #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 with...
31.84375
79
0.68335
411
3,057
4.92944
0.372263
0.062192
0.039487
0.035538
0.094274
0.080948
0.054294
0.054294
0.054294
0.054294
0
0.004225
0.225711
3,057
95
80
32.178947
0.851711
0.371933
0
0.12766
0
0
0.001053
0
0
0
0
0
0
1
0.212766
false
0.021277
0.042553
0
0.489362
0
0
0
0
null
0
0
0
0
0
0
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
dcdbd2e5ffded1cc5d9c2427bc27af11df167e62
1,272
py
Python
src/drivers/http/base.py
iurii-iurii/clickhouse-sqlalchemy
bb3d1f9d1573566e7d0b6a14a6cf09369948cc15
[ "MIT" ]
2
2017-08-22T15:21:40.000Z
2019-12-19T09:47:14.000Z
src/drivers/http/base.py
iurii-iurii/clickhouse-sqlalchemy
bb3d1f9d1573566e7d0b6a14a6cf09369948cc15
[ "MIT" ]
1
2019-01-17T14:01:15.000Z
2019-01-22T09:41:22.000Z
src/drivers/http/base.py
iurii-iurii/clickhouse-sqlalchemy
bb3d1f9d1573566e7d0b6a14a6cf09369948cc15
[ "MIT" ]
1
2018-12-12T09:19:22.000Z
2018-12-12T09:19:22.000Z
from ..base import ClickHouseDialect, ClickHouseExecutionContextBase from . import connector # Export connector version VERSION = (0, 0, 2, None) def add_format(sql): dont_add = ['alter', 'drop', 'create', 'system reload dictionary'] if not any([sql[:len(x)].lower() == x for x in dont_add]): return...
25.959184
70
0.670597
147
1,272
5.687075
0.496599
0.032297
0.028708
0
0
0
0
0
0
0
0
0.007078
0.222484
1,272
48
71
26.5
0.83822
0.03066
0
0
0
0
0.089504
0.023596
0
0
0
0.020833
0
1
0.172414
false
0.034483
0.068966
0.068966
0.551724
0
0
0
0
null
0
0
0
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
dce09bb67b4a411d95e46111cb72496d429db3f8
29,488
py
Python
LFSM/spectral_index/spectral_index_analysis_for_direction_dependence.py
Yanping-Cong/LFSM-0.1
eb36cea15d98741fa84ff982ff2fc6d5fa203284
[ "MIT" ]
null
null
null
LFSM/spectral_index/spectral_index_analysis_for_direction_dependence.py
Yanping-Cong/LFSM-0.1
eb36cea15d98741fa84ff982ff2fc6d5fa203284
[ "MIT" ]
null
null
null
LFSM/spectral_index/spectral_index_analysis_for_direction_dependence.py
Yanping-Cong/LFSM-0.1
eb36cea15d98741fa84ff982ff2fc6d5fa203284
[ "MIT" ]
null
null
null
# coding: utf-8 # In[2]: #!/usr/bin/env python import matplotlib #get_ipython().magic(u'matplotlib inline') import matplotlib.pyplot as plt from scipy.optimize import leastsq import numpy as np;import healpy as hp;import h5py; import scipy.constants as Cons K = Cons.k C = Cons.c from scipy.special import erf import ...
46.511041
362
0.614623
4,717
29,488
3.566462
0.077804
0.029424
0.019259
0.03091
0.66528
0.612079
0.582239
0.529573
0.500862
0.473934
0
0.099213
0.232637
29,488
633
363
46.584518
0.644246
0.154164
0
0.325581
0
0
0.095545
0.03967
0
0
0
0
0
0
null
null
0
0.020672
null
null
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
dcf0a91389e121dd50128fcb92b22bcb4840be95
3,931
py
Python
server/quickPoll/room.py
yaqwsx/quickPoll
7fa4fdea155353ee6bd06dca1749a21c0a4dbfe9
[ "MIT" ]
2
2020-10-12T11:58:02.000Z
2020-10-21T08:57:49.000Z
server/quickPoll/room.py
yaqwsx/quickPoll
7fa4fdea155353ee6bd06dca1749a21c0a4dbfe9
[ "MIT" ]
12
2020-09-27T06:47:50.000Z
2020-12-07T13:24:38.000Z
server/quickPoll/room.py
yaqwsx/quickPoll
7fa4fdea155353ee6bd06dca1749a21c0a4dbfe9
[ "MIT" ]
null
null
null
from random_words import RandomWords class Room: def __init__(self, id, name="", author="", description=""): self.id = id self.name = name self.description = description self.author = author self.widgets = [] self.widgetIdCounter = 0 self.memberSessions = {}...
29.780303
88
0.576189
430
3,931
5.24186
0.216279
0.031943
0.028838
0.008873
0.14685
0.096717
0.080745
0.080745
0.080745
0.049689
0
0.001499
0.321038
3,931
131
89
30.007634
0.843012
0.012974
0
0.152381
0
0
0.014004
0
0
0
0
0
0
1
0.209524
false
0
0.009524
0.057143
0.419048
0
0
0
0
null
0
0
0
0
0
0
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
dcf14992d935711d804aaba73432de9d811aee1c
2,814
py
Python
utils/Parsers.py
Skelmis/PyMcBot
b74b4f344bbcc711974f2551f75da3ddb8874e6f
[ "Apache-2.0" ]
2
2020-02-09T08:55:33.000Z
2021-03-31T20:53:11.000Z
utils/Parsers.py
Skelmis/PyMcBot
b74b4f344bbcc711974f2551f75da3ddb8874e6f
[ "Apache-2.0" ]
2
2020-08-20T14:32:49.000Z
2021-02-07T03:28:45.000Z
utils/Parsers.py
Skelmis/PyMcBot
b74b4f344bbcc711974f2551f75da3ddb8874e6f
[ "Apache-2.0" ]
3
2020-10-27T14:27:38.000Z
2020-12-08T15:11:54.000Z
import re import json """ A file for Player utilities, focused around parsing chat and making it human readable. The DefaultParser should be able to handle most situations currently, however, there are known weakness's in the approach but as it stands, it is better then other examples I have seen. DefaultParser - T...
30.923077
107
0.544776
345
2,814
4.484058
0.457971
0.02521
0.019392
0.0181
0
0
0
0
0
0
0
0.01898
0.344705
2,814
90
108
31.266667
0.811822
0.267946
0
0.046512
0
0.023256
0.088431
0.035736
0
0
0
0.011111
0
1
0.023256
false
0
0.046512
0
0.116279
0
0
0
0
null
0
0
0
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
dcf5cc7442ca8f69375448c6b6b88b8d0afb96b6
253
py
Python
HackerPack/src/bootstrap.py
LinhchiNguyen/Hackmates
8e898b54757ecaf92c2c4346d76e59ab0ee528f6
[ "MIT" ]
null
null
null
HackerPack/src/bootstrap.py
LinhchiNguyen/Hackmates
8e898b54757ecaf92c2c4346d76e59ab0ee528f6
[ "MIT" ]
null
null
null
HackerPack/src/bootstrap.py
LinhchiNguyen/Hackmates
8e898b54757ecaf92c2c4346d76e59ab0ee528f6
[ "MIT" ]
null
null
null
from src.models import UserLanguage LANGUAGES = [ 'C', 'C#', 'C++', 'CSS', 'HTML', 'Java', 'Javascript', 'Objective C', 'PHP', 'Python', 'Ruby', 'Swift', 'None' ] for LANGUAGE in LANGUAGES: UserLanguage.objects.create(language=LANGUAGE)
12.047619
47
0.628458
29
253
5.482759
0.758621
0.025157
0
0
0
0
0
0
0
0
0
0
0.16996
253
20
48
12.65
0.757143
0
0
0
0
0
0.237154
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
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
dcf7f2eb947f1246ed19f7c7d9764b8df0c52b85
1,369
py
Python
ListClass.py
P-N-S/SVP-CPro
f39cada78465d97c198b8eff5edac5bb53a526bb
[ "Apache-2.0" ]
1
2019-07-18T06:52:53.000Z
2019-07-18T06:52:53.000Z
ListClass.py
P-N-S/SVP-CPro
f39cada78465d97c198b8eff5edac5bb53a526bb
[ "Apache-2.0" ]
null
null
null
ListClass.py
P-N-S/SVP-CPro
f39cada78465d97c198b8eff5edac5bb53a526bb
[ "Apache-2.0" ]
null
null
null
# Python List | SGVP386100 | 18:00 21F19 # https://www.geeksforgeeks.org/python-list/ List = [] print("Initial blank List: ") print(List) # Creating a List with the use of a String List = ['GeeksForGeeks'] print("\nList with the use of String: ") print(List) # 18:51 26F19 # Creating a List with the use of mulitple ...
22.442623
53
0.689554
219
1,369
4.310502
0.296804
0.095339
0.063559
0.076271
0.318856
0.204449
0.106992
0.080508
0.080508
0.080508
0
0.03863
0.168006
1,369
61
54
22.442623
0.790167
0.392988
0
0.322581
0
0
0.415025
0
0
0
0
0
0
1
0
false
0
0
0
0
0.612903
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
dcfd0e2de57280933ef2a9250343b1b061319402
39,250
py
Python
tkp/sourcefinder/image.py
kernsuite-debian/tkp
f1eca5b051aafb6ca20cd134d7850f46b861ff12
[ "BSD-2-Clause" ]
null
null
null
tkp/sourcefinder/image.py
kernsuite-debian/tkp
f1eca5b051aafb6ca20cd134d7850f46b861ff12
[ "BSD-2-Clause" ]
null
null
null
tkp/sourcefinder/image.py
kernsuite-debian/tkp
f1eca5b051aafb6ca20cd134d7850f46b861ff12
[ "BSD-2-Clause" ]
null
null
null
""" Some generic utility routines for number handling and calculating (specific) variances """ import logging import itertools import numpy from tkp.utility import containers from tkp.utility.memoize import Memoize from tkp.sourcefinder import utils from tkp.sourcefinder import stats from tkp.sourcefinder import extra...
41.228992
101
0.548561
4,481
39,250
4.70877
0.185896
0.011754
0.009858
0.006398
0.184976
0.143886
0.113744
0.099621
0.087204
0.066635
0
0.009465
0.359338
39,250
951
102
41.272345
0.829635
0.217987
0
0.25
0
0
0.062911
0.002261
0
0
0
0
0.012
0
null
null
0
0.022
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
0d01fe760249fa899c13e6a1d68e5d28a74e6dfb
1,360
py
Python
tools/svn_util.py
Sharathsukash/cef
bf0acb75b9c1f3bfa49883abcb3f9af6f0017d67
[ "BSD-3-Clause" ]
1
2015-11-23T12:12:08.000Z
2015-11-23T12:12:08.000Z
tools/svn_util.py
Sharathsukash/cef
bf0acb75b9c1f3bfa49883abcb3f9af6f0017d67
[ "BSD-3-Clause" ]
null
null
null
tools/svn_util.py
Sharathsukash/cef
bf0acb75b9c1f3bfa49883abcb3f9af6f0017d67
[ "BSD-3-Clause" ]
1
2020-02-13T08:12:07.000Z
2020-02-13T08:12:07.000Z
# Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights # reserved. Use of this source code is governed by a BSD-style license that # can be found in the LICENSE file. import os import urllib def check_url(url): """ Check the URL and raise an exception if invalid. """ if ':' in url[:7]: ...
33.170732
76
0.594853
196
1,360
4.091837
0.438776
0.052369
0.041147
0.034913
0
0
0
0
0
0
0
0.020528
0.247794
1,360
40
77
34
0.763441
0.130882
0
0
0
0
0.172764
0
0
0
0
0
0
0
null
null
0
0.066667
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
0d021558f54b4cb7ef650d2f74723ddabf2d259e
1,367
py
Python
revision/bst.py
tordisuna/SC-T-201-GSKI
1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2
[ "MIT" ]
null
null
null
revision/bst.py
tordisuna/SC-T-201-GSKI
1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2
[ "MIT" ]
null
null
null
revision/bst.py
tordisuna/SC-T-201-GSKI
1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2
[ "MIT" ]
1
2021-02-12T11:36:53.000Z
2021-02-12T11:36:53.000Z
class Node(object): def __init__(self, data, left=None, right=None): self.data = data self.left = left self.right = right class BST(object): def __init__(self): self.root = None def add(self, data): self.root = self._add_recur(self.root, data) def _add_recur(s...
27.34
72
0.585955
186
1,367
4.11828
0.268817
0.052219
0.046997
0.044386
0.062663
0
0
0
0
0
0
0.009474
0.305048
1,367
50
73
27.34
0.796842
0.084126
0
0.052632
0
0
0.007246
0
0
0
0
0
0
1
0.210526
false
0
0.026316
0.052632
0.447368
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0d08b7f32fae484bad756949f37449e248a38e5a
368
py
Python
users/migrations/0003_auto_20200422_1538.py
abheist/goldenSwan-backend
153e16bb829f113fb429131436324631f15ae064
[ "MIT" ]
null
null
null
users/migrations/0003_auto_20200422_1538.py
abheist/goldenSwan-backend
153e16bb829f113fb429131436324631f15ae064
[ "MIT" ]
9
2021-03-30T13:41:09.000Z
2022-03-12T00:32:50.000Z
users/migrations/0003_auto_20200422_1538.py
abheist/goldenSwan-backend
153e16bb829f113fb429131436324631f15ae064
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-22 15:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20200422_1514'), ] operations = [ migrations.RenameField( model_name='user', old_name='profilePic', ...
19.368421
47
0.589674
40
368
5.25
0.85
0
0
0
0
0
0
0
0
0
0
0.120155
0.298913
368
18
48
20.444444
0.693798
0.122283
0
0
1
0
0.165109
0.071651
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
0d147ccbed4c4a77b5fe7fb35156fb3fa65c8468
898
py
Python
tests/http/test_request_data_property.py
venmo/flex
7a3f6ad7d2c5907055149dc81fa3e1bb2f72d2f7
[ "MIT" ]
1
2018-12-19T14:43:23.000Z
2018-12-19T14:43:23.000Z
tests/http/test_request_data_property.py
venmo/flex
7a3f6ad7d2c5907055149dc81fa3e1bb2f72d2f7
[ "MIT" ]
null
null
null
tests/http/test_request_data_property.py
venmo/flex
7a3f6ad7d2c5907055149dc81fa3e1bb2f72d2f7
[ "MIT" ]
2
2016-10-19T12:06:16.000Z
2020-11-07T10:30:43.000Z
import pytest import json from flex.constants import EMPTY from tests.factories import ( RequestFactory, ) def test_null_body_returns_null(): request = RequestFactory(body=None) assert request.data is None def test_empty_string_body_returns_empty_string(): request = RequestFactory(body='') asse...
22.45
50
0.703786
104
898
5.836538
0.298077
0.057661
0.205931
0.062603
0.210873
0.210873
0.210873
0.210873
0.210873
0.210873
0
0
0.18931
898
39
51
23.025641
0.833791
0
0
0.142857
0
0
0.070156
0.025612
0
0
0
0
0.142857
1
0.178571
false
0
0.142857
0
0.321429
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
0d14dd9eb269348276b864fa668b1171210c9ca6
84,767
py
Python
bin/ADFRsuite/CCSBpckgs/AutoDockTools/Docking.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockTools/Docking.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockTools/Docking.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
############################################################################# # # Author: Ruth HUEY, William LINDSTROM # # Copyright: M. Sanner TSRI 2002 # ############################################################################# # $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/Docking.py,v 1.77 2011/0...
44.684765
181
0.519766
10,040
84,767
4.231275
0.094522
0.009063
0.005649
0.004237
0.380749
0.306812
0.25359
0.221741
0.197025
0.178052
0
0.024593
0.37688
84,767
1,896
182
44.708333
0.779686
0.153114
0
0.298913
0
0.003882
0.069699
0.007142
0
0
0
0.006329
0.002329
0
null
null
0.000776
0.018634
null
null
0.04736
0
0
0
null
0
0
0
0
0
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
0d1d2f42486fc087ee17bf9bc3f3b72839e6f47e
2,136
py
Python
alert.py
Vic121/forex-server
507f4e4d424093a416159430ad77005b613aff76
[ "MIT" ]
3
2020-07-25T05:57:05.000Z
2020-11-14T06:23:24.000Z
alert.py
Vic121/forex-server
507f4e4d424093a416159430ad77005b613aff76
[ "MIT" ]
null
null
null
alert.py
Vic121/forex-server
507f4e4d424093a416159430ad77005b613aff76
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2013 Victor Chinedu # # 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, mo...
30.084507
79
0.675094
291
2,136
4.941581
0.443299
0.061196
0.041725
0.047288
0.061892
0.047983
0
0
0
0
0
0.002408
0.222378
2,136
70
80
30.514286
0.863335
0.57912
0
0.16
0
0
0.129808
0
0
0
0
0
0
1
0.24
false
0.04
0.12
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0d2560d0ed50d4e290b962d97d7fa86c08059923
1,616
py
Python
azure/create_azure_certificates.py
dominoFire/sweeper-extractor
ddeed3212ea2c6c1fca252f339fbcbda1b04b68b
[ "MIT" ]
null
null
null
azure/create_azure_certificates.py
dominoFire/sweeper-extractor
ddeed3212ea2c6c1fca252f339fbcbda1b04b68b
[ "MIT" ]
null
null
null
azure/create_azure_certificates.py
dominoFire/sweeper-extractor
ddeed3212ea2c6c1fca252f339fbcbda1b04b68b
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import OpenSSL import os if __name__ == '__main__': key = OpenSSL.crypto.PKey() key.generate_key(OpenSSL.crypto.TYPE_RSA, 1024) cert = OpenSSL.crypto.X509() cert.set_serial_number(0) subj = cert.get_subject() # Common Name: /CN subj.C = "MX" subj.ST = "MexicoCi...
34.382979
92
0.662129
242
1,616
4.264463
0.355372
0.125969
0.040698
0.054264
0.324612
0.254845
0.254845
0.254845
0.185078
0.185078
0
0.038256
0.191213
1,616
46
93
35.130435
0.751339
0.156559
0
0
1
0
0.108567
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
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
0d3444123f99a2a5d3f9317c4ac1a5a4c489623b
1,668
py
Python
merge_coocc_files/app/merge_coocc_files.py
mh95278/infocore
220baba0d3ca423a4a6c84d0c11a6b5c92bc196e
[ "MIT" ]
null
null
null
merge_coocc_files/app/merge_coocc_files.py
mh95278/infocore
220baba0d3ca423a4a6c84d0c11a6b5c92bc196e
[ "MIT" ]
null
null
null
merge_coocc_files/app/merge_coocc_files.py
mh95278/infocore
220baba0d3ca423a4a6c84d0c11a6b5c92bc196e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #python version: 2.7.11 import sys from os import listdir from os.path import isfile, join import os, shutil class Merger(object): def __init__(self): try: self.outputPath = "results/"+sys.argv[1] except IndexError: print "Pleas...
30.888889
72
0.601319
212
1,668
4.561321
0.410377
0.068252
0.034126
0.041365
0
0
0
0
0
0
0
0.005119
0.297362
1,668
53
73
31.471698
0.819966
0.071343
0
0.04878
0
0
0.102265
0
0
0
0
0
0
0
null
null
0.02439
0.097561
null
null
0.073171
0
0
0
null
0
0
0
0
0
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
0d3935822b5950944cfb92a4e07dc2457bbccebb
425
py
Python
src/tests/scanner/functions/unix/test_mount_parser.py
alex-dya/security_scanner
7aeb6af863ccdbf6c066d52446318aaf898afe7b
[ "MIT" ]
null
null
null
src/tests/scanner/functions/unix/test_mount_parser.py
alex-dya/security_scanner
7aeb6af863ccdbf6c066d52446318aaf898afe7b
[ "MIT" ]
7
2021-05-28T14:31:27.000Z
2022-03-12T00:57:40.000Z
src/tests/scanner/functions/unix/test_mount_parser.py
alex-dya/security_scanner
7aeb6af863ccdbf6c066d52446318aaf898afe7b
[ "MIT" ]
1
2021-05-15T12:18:49.000Z
2021-05-15T12:18:49.000Z
from scanner.functions.unix.mount_parser import MountFinditer def test_simple_case(): text = 'sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)' result = list(MountFinditer(text=text)) assert len(result) == 1 item = result[0] assert item.Device == 'sysfs' assert item.Path == '/sys' ...
32.692308
74
0.665882
55
425
5.090909
0.581818
0.142857
0.092857
0.135714
0.192857
0
0
0
0
0
0
0.005764
0.183529
425
12
75
35.416667
0.801153
0
0
0
0
0
0.232941
0.077647
0
0
0
0
0.5
1
0.1
false
0
0.1
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
1
0
0
0
0
0
0
0
0
0
1
0d39eb9edcbf1ed9cb645088d7b196cc57f273c4
465
py
Python
setup.py
CrazyCat-Cyber/Lucy
96b38cd1e8aa66584d5e8209ef28ab0d55dd71f2
[ "MIT" ]
1
2022-01-04T08:09:39.000Z
2022-01-04T08:09:39.000Z
setup.py
Arghya-Banerjee/Lucy
96b38cd1e8aa66584d5e8209ef28ab0d55dd71f2
[ "MIT" ]
1
2022-01-03T09:30:09.000Z
2022-01-03T09:30:09.000Z
setup.py
CrazyCat-Cyber/Lucy
96b38cd1e8aa66584d5e8209ef28ab0d55dd71f2
[ "MIT" ]
1
2022-01-04T08:10:12.000Z
2022-01-04T08:10:12.000Z
from gettext import find from setuptools import find_packages from setuptools import setup if __name__ == '__main__': setup( name='lucy', version='0.1.1', description='this is my own personal voice command task performer', author='Arghya Banerjee', author_email='arghya.bane...
27.352941
75
0.660215
56
465
5.285714
0.660714
0.141892
0.135135
0
0
0
0
0
0
0
0
0.008242
0.217204
465
16
76
29.0625
0.804945
0
0
0
0
0
0.357759
0.0625
0
0
0
0
0
1
0
true
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
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
0d3b9b35201c75674fef6b8b52ed32a5f72d6f65
2,590
py
Python
design/satellite_is_sunlit.py
facorazza/python-skyfield
8d3dc132f43656766a58e3e1984363592aa1f11a
[ "MIT" ]
765
2015-04-15T22:54:43.000Z
2022-03-31T10:02:16.000Z
design/satellite_is_sunlit.py
facorazza/python-skyfield
8d3dc132f43656766a58e3e1984363592aa1f11a
[ "MIT" ]
589
2015-04-18T16:32:35.000Z
2022-03-31T09:35:33.000Z
design/satellite_is_sunlit.py
facorazza/python-skyfield
8d3dc132f43656766a58e3e1984363592aa1f11a
[ "MIT" ]
169
2015-04-15T19:47:38.000Z
2022-03-11T13:15:44.000Z
"""Verdict: light-time delay from the Sun can be neglected in is_sunlit()! For the Sun's position from Earth, does calling observe() really make enough difference to justify the expense? Here we take two approaches to answering the question: we compare the difference every day over 40 years, and then we do a back-of-...
39.846154
78
0.757915
453
2,590
4.227373
0.408389
0.028198
0.014621
0.014099
0.055352
0.055352
0
0
0
0
0
0.028952
0.159846
2,590
64
79
40.46875
0.851103
0.529344
0
0.071429
0
0
0.281328
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
0d3c3f5d464f0181e63f5d498f6eb4e6e1ec7e9b
4,997
py
Python
tests/functional/syspriv/test_access_any_object.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/functional/syspriv/test_access_any_object.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/functional/syspriv/test_access_any_object.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: functional.syspriv.access_any_object # title: Check ability to query, modify and deleting data plus add/drop constraints on any table. # decription: # We create two master-detail tables (under SYSDBA) and add some data to them. # Then we connec...
30.845679
128
0.578347
674
4,997
4.111276
0.310089
0.012992
0.032479
0.03681
0.148322
0.142909
0.080115
0.063515
0.033201
0.022375
0
0.047237
0.351811
4,997
161
129
31.037267
0.808274
0.146088
0
0.2
0
0.05
0.853578
0.067561
0
0
0
0
0.016667
1
0.008333
false
0.025
0.016667
0
0.025
0
0
0
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
0d50745c1a7ecb5bcde9a1bda0ddbc6b13b2994b
432
py
Python
db/Pooling.py
IcyBiscuit/modian-lottery-bot
29607d873586d42af844815fe5fa7abe02f0515e
[ "MIT" ]
1
2019-06-21T08:39:49.000Z
2019-06-21T08:39:49.000Z
db/Pooling.py
IcyBiscuit/modian-lottery-bot
29607d873586d42af844815fe5fa7abe02f0515e
[ "MIT" ]
null
null
null
db/Pooling.py
IcyBiscuit/modian-lottery-bot
29607d873586d42af844815fe5fa7abe02f0515e
[ "MIT" ]
1
2020-06-04T16:09:27.000Z
2020-06-04T16:09:27.000Z
import aiomysql import asyncio from configs.DBConfig import config async def creatPool() -> aiomysql.Pool: pool = await aiomysql.create_pool( host=config['host'], port=config['port'], user=config['user'], password=config['password'], db=config['db'], autocommit=Fals...
22.736842
58
0.662037
51
432
5.509804
0.529412
0.085409
0
0
0
0
0
0
0
0
0
0
0.212963
432
18
59
24
0.826471
0
0
0
0
0
0.050926
0
0
0
0
0
0
1
0
false
0.071429
0.214286
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0d509271e8d8c576073df73d1a8353ce4fcb4a35
7,244
py
Python
apps/orch.py
debussy-net/debussy
0cd4df123eee8a17aab40592758d69c004affa20
[ "Apache-2.0" ]
1
2020-06-17T01:49:59.000Z
2020-06-17T01:49:59.000Z
apps/orch.py
debussy-net/debussy
0cd4df123eee8a17aab40592758d69c004affa20
[ "Apache-2.0" ]
null
null
null
apps/orch.py
debussy-net/debussy
0cd4df123eee8a17aab40592758d69c004affa20
[ "Apache-2.0" ]
null
null
null
""" Orchestration sub-shell. Orchestration is a core application that is enabled by default. """ import os from itertools import tee, izip from debussy.app import AppConsole, discoverComponents from debussy.log import logger from debussy.util import resource_file routing = """ DROP TABLE IF EXISTS p_routing CASCADE;...
29.567347
78
0.582413
902
7,244
4.613082
0.242794
0.013218
0.015381
0.018265
0.268926
0.162461
0.111992
0.064888
0.064888
0.064888
0
0.011534
0.31778
7,244
244
79
29.688525
0.830433
0.038239
0
0.28022
0
0
0.327412
0.010873
0
0
0
0
0
0
null
null
0
0.027473
null
null
0.087912
0
0
0
null
0
0
0
0
0
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
0d520a64d24f2129f422ca12e2400410f68602d6
5,030
py
Python
gps.py
herofolk/GPS-coordinate-transformation
715a7d90124bd37b2b9c5601c0ba633e8fb962bb
[ "Apache-2.0" ]
null
null
null
gps.py
herofolk/GPS-coordinate-transformation
715a7d90124bd37b2b9c5601c0ba633e8fb962bb
[ "Apache-2.0" ]
null
null
null
gps.py
herofolk/GPS-coordinate-transformation
715a7d90124bd37b2b9c5601c0ba633e8fb962bb
[ "Apache-2.0" ]
1
2022-03-23T08:50:23.000Z
2022-03-23T08:50:23.000Z
#!/usr/bin/env python # coding:utf-8 # @author: KaiVen """ GPS坐标转换: WGS-84:是国际标准,GPS坐标(Google Earth使用、或者GPS模块) GCJ-02:中国坐标偏移标准,Google Map、高德、腾讯使用 BD-09:百度坐标偏移标准,Baidu Map使用 """ import math def transformLat(x, y): ret = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * math.sqrt(abs(x)) ret += (2...
27.189189
100
0.550099
781
5,030
3.53137
0.241997
0.047861
0.031907
0.021755
0.238579
0.204859
0.183829
0.140682
0.140682
0.129804
0
0.124294
0.296223
5,030
184
101
27.336957
0.654802
0.024254
0
0.160714
0
0
0.019718
0
0
0
0
0
0
0
null
null
0
0.008929
null
null
0.026786
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0d52234af021a466a713c3194bb693761133ff80
6,266
py
Python
ontospy/core/__init__.py
KGerring/Ontospy
337718d4abec5b390e5ff3caa76ab307e8b3674e
[ "MIT" ]
null
null
null
ontospy/core/__init__.py
KGerring/Ontospy
337718d4abec5b390e5ff3caa76ab307e8b3674e
[ "MIT" ]
1
2022-02-14T11:34:16.000Z
2022-02-14T11:34:16.000Z
ontospy/core/__init__.py
KGerring/Ontospy
337718d4abec5b390e5ff3caa76ab307e8b3674e
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- # /Users/kristen/_tmp/Ontospy/ontospy/core/__init__.py import logging import os import sys from ..VERSION import VERSION from ..VERSION import __version__ from .ontospy import Ontospy from .utils import printDebug logging.basicConfig() try: from configparser impor...
40.954248
79
0.635653
605
6,266
6.320661
0.370248
0.046025
0.058839
0.043933
0.464958
0.393828
0.357218
0.313808
0.268305
0.268305
0
0.005122
0.252154
6,266
152
80
41.223684
0.810926
0.105969
0
0.066038
0
0
0.268341
0.041794
0
0
0
0
0
1
0
false
0.009434
0.301887
0
0.301887
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
0
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
b48fa9f622f258aca5890ae13ad07cd341de9ce0
4,822
py
Python
src/python/pants/cache/cache_setup.py
hythloday/pants
107e9b0957f6949ac4bd535fbef8d2d8cba05c5c
[ "Apache-2.0" ]
11
2015-01-20T01:39:41.000Z
2019-08-08T07:27:44.000Z
src/python/pants/cache/cache_setup.py
hythloday/pants
107e9b0957f6949ac4bd535fbef8d2d8cba05c5c
[ "Apache-2.0" ]
1
2019-08-21T07:29:26.000Z
2019-08-21T07:29:26.000Z
src/python/pants/cache/cache_setup.py
fakeNetflix/square-repo-pants
28a018c7f47900aec4f576c81a52e0e4b41d9fec
[ "Apache-2.0" ]
5
2015-03-30T02:46:53.000Z
2018-03-08T20:10:43.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (nested_scopes, generators, division, absolute_import, with_statement, print_function, unicode_literals) import os import url...
44.238532
97
0.702613
653
4,822
5.108729
0.316998
0.050659
0.016787
0.010192
0.105516
0.105516
0.079137
0.044964
0.023381
0
0
0.010085
0.198051
4,822
108
98
44.648148
0.852599
0.251141
0
0.133333
0
0
0.124685
0
0
0
0
0
0
1
0.053333
false
0.066667
0.093333
0.026667
0.346667
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
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
b49b43c71a1aee44b6f32af6a7582a31d1c34c3c
2,396
py
Python
routers/reset_password_router.py
gdetam/recipes
d9e744fa2ca3512847158bca782b070f0b9752af
[ "MIT" ]
null
null
null
routers/reset_password_router.py
gdetam/recipes
d9e744fa2ca3512847158bca782b070f0b9752af
[ "MIT" ]
null
null
null
routers/reset_password_router.py
gdetam/recipes
d9e744fa2ca3512847158bca782b070f0b9752af
[ "MIT" ]
null
null
null
"""this file router for home page.""" from app import app, bcrypt, mail from flask import flash, redirect, render_template, url_for from flask_login import current_user from flask_mail import Message from forms.request_reset_form import RequestResetForm from forms.reset_password_form import ResetPasswordForm from...
35.235294
91
0.667362
294
2,396
5.278912
0.370748
0.027062
0.054768
0.064433
0.302835
0.246134
0.164948
0.164948
0.164948
0.100515
0
0.000538
0.224124
2,396
67
92
35.761194
0.83432
0.078047
0
0.244898
0
0
0.236397
0.03155
0
0
0
0
0
1
0.061224
false
0.142857
0.163265
0
0.367347
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b49fe4c7c6cb7146fa697bdfda5a093326ade9e4
1,671
py
Python
configlib/config_example.py
ddorn/pyconfiglib
3ad01d0bb9344e18719d82a5928b4d8e5fe726ac
[ "MIT" ]
1
2017-10-17T14:20:32.000Z
2017-10-17T14:20:32.000Z
configlib/config_example.py
ddorn/configlib
3ad01d0bb9344e18719d82a5928b4d8e5fe726ac
[ "MIT" ]
5
2019-02-05T07:54:06.000Z
2019-02-09T01:23:10.000Z
configlib/config_example.py
ddorn/configlib
3ad01d0bb9344e18719d82a5928b4d8e5fe726ac
[ "MIT" ]
1
2019-02-05T21:13:14.000Z
2019-02-05T21:13:14.000Z
#!/usr/bin/env python3 import configlib from configlib import conftypes class WallColors(configlib.SubConfig): east = (255, 0, 0) __east_type__ = conftypes.color __east_hint__ = 'The color of the eastern wall, where the sun rises.' west = (0, 255, 0) __west_type__ = conftypes.color __west_hi...
24.940299
76
0.66547
218
1,671
4.619266
0.344037
0.062562
0.089374
0.069513
0.125124
0.057597
0.057597
0.057597
0
0
0
0.023791
0.245362
1,671
66
77
25.318182
0.774782
0.036505
0
0
0
0
0.279302
0
0
0
0
0
0
1
0.023256
false
0
0.046512
0
0.906977
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b4b798a0e5f4a0d4e2394a97bfceb4b55b198bf6
468
py
Python
whetlab/server/api/settings.py
schevalier/Whetlab-Python-Client
e934424e9ca6f06617a6421509d13c0cc87777e7
[ "BSD-4-Clause" ]
4
2015-07-31T12:47:36.000Z
2021-04-14T16:37:55.000Z
whetlab/server/api/settings.py
schevalier/Whetlab-Python-Client
e934424e9ca6f06617a6421509d13c0cc87777e7
[ "BSD-4-Clause" ]
null
null
null
whetlab/server/api/settings.py
schevalier/Whetlab-Python-Client
e934424e9ca6f06617a6421509d13c0cc87777e7
[ "BSD-4-Clause" ]
3
2016-03-25T02:23:09.000Z
2018-05-04T03:09:02.000Z
# Returns the settings config for an experiment # class Settings(): def __init__(self, client): self.client = client # Return the settings corresponding to the experiment. # '/alpha/settings/' GET # # experiment - Experiment id to filter by. def get(self, experiment, options = {}): body = options['query'] i...
23.4
63
0.700855
58
468
5.586207
0.465517
0.092593
0
0
0
0
0
0
0
0
0
0
0.17735
468
19
64
24.631579
0.841558
0.346154
0
0
0
0
0.120805
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b4c69779bca216ac2fdecb4ce764b9bd82910626
4,022
py
Python
3.7.0/lldb-3.7.0.src/test/functionalities/dynamic_value_child_count/TestDynamicValueChildCount.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
3
2016-02-10T14:18:40.000Z
2018-02-05T03:15:56.000Z
3.7.0/lldb-3.7.0.src/test/functionalities/dynamic_value_child_count/TestDynamicValueChildCount.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
1
2016-02-10T15:40:03.000Z
2016-02-10T15:40:03.000Z
3.7.0/lldb-3.7.0.src/test/functionalities/dynamic_value_child_count/TestDynamicValueChildCount.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
null
null
null
""" Test that dynamic values update their child count correctly """ import os, time import re import unittest2 import lldb, lldbutil from lldbtest import * class DynamicValueChildCountTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @skipUnlessDarwin @python_api_test @dsym_test @expe...
41.895833
138
0.607161
451
4,022
5.21286
0.314856
0.059549
0.034028
0.044237
0.477669
0.434283
0.410038
0.410038
0.370055
0.349213
0
0.010306
0.300348
4,022
95
139
42.336842
0.82516
0.165341
0
0.203125
0
0
0.147792
0
0
0
0
0
0.15625
1
0.0625
false
0.125
0.09375
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b4d2017b49fe6316a672a451be86512abffcc3ff
1,189
py
Python
src/words/parser/parse.py
DavidStrootman/ATP
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
2
2021-08-20T17:56:15.000Z
2021-08-21T01:04:08.000Z
src/words/parser/parse.py
DavidStrootman/Words
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
null
null
null
src/words/parser/parse.py
DavidStrootman/Words
72005be0ac75339bb5da037a7e98573e338d16db
[ "MIT" ]
null
null
null
from typing import Iterator, List from words.token_types.lexer_token import LexerToken from words.parser.parse_util import Program class Parser: """ The Parser class is used to for parsing lexer tokens into a program the interpreter can interpret. """ @staticmethod def parse(tokens: Iterator[Lexe...
32.135135
117
0.661901
140
1,189
5.542857
0.407143
0.070876
0.081186
0.041237
0.14433
0
0
0
0
0
0
0.003436
0.26577
1,189
36
118
33.027778
0.885452
0.396972
0
0.133333
0
0
0.017886
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b4d899e894bbf6f3628839a4953b755568b7c983
831
py
Python
sistemaDeGestaoDeServicosPublicos/Orgao/admin.py
deyviddalbem/TrabalhoDeConclusaoDeCurso
4375843b6cbaccbc5822c20711b4ee3ecd6112d4
[ "MIT" ]
null
null
null
sistemaDeGestaoDeServicosPublicos/Orgao/admin.py
deyviddalbem/TrabalhoDeConclusaoDeCurso
4375843b6cbaccbc5822c20711b4ee3ecd6112d4
[ "MIT" ]
7
2020-02-12T02:27:44.000Z
2022-02-10T14:04:54.000Z
sistemaDeGestaoDeServicosPublicos/Orgao/admin.py
deyviddalbem/TrabalhoDeConclusaoDeCurso
4375843b6cbaccbc5822c20711b4ee3ecd6112d4
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.models import User from .models import Orgao from .models import Lotacao from .models import TipoLotacao #from .models import Pessoa class OrgaoAdmin(admin.ModelAdmin): list_display = ('id', 'nomeOrgao', 'descricao', 'emailOrgao', 'nomeResponsavelOrgao'...
28.655172
124
0.743682
89
831
6.876404
0.370787
0.098039
0.104575
0.127451
0.137255
0
0
0
0
0
0
0
0.115523
831
28
125
29.678571
0.832653
0.031288
0
0
0
0
0.225686
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.823529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b4da43b8c4ceec4c769216c8c1085cc926826869
7,258
py
Python
azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/monitor/models/__init__.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/mgmt/monitor/models/__init__.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.606218
106
0.806007
595
7,258
9.583193
0.327731
0.022098
0.018415
0.024553
0.105226
0.072957
0.072957
0.072957
0.072957
0.072957
0
0.000157
0.120557
7,258
192
107
37.802083
0.893154
0.062276
0
0
0
0
0.240618
0.123179
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b4dcf2846cc5684a6f8cfd7e7732a18f2cfe3935
467
py
Python
lib/Graph/State.py
dillmann/rscs
502308463f138ec1314bcfd36ae00524a8bef33c
[ "MIT" ]
null
null
null
lib/Graph/State.py
dillmann/rscs
502308463f138ec1314bcfd36ae00524a8bef33c
[ "MIT" ]
null
null
null
lib/Graph/State.py
dillmann/rscs
502308463f138ec1314bcfd36ae00524a8bef33c
[ "MIT" ]
null
null
null
# author: brian dillmann # for rscs class State: def __init__(self, name): if not isinstance(name, basestring): raise TypeError('State name must be a string') if not len(name): raise ValueError('Cannot create State with empty name') self.name = name self.transitions = [] self.outputs = {} def addO...
22.238095
58
0.715203
61
467
5.409836
0.590164
0.048485
0
0
0
0
0
0
0
0
0
0
0.173448
467
20
59
23.35
0.854922
0.066381
0
0
0
0
0.143187
0
0
0
0
0
0
1
0.230769
false
0
0
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b4e01b9db25c97ec18ae5055d45b88d4a71eff4b
5,135
py
Python
test_rapiddl.py
toose/rapiddl
703788703ac3c4431e6e29136191873afdcbb9a5
[ "MIT" ]
1
2020-10-06T13:12:19.000Z
2020-10-06T13:12:19.000Z
test_rapiddl.py
toose/rapiddl
703788703ac3c4431e6e29136191873afdcbb9a5
[ "MIT" ]
null
null
null
test_rapiddl.py
toose/rapiddl
703788703ac3c4431e6e29136191873afdcbb9a5
[ "MIT" ]
null
null
null
from unittest import TestCase, mock from tempfile import TemporaryDirectory, gettempdir import os import logging import requests import uuid from rapiddl import main, clean_name, build_payload, make_staging, get, _get, unzip class TestRapiddl(TestCase): @mock.patch('rapiddl.os.mkdir') def setUp(self, mock_mk...
46.681818
141
0.688802
666
5,135
5.115616
0.207207
0.073965
0.131494
0.052832
0.516584
0.478133
0.448782
0.415321
0.403874
0.403874
0
0.021331
0.160078
5,135
109
142
47.110092
0.768607
0.066991
0
0.280488
0
0.012195
0.250474
0.066723
0
0
0
0
0.170732
1
0.146341
false
0.073171
0.085366
0
0.243902
0
0
0
0
null
0
0
0
0
0
0
0
0
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
b4e0e8828f5407e0bcc7486dacc11e5a348cf013
1,125
py
Python
problem/models.py
afg984/happpycoding
d881de4d70abea3062928454d55dcc816d37b3a5
[ "MIT" ]
6
2015-11-28T13:34:38.000Z
2016-10-11T11:59:50.000Z
problem/models.py
afg984/happpycoding
d881de4d70abea3062928454d55dcc816d37b3a5
[ "MIT" ]
null
null
null
problem/models.py
afg984/happpycoding
d881de4d70abea3062928454d55dcc816d37b3a5
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.core.urlresolvers import reverse # Create your models here. class Problem(models.Model): oj_id = models.IntegerField() @property def share_url(self): return reverse('problem:share', kwargs={'oj_id': self.oj_id}) ...
24.456522
71
0.693333
137
1,125
5.620438
0.313869
0.166234
0.077922
0.109091
0.496104
0.355844
0.218182
0.218182
0.218182
0.218182
0
0.002183
0.185778
1,125
45
72
25
0.838428
0.021333
0
0.266667
0
0
0.049136
0
0
0
0
0
0
1
0.066667
false
0
0.1
0.066667
0.9
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
b4f8e00aece2d8781c1f80124d252d746e3fd8e2
7,799
py
Python
edm_web1/app/template/migrations/0001_initial.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
edm_web1/app/template/migrations/0001_initial.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
edm_web1/app/template/migrations/0001_initial.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-12 11:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='RefTem...
76.460784
766
0.630337
935
7,799
5.148663
0.284492
0.07312
0.062318
0.063149
0.499377
0.391566
0.294973
0.24865
0.223099
0.204404
0
0.181067
0.192717
7,799
101
767
77.217822
0.583545
0.008719
0
0.430108
1
0.032258
0.374612
0.253882
0
0
0
0
0
1
0
false
0
0.021505
0
0.064516
0.010753
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
b4fcb11526425bd8f38a77b3904e021317fd23bf
265
py
Python
Codewars/SumFibs_6_kyu.py
maxcohen31/A-bored-math-student
007beb4dabf7b4406f48e9a3a967c29d032eab89
[ "MIT" ]
null
null
null
Codewars/SumFibs_6_kyu.py
maxcohen31/A-bored-math-student
007beb4dabf7b4406f48e9a3a967c29d032eab89
[ "MIT" ]
null
null
null
Codewars/SumFibs_6_kyu.py
maxcohen31/A-bored-math-student
007beb4dabf7b4406f48e9a3a967c29d032eab89
[ "MIT" ]
null
null
null
def sum_fibs(n): fibo = [] a, b = 0, 1 even_sum = 0 for i in range(2, n+1): a, b = b, a+b fibo.append(b) for x in fibo: if x % 2 == 0: even_sum = even_sum + x return even_sum print(sum_fibs(9))
22.083333
35
0.449057
47
265
2.404255
0.446809
0.247788
0
0
0
0
0
0
0
0
0
0.052632
0.426415
265
12
36
22.083333
0.690789
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.083333
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b4fef25b19867055342dbfdef3bce04e473dbd05
7,465
py
Python
dml/NN/neuralNetwork.py
justdark/dml
4a547a26a171262a869b18e56e8e2abdd4c8c8ed
[ "WTFPL" ]
708
2015-01-07T20:17:58.000Z
2022-03-07T02:30:42.000Z
dml/NN/neuralNetwork.py
justdark/dml
4a547a26a171262a869b18e56e8e2abdd4c8c8ed
[ "WTFPL" ]
2
2016-12-15T03:15:57.000Z
2021-06-16T01:25:13.000Z
dml/NN/neuralNetwork.py
justdark/dml
4a547a26a171262a869b18e56e8e2abdd4c8c8ed
[ "WTFPL" ]
333
2015-01-09T06:51:46.000Z
2022-01-16T08:49:58.000Z
''' the whole structure of dml.NN is just like DeepLearnToolbox(https://github.com/rasmusbergpalm/DeepLearnToolbox) I think the whole architecture of it is clear and easy to understand so I copy it to python I also recommend UFLDL(http://ufldl.stanford.edu/wiki/index.php/UFLDL_Tutorial) to learn Neural Network ...
32.316017
182
0.629605
1,300
7,465
3.586923
0.157692
0.050397
0.032168
0.021017
0.34956
0.254772
0.20223
0.183358
0.129101
0.129101
0
0.028663
0.168118
7,465
231
183
32.316017
0.722222
0.135968
0
0.137931
0
0
0.023822
0
0
0
0
0.004329
0
0
null
null
0.013793
0.048276
null
null
0.02069
0
0
0
null
0
0
0
0
0
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
3706b66e3b4c2c2b33395e4fc76f6c0d6a2e7524
430
py
Python
setup.py
adamlin120/NATODS
16e82d18b0a7d514c259006d91d8381030568e01
[ "Apache-2.0" ]
null
null
null
setup.py
adamlin120/NATODS
16e82d18b0a7d514c259006d91d8381030568e01
[ "Apache-2.0" ]
null
null
null
setup.py
adamlin120/NATODS
16e82d18b0a7d514c259006d91d8381030568e01
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='src', version='0.0.1', description='Non-Autoregressive Task-Oriented System', author='Yen-Ting (Adam), Lin', author_email='r08944064@csie.ntu.edu.tw', url='https://github.com/adamlin120/NATODS', install_r...
25.294118
60
0.616279
49
430
5.326531
0.877551
0.091954
0
0
0
0
0
0
0
0
0
0.042813
0.239535
430
16
61
26.875
0.755352
0.046512
0
0
0
0
0.366748
0.061125
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
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
3708986b7c7fcaec41f6fc7950a144e78b4545d7
11,892
py
Python
src/ebay_rest/api/sell_analytics/api/customer_service_metric_api.py
gbm001/ebay_rest
077d3478423ccd80ff35e0361821d6a11180bc54
[ "MIT" ]
3
2021-12-12T04:28:03.000Z
2022-03-10T03:29:18.000Z
src/ebay_rest/api/sell_analytics/api/customer_service_metric_api.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
33
2021-06-16T20:44:36.000Z
2022-03-30T14:55:06.000Z
src/ebay_rest/api/sell_analytics/api/customer_service_metric_api.py
jdavv/ebay_rest
20fc88c6aefdae9ab90f9c1330e79abddcd750cd
[ "MIT" ]
7
2021-06-03T09:30:23.000Z
2022-03-08T19:51:33.000Z
# coding: utf-8 """ Seller Service Metrics API The <i>Analytics API</i> provides data and information about a seller and their eBay business. <br><br>The resources and methods in this API let sellers review information on their listing performance, metrics on their customer service performance, and details...
82.013793
1,272
0.728473
1,596
11,892
5.260025
0.172932
0.083979
0.097558
0.056581
0.707088
0.673615
0.654795
0.633591
0.622633
0.588684
0
0.008027
0.182896
11,892
144
1,273
82.583333
0.855923
0.639842
0
0
0
0
0.274747
0.166667
0
0
0
0
0
1
0.042254
false
0
0.056338
0
0.15493
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
370bc7e34f84eb52d02f02c11c8b233c36ca280a
916
py
Python
CS600/class/recursion.py
Am3ra/CS
b31026280917479b86cf4f1be1261b247513d550
[ "MIT" ]
1
2018-08-22T20:17:01.000Z
2018-08-22T20:17:01.000Z
CS600/class/recursion.py
Am3ra/CS
b31026280917479b86cf4f1be1261b247513d550
[ "MIT" ]
null
null
null
CS600/class/recursion.py
Am3ra/CS
b31026280917479b86cf4f1be1261b247513d550
[ "MIT" ]
null
null
null
# Recursion needs two things: # 1: A base case (if x then y) # 2: A Recursive (inductive) case # a way to simplify the problem after simple ops. # 1: factorial def factorial(fact): if fact <= 1: # Base Case: x=1 return 1 else: return fact * factorial(fact-1) print(factorial(6)) def...
17.960784
88
0.627729
132
916
4.356061
0.44697
0.048696
0.027826
0.041739
0.062609
0
0
0
0
0
0
0.037092
0.264192
916
50
89
18.32
0.816024
0.328603
0
0.26087
0
0
0.011628
0
0
0
0
0
0
1
0.173913
false
0
0
0
0.521739
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
37160224eb7cf8117e1674c6d89f2a6a204a3a7a
2,631
py
Python
MainWindow.py
scribblemaniac/bike-mon
3d0b262850b73313fb206ab814a97133d7491170
[ "MIT" ]
1
2021-12-05T12:01:11.000Z
2021-12-05T12:01:11.000Z
MainWindow.py
scribblemaniac/bike-mon
3d0b262850b73313fb206ab814a97133d7491170
[ "MIT" ]
null
null
null
MainWindow.py
scribblemaniac/bike-mon
3d0b262850b73313fb206ab814a97133d7491170
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'MainWindow.ui' # # Created by: PyQt5 UI code generator 5.7.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWi...
47.836364
122
0.719878
257
2,631
7.350195
0.315175
0.071996
0.044468
0.057173
0.280572
0.242456
0.242456
0.242456
0.242456
0.242456
0
0.017874
0.170658
2,631
54
123
48.722222
0.847846
0.069555
0
0.142857
1
0
0.064344
0
0
0
0
0
0
1
0.047619
false
0
0.02381
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3720ece2207ab5db72a36af37ee32881d7cb7c91
412
py
Python
backend/api/app/__init__.py
osmontrouge/osmybiz
8253bb5a923f332c644db83f18dde48dde57f78c
[ "MIT" ]
null
null
null
backend/api/app/__init__.py
osmontrouge/osmybiz
8253bb5a923f332c644db83f18dde48dde57f78c
[ "MIT" ]
14
2022-02-10T22:25:41.000Z
2022-03-02T09:40:55.000Z
backend/api/app/__init__.py
osmontrouge/osmybiz
8253bb5a923f332c644db83f18dde48dde57f78c
[ "MIT" ]
null
null
null
from flask import Flask from app.db import db from app.api import api from app.util import SignedIntConverter def create_app(dbConnection): app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = dbConnection app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db.init_app(app) app.url_map.c...
27.466667
61
0.762136
55
412
5.472727
0.509091
0.069767
0.126246
0
0
0
0
0
0
0
0
0
0.15534
412
14
62
29.428571
0.864943
0
0
0
0
0
0.152913
0.128641
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3722a75e0e515d07edcf36b6c9a3625c6bd3923a
1,187
py
Python
catalyst/dl/scripts/utils.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
catalyst/dl/scripts/utils.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
catalyst/dl/scripts/utils.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
import os import shutil import pathlib from datetime import datetime from catalyst.utils.misc import import_module def prepare_modules(expdir, dump_dir=None): expdir = expdir[:-1] if expdir.endswith("/") else expdir expdir_name = expdir.rsplit("/", 1)[-1] if dump_dir is not None: current_date = ...
28.95122
76
0.615838
162
1,187
4.271605
0.351852
0.040462
0.030347
0.043353
0.049133
0.049133
0
0
0
0
0
0.006586
0.232519
1,187
40
77
29.675
0.753019
0.013479
0
0
0
0
0.116339
0.061591
0
0
0
0.025
0
1
0.034483
false
0
0.206897
0
0.275862
0
0
0
0
null
0
0
0
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
3727a4f61e7d39e04465de369c8a44716b191e62
1,546
py
Python
pyins/tests/test_earth.py
toniklenk/pyins
db18a6083dbd7397315095d9a5096cd515f7e248
[ "MIT" ]
52
2017-02-22T15:51:46.000Z
2021-12-13T08:02:04.000Z
pyins/tests/test_earth.py
toniklenk/pyins
db18a6083dbd7397315095d9a5096cd515f7e248
[ "MIT" ]
5
2018-06-04T07:16:24.000Z
2022-01-29T19:44:48.000Z
pyins/tests/test_earth.py
toniklenk/pyins
db18a6083dbd7397315095d9a5096cd515f7e248
[ "MIT" ]
26
2018-01-29T15:09:23.000Z
2022-03-03T11:05:38.000Z
from numpy.testing import assert_allclose, run_module_suite from pyins import earth def test_principal_radii(): lat = 0 re, rn = earth.principal_radii(lat) assert_allclose(re, earth.R0, rtol=1e-10) assert_allclose(rn, earth.R0 * (1 - earth.E2), rtol=1e-10) lat = [0, 90] re, rn = earth.princip...
29.730769
73
0.609961
246
1,546
3.666667
0.191057
0.201774
0.079823
0.05765
0.618625
0.430155
0.366962
0.366962
0.155211
0
0
0.14477
0.227038
1,546
51
74
30.313725
0.610042
0.01229
0
0.111111
0
0
0.005246
0
0
0
0
0
0.361111
1
0.083333
false
0
0.055556
0
0.138889
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3729729ed3b2bed687fee94cd91661415c8695e7
612
py
Python
muvimaker/editor/menubar/soundmenu.py
JannisNe/muvi_maker
5599789ccd12402f273a05b7421f03503087ab9b
[ "MIT" ]
2
2021-06-11T08:56:18.000Z
2021-12-18T11:40:05.000Z
muvimaker/editor/menubar/soundmenu.py
JannisNe/muvimaker
5599789ccd12402f273a05b7421f03503087ab9b
[ "MIT" ]
49
2021-06-10T12:20:51.000Z
2022-03-01T09:03:42.000Z
muvimaker/editor/menubar/soundmenu.py
JannisNe/muvimaker
5599789ccd12402f273a05b7421f03503087ab9b
[ "MIT" ]
null
null
null
import tkinter as tk from muvimaker import main_logger, mv_scratch_key logger = main_logger.getChild(__name__) class Soundmenu(tk.Menu): def __init__(self, menubar): logger.debug('setting up soundmenu') tk.Menu.__init__(self, menubar) self._setup_commands() self.commands = dict()...
26.608696
68
0.689542
77
612
5.103896
0.467532
0.091603
0.076336
0.101781
0
0
0
0
0
0
0
0
0.210784
612
23
69
26.608696
0.813665
0.122549
0
0
0
0
0.08972
0
0
0
0
0
0
1
0.214286
false
0
0.142857
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
1
0
0
0
0
0
0
0
1
2e9eefeb29c720595d517e04f1569d286cbcc84f
2,736
py
Python
server.py
anoopisaac/my-todo-serverside
2d7b3c5278f710ca0e8584dc07359f5f119cae45
[ "Apache-2.0" ]
null
null
null
server.py
anoopisaac/my-todo-serverside
2d7b3c5278f710ca0e8584dc07359f5f119cae45
[ "Apache-2.0" ]
null
null
null
server.py
anoopisaac/my-todo-serverside
2d7b3c5278f710ca0e8584dc07359f5f119cae45
[ "Apache-2.0" ]
null
null
null
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import SocketServer import urllib import json class S(BaseHTTPRequestHandler): app_id = "288727298296356" app_secret = "c316f5bcb0b28c1012cd6ce759af320e" def _set_headers(self): self.send_response(200) self.send_h...
35.076923
131
0.61769
331
2,736
4.851964
0.353474
0.067248
0.026152
0.035492
0.11208
0.083437
0.083437
0.044832
0
0
0
0.035201
0.262792
2,736
77
132
35.532468
0.761031
0.013158
0
0.169811
0
0.018868
0.215
0.04875
0
0
0
0
0
0
null
null
0
0.09434
null
null
0.037736
0
0
0
null
0
0
0
0
0
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
2e9f30cb670372b25d5c8cc38bf95fbbfc7392ca
3,627
py
Python
day07.py
ASAv123456789/ASAv
3623c19bb4e7a4b5a268528e5c4291fa118bdb81
[ "Apache-2.0" ]
null
null
null
day07.py
ASAv123456789/ASAv
3623c19bb4e7a4b5a268528e5c4291fa118bdb81
[ "Apache-2.0" ]
null
null
null
day07.py
ASAv123456789/ASAv
3623c19bb4e7a4b5a268528e5c4291fa118bdb81
[ "Apache-2.0" ]
null
null
null
''' 1. def A(a): best=int(max(a)) res=0 for i in a: i=int(i) if i>=best-10: print('Student '+str(res)+' socore is '+str(i)+' and grade is A') elif i>=best-20: print('Student '+str(res)+' socore is '+str(i)+' and grade is B') elif i >=best-30: ...
18.6
97
0.424869
652
3,627
2.363497
0.144172
0.019468
0.046723
0.064244
0.314731
0.269955
0.221285
0.146658
0.129786
0.129786
0
0.052299
0.346292
3,627
194
98
18.695876
0.597638
0.1748
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
2ea3484b1568d535332405723c28c4c15f80d6c7
2,256
py
Python
inferential/test/test_oneway_anova.py
eribean/RyStats
1cdd0ea55a074cc81e61d2845216f395ba095f10
[ "MIT" ]
4
2021-08-05T11:47:30.000Z
2021-10-31T12:03:48.000Z
inferential/test/test_oneway_anova.py
eribean/RyStats
1cdd0ea55a074cc81e61d2845216f395ba095f10
[ "MIT" ]
12
2021-08-05T11:43:22.000Z
2021-10-29T18:05:48.000Z
inferential/test/test_oneway_anova.py
eribean/RyStats
1cdd0ea55a074cc81e61d2845216f395ba095f10
[ "MIT" ]
null
null
null
import unittest import numpy as np from RyStats.inferential import (equal_variance_oneway_anova, unequal_variance_oneway_anova, repeated_oneway_anova) class TestOneWayAnova(unittest.TestCase): """Test Fixture for 1-way Anova Tests.""" def tes...
29.298701
68
0.566046
257
2,256
4.743191
0.2607
0.036916
0.062346
0.065628
0.603774
0.574241
0.460213
0.460213
0.433962
0.433962
0
0.096796
0.335993
2,256
77
69
29.298701
0.716956
0.088652
0
0.488889
0
0
0.014293
0
0
0
0
0
0.088889
1
0.088889
false
0.2
0.066667
0
0.177778
0
0
0
0
null
0
0
0
0
0
0
0
0
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
2ea6a3d0659a4945e28d465fab43af3b5378bba5
8,410
py
Python
users/migrations/0001_initial.py
Wipersee/profielp
e6144c51dbdb457dc85295904902bb8353ebda2e
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
Wipersee/profielp
e6144c51dbdb457dc85295904902bb8353ebda2e
[ "MIT" ]
1
2021-11-15T10:20:28.000Z
2021-11-15T10:20:28.000Z
users/migrations/0001_initial.py
Wipersee/profielp
e6144c51dbdb457dc85295904902bb8353ebda2e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-18 17:46 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import uuid class Migration(migrations.Migration): initial = True dependencies = [ ...
60.942029
357
0.617004
887
8,410
5.702368
0.248027
0.03796
0.023527
0.030447
0.471926
0.465599
0.416766
0.374259
0.341439
0.305852
0
0.007697
0.243044
8,410
137
358
61.386861
0.786836
0.005351
0
0.469231
1
0
0.28662
0.02523
0
0
0
0
0
1
0
false
0.007692
0.046154
0
0.076923
0
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
2ea76878f81b9a757decd3dd2d7f6945c3c18393
1,206
py
Python
Advance/exercises/save_user_db.py
AMZEnterprise/Python_Course_Jadi
4c1b3512ae0292f897d3ae2aa6449be6a5adb514
[ "MIT" ]
null
null
null
Advance/exercises/save_user_db.py
AMZEnterprise/Python_Course_Jadi
4c1b3512ae0292f897d3ae2aa6449be6a5adb514
[ "MIT" ]
null
null
null
Advance/exercises/save_user_db.py
AMZEnterprise/Python_Course_Jadi
4c1b3512ae0292f897d3ae2aa6449be6a5adb514
[ "MIT" ]
null
null
null
import re import mysql.connector def check_email(email): reg = r"^[a-zA-Z0-9_.+-]+@[a-zA-Z]+\.[a-zA-Z]+$" if re.match(reg, email): return True else: return False def check_password(password): reg = r"^[a-zA-Z0-9]+$" if re.match(reg, password): return True else: ...
30.15
121
0.62272
163
1,206
4.539877
0.404908
0.087838
0.075676
0.018919
0.305405
0.102703
0
0
0
0
0
0.013015
0.235489
1,206
40
122
30.15
0.789588
0
0
0.30303
0
0.060606
0.324772
0.052196
0
0
0
0
0
1
0.090909
false
0.333333
0.060606
0
0.272727
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2eadd3c68796d810e359d4b752c7dc225205b73a
7,964
py
Python
sshmetroclient/main.py
thilux/ssh_metro_client
abe484a96bda349ecb7ea1efd24f152bab8f725b
[ "Apache-2.0" ]
null
null
null
sshmetroclient/main.py
thilux/ssh_metro_client
abe484a96bda349ecb7ea1efd24f152bab8f725b
[ "Apache-2.0" ]
7
2018-03-27T17:51:01.000Z
2019-12-03T05:18:20.000Z
sshmetroclient/main.py
thilux/ssh_metro_client
abe484a96bda349ecb7ea1efd24f152bab8f725b
[ "Apache-2.0" ]
null
null
null
import requests import pexpect import getpass import argparse import json import time import signal import struct import fcntl import termios import sys parser = argparse.ArgumentParser() parser.add_argument('target_connection_string', help='The connection string to the target machine. Can be provided in ' ...
37.214953
120
0.660221
1,026
7,964
4.934698
0.207602
0.094805
0.044243
0.042662
0.251037
0.183686
0.106656
0.083547
0.059253
0.059253
0
0.009297
0.257157
7,964
213
121
37.389671
0.846518
0.250251
0
0.129032
0
0
0.18307
0.029766
0
0
0
0
0
1
0.056452
false
0.129032
0.08871
0
0.177419
0.008065
0
0
0
null
0
0
0
0
0
0
0
0
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
2eb704f1cb9bd4ed7b2140966bc17e32bb67b87c
10,926
py
Python
creopyson/familytable.py
Zepmanbc/cps_workflow
0926a01c3ef1f163b43edcdae84cc77a1842f3b0
[ "MIT" ]
null
null
null
creopyson/familytable.py
Zepmanbc/cps_workflow
0926a01c3ef1f163b43edcdae84cc77a1842f3b0
[ "MIT" ]
null
null
null
creopyson/familytable.py
Zepmanbc/cps_workflow
0926a01c3ef1f163b43edcdae84cc77a1842f3b0
[ "MIT" ]
null
null
null
"""Familytable module.""" def add_inst(client, instance, file_=None): """Add a new instance to a family table. Creates a family table if one does not exist. Args: client (obj): creopyson Client. instance (str): New instance name. `file_` (str, optional): ...
27.246883
81
0.554091
1,220
10,926
4.817213
0.106557
0.06636
0.028756
0.048664
0.727242
0.673473
0.655777
0.649651
0.63689
0.632295
0
0
0.346421
10,926
400
82
27.315
0.822994
0.49579
0
0.681818
0
0
0.121251
0
0
0
0
0.0025
0
1
0.098485
false
0
0
0
0.19697
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2eb8d8802075999b4b608606ceefb5e9a03e89ef
2,065
py
Python
src/docker_remote/core/tunnel.py
NiklasRosenstein/wicked
6c59d33bac3b588e7cf406e42240e2a4c80e6a3f
[ "MIT" ]
6
2018-03-06T14:24:10.000Z
2020-01-14T10:05:06.000Z
src/docker_remote/core/tunnel.py
NiklasRosenstein/docker-remote
6c59d33bac3b588e7cf406e42240e2a4c80e6a3f
[ "MIT" ]
7
2018-03-06T13:10:53.000Z
2018-03-18T11:11:29.000Z
src/docker_remote/core/tunnel.py
NiklasRosenstein/wicked
6c59d33bac3b588e7cf406e42240e2a4c80e6a3f
[ "MIT" ]
2
2018-03-08T23:53:50.000Z
2019-03-12T22:51:04.000Z
# -*- coding: utf8 -*- # Copyright (c) 2019 Niklas Rosenstein # # 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, mo...
32.265625
78
0.71138
295
2,065
4.874576
0.477966
0.061196
0.018081
0.026426
0.031989
0
0
0
0
0
0
0.00361
0.195157
2,065
63
79
32.777778
0.861613
0.547216
0
0
0
0
0.050661
0
0
0
0
0
0
1
0.193548
false
0.064516
0.064516
0.032258
0.483871
0
0
0
0
null
0
0
0
0
0
0
0
0
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
2ec6bf873cb2b08d4387e1445a99460828994eae
7,539
py
Python
RESOLUTE/transcriptomics/scripts/transcriptomics_metadata_extract.py
ebi-ait/FAIRPlus
65ffb7cb8cf83ed4fec5312c947fda07631cf6a0
[ "BSD-3-Clause" ]
2
2019-08-30T09:49:50.000Z
2019-11-20T13:20:18.000Z
RESOLUTE/transcriptomics/scripts/transcriptomics_metadata_extract.py
ebi-ait/FAIRPlus
65ffb7cb8cf83ed4fec5312c947fda07631cf6a0
[ "BSD-3-Clause" ]
null
null
null
RESOLUTE/transcriptomics/scripts/transcriptomics_metadata_extract.py
ebi-ait/FAIRPlus
65ffb7cb8cf83ed4fec5312c947fda07631cf6a0
[ "BSD-3-Clause" ]
2
2019-08-30T10:00:22.000Z
2020-09-10T08:27:34.000Z
import json import os import csv import yaml from datetime import date data = dict( contact = dict(#mutiple submitters full_name = "Vitaly Sedlyarov", #autogenerated first_name = "Vitaly", last_name = "Sedlyarov", country = "Austria", #country for phone number, better controlled ...
47.415094
122
0.65128
912
7,539
5.235746
0.528509
0.015079
0.006702
0.012984
0.036021
0.023456
0
0
0
0
0
0.029253
0.26091
7,539
158
123
47.71519
0.82771
0.255339
0
0.134921
1
0.039683
0.323185
0.021077
0
0
0
0
0
1
0
false
0
0.039683
0
0.039683
0
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
2ed753984a07ae5fc8ea75ebc5fc88c570414bf0
999
py
Python
transfer-finder/fetcher.py
xtompok/osmawalk
fc63a36deaffaaebfd5022235bd3c4cb134d3cb2
[ "MIT" ]
1
2017-02-22T10:10:01.000Z
2017-02-22T10:10:01.000Z
transfer-finder/fetcher.py
xtompok/osmawalk
fc63a36deaffaaebfd5022235bd3c4cb134d3cb2
[ "MIT" ]
null
null
null
transfer-finder/fetcher.py
xtompok/osmawalk
fc63a36deaffaaebfd5022235bd3c4cb134d3cb2
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import fetchTransfer as ft import sys import json import re from lxml import etree import gpx with open(sys.argv[1],"r") as infile: injson = json.load(infile) outfilename = sys.argv[2] fetcher = ft.FetchTransfer(outfilename) splitter = re.compile("\((?P<flat>[0-9.]*), (?P<flon>[0-9.]*)\) \(...
28.542857
143
0.660661
138
999
4.782609
0.456522
0.012121
0.013636
0
0
0
0
0
0
0
0
0.015276
0.148148
999
34
144
29.382353
0.760282
0.021021
0
0
0
0.035714
0.138178
0
0
0
0
0
0
0
null
null
0
0.214286
null
null
0.035714
0
0
0
null
0
0
0
0
0
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
2edbb27fd1b4b4939b7ebf79671fac1a739ef5f8
12,349
py
Python
singleshot/canonraw.py
xythian/singleshot
e59478de4d6aa3c6b4f259b9bd526d7bf7bad234
[ "BSD-3-Clause" ]
1
2016-05-09T01:46:24.000Z
2016-05-09T01:46:24.000Z
singleshot/canonraw.py
xythian/singleshot
e59478de4d6aa3c6b4f259b9bd526d7bf7bad234
[ "BSD-3-Clause" ]
null
null
null
singleshot/canonraw.py
xythian/singleshot
e59478de4d6aa3c6b4f259b9bd526d7bf7bad234
[ "BSD-3-Clause" ]
null
null
null
# # Canon Raw manipulation # import sys from fnmatch import fnmatch import hotshot import os import mmap import time import timeit from datetime import datetime from singleshot.jpeg import JpegHeader, ExposureMetadata, DummyIptc, Ratio from singleshot.properties import * from singleshot.storage import FilesystemEn...
35.898256
157
0.538505
1,324
12,349
4.891994
0.251511
0.04076
0.027791
0.03551
0.190829
0.133395
0.118265
0.07874
0.056816
0.056816
0
0.043747
0.344724
12,349
343
158
36.002915
0.756673
0.113774
0
0.091912
0
0
0.072699
0.005959
0
0
0.024019
0
0
0
null
null
0.003676
0.047794
null
null
0.003676
0
0
0
null
0
0
0
0
0
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
2eddaafd85ff1d130f1108db777ffe5677bf3984
503
py
Python
ABC/abc101-abc150/abc106/c.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ABC/abc101-abc150/abc106/c.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ABC/abc101-abc150/abc106/c.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): s = input() k = int(input()) one_count = 0 for si in s: if si == '1': one_count += 1 else: break if s[0] == '1': if k == 1: print(s[0]) elif one_count >= k: print...
16.766667
32
0.363817
61
503
2.786885
0.360656
0.235294
0.082353
0.152941
0.211765
0
0
0
0
0
0
0.043137
0.493042
503
29
33
17.344828
0.623529
0.04175
0
0.227273
0
0
0.022173
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.045455
0.227273
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2ee4fd4f02fb447deb52b8e864d9cd51504086a6
1,441
py
Python
diskspace/diskspace_test.py
TecProg-20181/05--hugomartins013
9f0fc9151cf2f30553bbd193e5c45b2d9cf95098
[ "MIT" ]
null
null
null
diskspace/diskspace_test.py
TecProg-20181/05--hugomartins013
9f0fc9151cf2f30553bbd193e5c45b2d9cf95098
[ "MIT" ]
null
null
null
diskspace/diskspace_test.py
TecProg-20181/05--hugomartins013
9f0fc9151cf2f30553bbd193e5c45b2d9cf95098
[ "MIT" ]
null
null
null
import os import unittest import sys from diskspace import * class TestDiskSpace(unittest.TestCase): def test_subprocess_check_output(self): func = subprocess_check_output('pwd') cwd = os.getcwd()+'\n' self.assertEquals(cwd, func) def test_subprocess_check_output_error(self): ...
26.685185
71
0.634976
174
1,441
4.977011
0.356322
0.072748
0.138568
0.145497
0.289838
0.090069
0.090069
0
0
0
0
0.028945
0.256766
1,441
54
72
26.685185
0.779645
0
0
0.170732
0
0
0.04577
0
0
0
0
0
0.219512
1
0.219512
false
0
0.097561
0
0.341463
0.02439
0
0
0
null
0
0
0
0
0
0
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
2ef0a4152adb1b99fe08dda761f8d808fcd9aeb9
2,329
py
Python
project_similarity_vec_centroid.py
NorthDecoder/nasaMining
81706cb9e48d9469b27314123a4f7b6e063f033e
[ "MIT" ]
18
2015-04-16T03:12:57.000Z
2021-08-20T08:07:23.000Z
project_similarity_vec_centroid.py
jonroberts/nasaMining
32680b58de9111dfa714e355dbc79de3faba59c3
[ "MIT" ]
17
2021-05-25T23:45:19.000Z
2022-03-31T22:55:06.000Z
project_similarity_vec_centroid.py
NorthDecoder/nasaMining
81706cb9e48d9469b27314123a4f7b6e063f033e
[ "MIT" ]
12
2015-04-14T20:21:57.000Z
2021-05-12T22:01:53.000Z
from collections import defaultdict from pymongo import MongoClient import pandas as pd import numpy as np from scipy.spatial.distance import pdist, squareform, cdist import pymongo # def calc_sim(proj_keys, p1, i): # print p1 # psims = dict() # for p2 in proj_keys[i + 1:]: # cdf = 1. - cdist(proj...
35.287879
104
0.641906
326
2,329
4.460123
0.40184
0.013755
0.037139
0.019257
0.114168
0.114168
0.061898
0.061898
0.061898
0.061898
0
0.019376
0.202233
2,329
66
105
35.287879
0.763186
0.339201
0
0
0
0
0.166887
0.039578
0
0
0
0
0
0
null
null
0
0.206897
null
null
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2ef206afbc15f1c9cdb3f1ed511ed7ca16fd8497
292
py
Python
solutions/partition_equal_subset_sum/test.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/partition_equal_subset_sum/test.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/partition_equal_subset_sum/test.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
import unittest from .solution import canPartition class TestCase(unittest.TestCase): def test_example_one(self): nums = [1,5,11,5] self.assertTrue(canPartition(nums)) def test_example_two(self): nums = [1,2,3,5] self.assertFalse(canPartition(nums))
24.333333
44
0.674658
38
292
5.078947
0.552632
0.072539
0.145078
0
0
0
0
0
0
0
0
0.03913
0.212329
292
12
44
24.333333
0.8
0
0
0
0
0
0
0
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2c00be9915a0b81cbb6be38f7c09fd58c5ca3d12
6,524
py
Python
ambari-server/src/main/python/ambari_server/BackupRestore.py
emcvipr/ambari
045e0d2ac94b8b81819d2efbfd7e1bddc67a7756
[ "Apache-2.0", "MIT" ]
3
2019-06-20T11:49:36.000Z
2020-12-11T10:44:29.000Z
ambari-server/src/main/python/ambari_server/BackupRestore.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/python/ambari_server/BackupRestore.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
3
2017-10-31T11:42:31.000Z
2021-04-26T07:17:53.000Z
#!/usr/bin/env ambari-python-wrap ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (th...
34.702128
140
0.701104
896
6,524
4.962054
0.251116
0.024292
0.035088
0.022942
0.250562
0.206028
0.103689
0.052632
0.052632
0.033738
0
0.002307
0.20279
6,524
187
141
34.887701
0.852528
0.042305
0
0.19802
0
0.029703
0.265382
0.046639
0
0
0
0
0
0
null
null
0
0.039604
null
null
0.118812
0
0
0
null
0
0
0
0
0
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
2c00e746c1470a98c7c8dde887605b51bcacd1b3
287
py
Python
blawx/migrations/0015_delete_blawxtest.py
Lexpedite/blawx
782313219687a22cb1b1f941d101b6965cc8d7c0
[ "MIT" ]
9
2022-02-03T10:44:07.000Z
2022-03-21T04:11:27.000Z
blawx/migrations/0015_delete_blawxtest.py
Lexpedite/blawx
782313219687a22cb1b1f941d101b6965cc8d7c0
[ "MIT" ]
43
2022-02-01T20:03:11.000Z
2022-03-29T20:46:13.000Z
blawx/migrations/0015_delete_blawxtest.py
Lexpedite/blawx
782313219687a22cb1b1f941d101b6965cc8d7c0
[ "MIT" ]
1
2022-02-02T21:20:25.000Z
2022-02-02T21:20:25.000Z
# Generated by Django 4.0.1 on 2022-02-28 23:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blawx', '0014_blawxtest'), ] operations = [ migrations.DeleteModel( name='BlawxTest', ), ]
16.882353
47
0.592334
30
287
5.633333
0.833333
0
0
0
0
0
0
0
0
0
0
0.093596
0.292683
287
16
48
17.9375
0.738916
0.156794
0
0
1
0
0.116667
0
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c05e7f6af05e5caae7a4436592eef720d2b7f6f
175
py
Python
enrollment.py
acc-cosc-1336/cosc-1336-fall-2017-AshkaRTaylor
a518cbfe12b5e02671f3f1f483886af396a3e3b8
[ "MIT" ]
null
null
null
enrollment.py
acc-cosc-1336/cosc-1336-fall-2017-AshkaRTaylor
a518cbfe12b5e02671f3f1f483886af396a3e3b8
[ "MIT" ]
null
null
null
enrollment.py
acc-cosc-1336/cosc-1336-fall-2017-AshkaRTaylor
a518cbfe12b5e02671f3f1f483886af396a3e3b8
[ "MIT" ]
null
null
null
class Enrollment: def __init__(self, eid, s, c, g): self.enroll_id = eid self.course = c self.student = s self.grade = g
13.461538
38
0.485714
22
175
3.636364
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.422857
175
12
39
14.583333
0.792079
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
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
2c0709315869784d59f06b511661f1dc319ec183
1,191
py
Python
tagopsdb/model/vm_info.py
ifwe/tagopsdb
5455810cb9ccdd0803975a2513741c43313b1b7d
[ "Apache-2.0" ]
null
null
null
tagopsdb/model/vm_info.py
ifwe/tagopsdb
5455810cb9ccdd0803975a2513741c43313b1b7d
[ "Apache-2.0" ]
1
2021-03-25T21:57:08.000Z
2021-03-25T21:57:08.000Z
tagopsdb/model/vm_info.py
ifwe/tagopsdb
5455810cb9ccdd0803975a2513741c43313b1b7d
[ "Apache-2.0" ]
1
2016-08-02T06:05:58.000Z
2016-08-02T06:05:58.000Z
# Copyright 2016 Ifwe Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
30.538462
74
0.70361
161
1,191
5.10559
0.658385
0.072993
0.03163
0.038929
0
0
0
0
0
0
0
0.010661
0.212427
1,191
38
75
31.342105
0.865672
0.458438
0
0
0
0
0.099842
0.038035
0
0
0
0
0
1
0
false
0
0.210526
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
2c0f2ae22a89ff6303f2b114987fd08074d78768
574
py
Python
torch_geometric/nn/pool/global_pool.py
NunoEdgarGFlowHub/pytorch_geometric
4a03a7e6484c38805a24a2e7362ef32b7e279036
[ "MIT" ]
8
2021-06-30T06:55:14.000Z
2022-03-18T01:57:14.000Z
torch_geometric/nn/pool/global_pool.py
NunoEdgarGFlowHub/pytorch_geometric
4a03a7e6484c38805a24a2e7362ef32b7e279036
[ "MIT" ]
1
2021-06-30T03:08:15.000Z
2021-06-30T03:08:15.000Z
torch_geometric/nn/pool/global_pool.py
NunoEdgarGFlowHub/pytorch_geometric
4a03a7e6484c38805a24a2e7362ef32b7e279036
[ "MIT" ]
2
2021-11-17T11:19:48.000Z
2021-11-18T03:05:58.000Z
from torch_scatter import scatter_add, scatter_mean, scatter_max def global_add_pool(x, batch, size=None): size = batch[-1].item() + 1 if size is None else size return scatter_add(x, batch, dim=0, dim_size=size) def global_mean_pool(x, batch, size=None): size = batch[-1].item() + 1 if size is None else ...
31.888889
70
0.696864
102
574
3.754902
0.245098
0.093995
0.078329
0.109661
0.639687
0.639687
0.639687
0.639687
0.639687
0.483029
0
0.03617
0.181185
574
17
71
33.764706
0.778723
0
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
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
2c0f406a2166863dd8cfa258f5c169af10c04bd3
5,593
py
Python
pycrypt.py
0x9900/pycrypt
468dcafc30582cb4c02e930fc6301f171e97a130
[ "BSD-2-Clause" ]
null
null
null
pycrypt.py
0x9900/pycrypt
468dcafc30582cb4c02e930fc6301f171e97a130
[ "BSD-2-Clause" ]
null
null
null
pycrypt.py
0x9900/pycrypt
468dcafc30582cb4c02e930fc6301f171e97a130
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python2.7 # # Author: Fred C. <github-fred@hidzz.com> # Module: pycrypt.py # """ pycrypt: Encrypt and decript your files. """ from __future__ import print_function __author__ = "Fred C." __email__ = "<github-fred@hidzz.com>" __version__ = '0.1.2' import argparse import getpass import os import struct...
27.282927
82
0.681566
773
5,593
4.774903
0.287193
0.029802
0.019507
0.017069
0.173395
0.130588
0.115416
0.082363
0.082363
0.060688
0
0.00398
0.191311
5,593
204
83
27.416667
0.812072
0.196317
0
0.068376
0
0
0.106956
0.005245
0
0
0
0
0
1
0.076923
false
0.076923
0.094017
0
0.213675
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
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
2c1320b0a7d34cdf30fa570036d5941f29775a65
3,830
py
Python
lib/linux/get_network_info.py
cinfo-kwoc/Cinfo
1cdebe7165d687e977004ec2723019adb3b4288b
[ "MIT" ]
null
null
null
lib/linux/get_network_info.py
cinfo-kwoc/Cinfo
1cdebe7165d687e977004ec2723019adb3b4288b
[ "MIT" ]
null
null
null
lib/linux/get_network_info.py
cinfo-kwoc/Cinfo
1cdebe7165d687e977004ec2723019adb3b4288b
[ "MIT" ]
null
null
null
import os from tabulate import tabulate class get_net_info: ''' CLASS get_net_info PROVIDES THE CURRENT NETWORK CONNECTION STATUS, IP ADDRESS, NET MASK ADDRESS AND BROADCAST ADDRESS ALONGWITH ALL INTERFACE STATS. get_net_info HAVE TWO METHODS: 1) __init__ 2) work() __init__ DOCFILE: __init__ BLOCK HOLDS ALL ...
43.033708
158
0.673107
519
3,830
4.870906
0.292871
0.026108
0.039557
0.02057
0.262658
0.244462
0.190665
0.175633
0.175633
0.175633
0
0.003253
0.197389
3,830
88
159
43.522727
0.819128
0.494256
0
0.265306
0
0
0.237183
0.100984
0
0
0
0
0
1
0.040816
false
0.061224
0.040816
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2c186cc818af2babb1137d9a276b605f3c74f54b
220
py
Python
test.py
mengwei1/multi_agent_path_planning
079a4af80c074e571a802af4506d416db5c6946a
[ "MIT" ]
null
null
null
test.py
mengwei1/multi_agent_path_planning
079a4af80c074e571a802af4506d416db5c6946a
[ "MIT" ]
null
null
null
test.py
mengwei1/multi_agent_path_planning
079a4af80c074e571a802af4506d416db5c6946a
[ "MIT" ]
null
null
null
from Timeout import timeout import time @timeout(1) def t(a): while True: a.append(1) time.sleep(1) def main(): a = [] try: t(a) except Exception as e: print(e) main()
11.578947
27
0.522727
32
220
3.59375
0.59375
0.226087
0
0
0
0
0
0
0
0
0
0.021127
0.354545
220
19
28
11.578947
0.788732
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0.071429
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c1edfc3d972aa1fffb140797f87ea5d56308321
172
py
Python
j2y.py
creasennaicker/PyJsonYaml
92abc506d13286c5ed983e207343e2fc07777583
[ "MIT" ]
null
null
null
j2y.py
creasennaicker/PyJsonYaml
92abc506d13286c5ed983e207343e2fc07777583
[ "MIT" ]
null
null
null
j2y.py
creasennaicker/PyJsonYaml
92abc506d13286c5ed983e207343e2fc07777583
[ "MIT" ]
null
null
null
import yaml, json with open("emojis.json", 'r') as json_in, open("emojis.yaml", "w") as yaml_out: json_object = json.load(json_in) yaml.dump(json_object, yaml_out)
34.4
79
0.697674
30
172
3.8
0.466667
0.175439
0
0
0
0
0
0
0
0
0
0
0.145349
172
5
80
34.4
0.77551
0
0
0
0
0
0.138728
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
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
2c2f0b1595fc209a58fe80c42e46aecee8b09228
2,386
py
Python
cool_utils/classes.py
Senarc-Studios/Cool-Utils
ce643e8bc34d4f340e401e3c5eda9782bb886513
[ "BSD-3-Clause" ]
3
2021-11-20T11:50:51.000Z
2021-11-29T12:13:01.000Z
cool_utils/classes.py
Senarc-Studios/Cool-Utils
ce643e8bc34d4f340e401e3c5eda9782bb886513
[ "BSD-3-Clause" ]
null
null
null
cool_utils/classes.py
Senarc-Studios/Cool-Utils
ce643e8bc34d4f340e401e3c5eda9782bb886513
[ "BSD-3-Clause" ]
null
null
null
""" BSD 3-Clause License Copyright (c) 2021-present, BenitzCoding All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list ...
30.987013
78
0.750629
358
2,386
4.977654
0.455307
0.053872
0.024691
0.025814
0.124579
0.076319
0.076319
0.076319
0.076319
0.076319
0
0.004564
0.173512
2,386
76
79
31.394737
0.899087
0.639983
0
0.225806
0
0
0.06933
0
0
0
0
0
0
1
0.225806
false
0
0.032258
0.096774
0.483871
0
0
0
0
null
0
0
0
0
0
0
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
2c30203ea9df1e8e2520ab7ba978f74c9536dcf8
400
py
Python
me.py
Anugya-Gogoi/Rolling-a-dice
74573037cd63ef708757bcd025f32378120acd01
[ "MIT" ]
null
null
null
me.py
Anugya-Gogoi/Rolling-a-dice
74573037cd63ef708757bcd025f32378120acd01
[ "MIT" ]
null
null
null
me.py
Anugya-Gogoi/Rolling-a-dice
74573037cd63ef708757bcd025f32378120acd01
[ "MIT" ]
null
null
null
import random import time minm = 1 maxm = 6 roll_dice = "yes" while roll_dice == "yes" or roll_dice == "y": print("Rolling the dices now") time.sleep(1) print("Are you ready??????") time.sleep(1) print("The values are") time.sleep(1) print(random.randint(minm, maxm)) pri...
22.222222
46
0.605
58
400
4.103448
0.448276
0.134454
0.12605
0.189076
0.218487
0
0
0
0
0
0
0.016611
0.2475
400
18
47
22.222222
0.774086
0
0
0.333333
0
0
0.213542
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
2c30d143d6fe6ddf34cd70f509d117700e7e5773
289
py
Python
BOJ/04000~04999/4800~4899/4841.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/04000~04999/4800~4899/4841.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/04000~04999/4800~4899/4841.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
for i in range(int(input())): s = input() prev = s[0] cnt = 1 for i in range(1,len(s)): if prev == s[i]: cnt+=1 else: print("{}{}".format(cnt,prev),end="") prev = s[i] cnt =1 print("{}{}".format(cnt,prev))
24.083333
49
0.401384
41
289
2.829268
0.414634
0.12931
0.103448
0.189655
0.172414
0
0
0
0
0
0
0.028409
0.391003
289
12
50
24.083333
0.630682
0
0
0.166667
0
0
0.027586
0
0
0
0
0
0
1
0
false
0
0
0
0
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
2c30db9c054820c9e8bfe8412a438a987ccc9768
3,404
py
Python
Mitch/models_example.py
hollberg/kickstarter
3984e40b65770ff601b96b080da45cfed2d7a7d7
[ "MIT" ]
null
null
null
Mitch/models_example.py
hollberg/kickstarter
3984e40b65770ff601b96b080da45cfed2d7a7d7
[ "MIT" ]
null
null
null
Mitch/models_example.py
hollberg/kickstarter
3984e40b65770ff601b96b080da45cfed2d7a7d7
[ "MIT" ]
null
null
null
""" models.py database schemas for Kickstarter app """ # *** IMPORTS *** from os import getenv from flask_sqlalchemy import SQLAlchemy import pandas as pd # Comment out below when migrating to Heroku # try: # from .ref import DATABASE_URL # except ImportError: # raise ImportError('Did not find ref.py') # Cr...
30.666667
74
0.66745
443
3,404
5.002257
0.367946
0.064982
0.081227
0.064982
0.338899
0.328069
0.166065
0.138087
0.138087
0.138087
0
0.000756
0.223267
3,404
110
75
30.945455
0.837368
0.352233
0
0
0
0
0.080979
0.021186
0
0
0
0
0
1
0.04
false
0
0.06
0.02
0.52
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
0
0
0
0
0
0
0
0
1
0
0
1
2575fed7f6414a5725667627478c3492453858e1
8,633
py
Python
parser.py
jwilk/jtc
6fd0528c2fdfd4dc6241acc0c4b81ded0fa45013
[ "MIT" ]
3
2017-10-02T16:34:01.000Z
2017-10-03T05:05:27.000Z
parser.py
jwilk/jtc
6fd0528c2fdfd4dc6241acc0c4b81ded0fa45013
[ "MIT" ]
null
null
null
parser.py
jwilk/jtc
6fd0528c2fdfd4dc6241acc0c4b81ded0fa45013
[ "MIT" ]
null
null
null
# encoding=UTF-8 # Copyright © 2007-2012 Jakub Wilk <jwilk@jwilk.net> # # 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,...
29.768966
147
0.56006
1,344
8,633
3.421131
0.174107
0.021749
0.028273
0.038278
0.391692
0.252066
0.183993
0.117442
0.102218
0.102218
0
0.027149
0.308815
8,633
289
148
29.871972
0.743255
0.334414
0
0.151515
0
0
0.172029
0
0
0
0
0
0
1
0.290909
false
0.012121
0.030303
0
0.339394
0
0
0
0
null
0
0
0
0
0
0
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
2578753ded9b49b742c14e6cad4fcd9aff0f63d7
522
py
Python
reviews/migrations/0003_auto_20160630_0531.py
naveench9498/Django-project
b16d43c0e67c654db1cac685ab13784d53dc0550
[ "MIT" ]
null
null
null
reviews/migrations/0003_auto_20160630_0531.py
naveench9498/Django-project
b16d43c0e67c654db1cac685ab13784d53dc0550
[ "MIT" ]
null
null
null
reviews/migrations/0003_auto_20160630_0531.py
naveench9498/Django-project
b16d43c0e67c654db1cac685ab13784d53dc0550
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-06-30 05:31 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reviews', '0002_auto_20160630_0512'), ] operations = [ migrations.RenameModel( ...
20.88
47
0.568966
55
522
5.163636
0.727273
0.049296
0.077465
0.098592
0.147887
0.147887
0
0
0
0
0
0.089136
0.312261
522
24
48
21.75
0.70195
0.128352
0
0.117647
1
0
0.110619
0.050885
0
0
0
0
0
1
0
false
0
0.117647
0
0.294118
0
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