hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
9ed4c95b11ddd761bdc51c8d9a831201ff7973eb
1,080
py
Python
pandas_support/test_pandas_support.py
quanbingDG/sharper
4cd5c6b3238d5e430d5986829cc4e0bb47ab3dff
[ "MIT" ]
null
null
null
pandas_support/test_pandas_support.py
quanbingDG/sharper
4cd5c6b3238d5e430d5986829cc4e0bb47ab3dff
[ "MIT" ]
2
2021-01-13T03:39:15.000Z
2021-01-19T08:50:18.000Z
pandas_support/test_pandas_support.py
quanbingDG/sharper
4cd5c6b3238d5e430d5986829cc4e0bb47ab3dff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/11/9 9:13 下午 # @Author : quanbing # @Email : quanbinks@sina.com import pandas as pd import numpy as np from unittest import TestCase from pandas_support import PandasSupport as PS # @File : test_pandas_support.py class TestPandasSupport(TestCase): def setUp(self) -> None: ...
38.571429
99
0.655556
825
0.76107
0
0
0
0
0
0
232
0.214022
9ed4d88c4f6045e4df06f3ac9733b88b158d09a9
245
py
Python
08-About_scrapy/douban/main.py
jiaxiaochu/spider
4b0f751f76a31556a91dea719873cf2979e4be94
[ "MIT" ]
null
null
null
08-About_scrapy/douban/main.py
jiaxiaochu/spider
4b0f751f76a31556a91dea719873cf2979e4be94
[ "MIT" ]
1
2020-08-27T10:25:38.000Z
2020-08-27T10:25:38.000Z
08-About_scrapy/douban/main.py
jiaxiaochu/spider
4b0f751f76a31556a91dea719873cf2979e4be94
[ "MIT" ]
null
null
null
# !/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 # -*- coding:utf-8 -*- # @Author : Jiazhixiang # 导入cmdline模块,可以实现控制终端命令行。 from scrapy import cmdline # 用execute()方法,输入运行scrapy的命令。 cmdline.execute(['scrapy', 'crawl', 'douban'])
24.5
64
0.726531
0
0
0
0
0
0
0
0
247
0.809836
9ed556610d4e386e3f7c1552b11e15722ee31053
1,125
py
Python
DynamicProgramming/longestIncreasingSubsequence.py
suyash248/data_structures
41a732cebf791ed63edbce10329251f03b763ccf
[ "Apache-2.0" ]
7
2017-12-13T05:54:29.000Z
2022-03-25T09:10:59.000Z
DynamicProgramming/longestIncreasingSubsequence.py
suyash248/data_structures
41a732cebf791ed63edbce10329251f03b763ccf
[ "Apache-2.0" ]
null
null
null
DynamicProgramming/longestIncreasingSubsequence.py
suyash248/data_structures
41a732cebf791ed63edbce10329251f03b763ccf
[ "Apache-2.0" ]
4
2019-05-22T02:51:56.000Z
2021-05-23T10:49:57.000Z
from Array import empty_1d_array """ input array : [10, 22, 9, 33, 21, 50, 41, 60] # Element at each index `i` is representing length of longest LIS from index 0 to i in input array. output array: [1, 2, 1, 3, 2, 4, 4, 5] """ # Time complexity: O(n^2) # Space complexity: O(n) def lis_dp(arr): # Length...
36.290323
99
0.543111
0
0
0
0
0
0
0
0
494
0.439111
9ed6cf9a0648712f69e8e03077835798f4836842
4,318
py
Python
venv/Lib/site-packages/gevent/backdoor.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/gevent/backdoor.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/gevent/backdoor.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2014, gevent contributors # Based on eventlet.backdoor Copyright (c) 2005-2006, Bob Ippolito from __future__ import print_function import sys from code import InteractiveConsole from gevent import socket from gevent.greenlet import Greenlet from gevent.hub import PY3, PYPY, getcurrent from gevent...
29.175676
98
0.598194
3,576
0.828161
0
0
0
0
0
0
1,433
0.331867
9ed839d6a98ae914dcbccc4b145b5eaa923e4f41
7,385
py
Python
spark/par_decompress_audio.py
droyston/spectralize
572770e7358acc3ec433470659759c17453409f2
[ "MIT" ]
null
null
null
spark/par_decompress_audio.py
droyston/spectralize
572770e7358acc3ec433470659759c17453409f2
[ "MIT" ]
null
null
null
spark/par_decompress_audio.py
droyston/spectralize
572770e7358acc3ec433470659759c17453409f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 17 16:12:56 2020 @author: dylanroyston """ # import/configure packages import numpy as np import pandas as pd #import pyarrow as pa import librosa import librosa.display from pathlib import Path #import Ipython.display as ipd #import matplotlib.pyp...
27.867925
90
0.59499
0
0
0
0
0
0
0
0
2,314
0.313338
9eda27b08876015d63b9cfdc12be859142fbbd21
1,073
py
Python
get_ip_list_ru_gov.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
get_ip_list_ru_gov.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
get_ip_list_ru_gov.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' """ Скрипт выводит список ip государственных организаций. """ import ipaddress import sys import requests rs = requests.get('https://jarib.github.io/anon-history/RuGovEdits/ru/latest/ranges.json') # Проверка удачного запроса и полученных д...
22.354167
90
0.665424
0
0
0
0
0
0
0
0
791
0.591181
9edc1088501805cae0cb1dc1f360911a6998aed9
1,337
py
Python
test_collection.py
Rodrun/weatherguess
468ae8f6484ee3e3e82262ae10d845fd2d9b4267
[ "MIT" ]
null
null
null
test_collection.py
Rodrun/weatherguess
468ae8f6484ee3e3e82262ae10d845fd2d9b4267
[ "MIT" ]
null
null
null
test_collection.py
Rodrun/weatherguess
468ae8f6484ee3e3e82262ae10d845fd2d9b4267
[ "MIT" ]
null
null
null
import unittest import requests from collection import Collection class TestCollection(unittest.TestCase): def setUp(self): # Get the sample JSON data self.data = requests.get("http://samples.openweathermap.org/data/2.5/weather?zip=94040,us&appid=b6907d289e10d714a6e88b30761fae22").json() ...
34.282051
145
0.635004
1,268
0.948392
0
0
0
0
0
0
430
0.321616
9edc4b896c4673af8ba61e91bf9ac87a555fe75f
272
py
Python
tests/bitwiseOperations/__init__.py
mgorzkowski/abn
3a9ac6fb0cfe9d497b6d8f26373d2af3b6ff9860
[ "MIT" ]
4
2018-04-24T15:25:55.000Z
2022-03-08T15:01:07.000Z
tests/bitwiseOperations/__init__.py
mgorzkowski/abn
3a9ac6fb0cfe9d497b6d8f26373d2af3b6ff9860
[ "MIT" ]
2
2021-05-04T19:44:28.000Z
2021-05-05T11:51:15.000Z
tests/bitwiseOperations/__init__.py
mgorzkowski/abn
3a9ac6fb0cfe9d497b6d8f26373d2af3b6ff9860
[ "MIT" ]
null
null
null
from . import nand_tests from . import and_tests from . import nor_tests from . import not_tests from . import or_tests from . import xor_tests from . import rotate_left_tests from . import rotate_right_tests from . import shift_left_tests from . import shift_right_tests
24.727273
32
0.816176
0
0
0
0
0
0
0
0
0
0
9edd07604a3a97e4febf7283f02a7a1e61075cbb
36,220
py
Python
exot/util/misc.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
exot/util/misc.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
exot/util/misc.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015-2020, Swiss Federal Institute of Technology (ETH Zurich) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright...
33.755825
158
0.592601
45
0.001242
4,126
0.113915
0
0
0
0
20,444
0.56444
9ede197b4e22a537f288d32a4de554ea29c1ea06
1,222
py
Python
70_question/dynamic_programming/max_profit_with_k_transactions.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
26
2019-06-07T05:29:47.000Z
2022-03-19T15:32:27.000Z
70_question/dynamic_programming/max_profit_with_k_transactions.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
null
null
null
70_question/dynamic_programming/max_profit_with_k_transactions.py
alvinctk/google-tech-dev-guide
9d7759bea1f44673c2de4f25a94b27368928a59f
[ "Apache-2.0" ]
6
2019-10-10T06:39:28.000Z
2020-05-12T19:50:55.000Z
def maxProfitWithKTransactions(prices, k): n = len(prices) profit = [[0]*n for _ in range(k+1)] """ t := number of transactions d := day at which either buy/sell stock profit[t][d] = max ( previous day profit = profit[t][d-1] , profit sold at this day + max(buy for th...
31.333333
136
0.56383
0
0
0
0
0
0
0
0
441
0.360884
9edf6ecb3d424f1fd6e8e155154f4ecebc700938
4,149
py
Python
main.py
rdmaulana/flask-smart-xls-clean
8dde5b56c241312ab252964b159921acd6013839
[ "MIT" ]
null
null
null
main.py
rdmaulana/flask-smart-xls-clean
8dde5b56c241312ab252964b159921acd6013839
[ "MIT" ]
null
null
null
main.py
rdmaulana/flask-smart-xls-clean
8dde5b56c241312ab252964b159921acd6013839
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import io import time import uuid from flask import Flask, render_template, request, redirect, url_for, Response, session, send_file, make_response, send_from_directory from os.path import join, dirname, realpath from werkzeug.wsgi import FileWrapper app = Flask(__name__) app.co...
35.161017
134
0.612919
0
0
0
0
976
0.235237
0
0
1,198
0.288744
9edfa90d3388411fff4970296751427f8a1b76b6
257
py
Python
2_UNIXCommands/Exercise11.py
takeyoshinitta/NLP-100-Exercise
e77fb385fbbf50c8a8bdc47442db1421739ea5b6
[ "MIT" ]
3
2022-01-04T19:02:22.000Z
2022-02-21T08:52:18.000Z
2_UNIXCommands/Exercise11.py
takeyoshinitta/NLP-100-Exercise
e77fb385fbbf50c8a8bdc47442db1421739ea5b6
[ "MIT" ]
null
null
null
2_UNIXCommands/Exercise11.py
takeyoshinitta/NLP-100-Exercise
e77fb385fbbf50c8a8bdc47442db1421739ea5b6
[ "MIT" ]
null
null
null
# 11. Replace tabs into spaces # Replace every occurrence of a tab character into a space. Confirm the result by using sed, tr, or expand command. with open('popular-names.txt') as f: for line in f: print(line.strip().replace("\t", " "))
36.714286
116
0.66537
0
0
0
0
0
0
0
0
173
0.673152
9edfcae85303a4e73d41bdae85aeda75e4c87673
2,817
py
Python
scripts/wapo/wapo_link_graph_from_mongo.py
feup-infolab/army-ant
7b33120d5160f73d7a41a05e6336489c917fb75c
[ "BSD-3-Clause" ]
5
2018-01-18T14:11:52.000Z
2020-10-23T16:02:25.000Z
scripts/wapo/wapo_link_graph_from_mongo.py
feup-infolab/army-ant
7b33120d5160f73d7a41a05e6336489c917fb75c
[ "BSD-3-Clause" ]
10
2018-02-02T20:19:36.000Z
2020-10-05T08:46:36.000Z
scripts/wapo/wapo_link_graph_from_mongo.py
feup-infolab/army-ant
7b33120d5160f73d7a41a05e6336489c917fb75c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # wapo_link_graph_from_mongo.py # José Devezas <joseluisdevezas@gmail.com> # 2019-02-05 import logging import sys import warnings import networkx as nx from bs4 import BeautifulSoup from pymongo import MongoClient logging.basicConfig( format='%(asctime)s wapo_link_graph_from_mongo: %(lev...
26.083333
108
0.615903
0
0
132
0.046842
0
0
0
0
704
0.249823
9ee566ce8a227cbd2a762122ce0690fc72e66ca6
7,540
py
Python
designScripts/vernierMask.py
smartalecH/BYUqot
5b24759c4a100086937795a80d2eb6597e611819
[ "MIT" ]
5
2019-03-26T17:12:25.000Z
2021-12-27T18:05:52.000Z
designScripts/vernierMask.py
smartalecH/BYUqot
5b24759c4a100086937795a80d2eb6597e611819
[ "MIT" ]
5
2018-05-30T21:05:36.000Z
2018-08-16T05:16:40.000Z
designScripts/vernierMask.py
smartalecH/BYUqot
5b24759c4a100086937795a80d2eb6597e611819
[ "MIT" ]
5
2018-05-30T02:54:07.000Z
2020-08-16T17:18:38.000Z
# ------------------------------------------------------------------ # # vernierMask.py # ------------------------------------------------------------------ # # # A mask design used to align the 3D printer to a silicon photonic chip # # ------------------------------------------------------------------ # # VERSION HIST...
35.233645
96
0.554377
0
0
0
0
0
0
0
0
3,327
0.441247
9ee57d6363120b9d54a9902e2243f9122d20af71
4,810
py
Python
src/core/serializers.py
pradipta/back-end
05895b051afc4c8e0cb17db708063d80102e9de5
[ "MIT" ]
17
2019-05-11T22:15:34.000Z
2022-03-26T22:45:33.000Z
src/core/serializers.py
pradipta/back-end
05895b051afc4c8e0cb17db708063d80102e9de5
[ "MIT" ]
390
2019-05-23T10:48:57.000Z
2021-12-17T21:01:43.000Z
src/core/serializers.py
pradipta/back-end
05895b051afc4c8e0cb17db708063d80102e9de5
[ "MIT" ]
40
2019-05-21T14:41:57.000Z
2021-01-30T13:39:38.000Z
from django.contrib.auth import get_user_model from rest_auth.registration.serializers import ( RegisterSerializer as BaseRegisterSerializer, ) from rest_auth.registration.serializers import ( SocialLoginSerializer as BaseSocialLoginSerializer, ) from rest_auth.serializers import LoginSerializer as BaseLoginSer...
33.172414
88
0.677755
3,983
0.828067
0
0
0
0
0
0
1,256
0.261123
9ee5da5b7c789afc93423e16612fb9f6de97baba
3,519
py
Python
src/programy/brainfactory.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/brainfactory.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/brainfactory.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
4
2019-04-01T15:42:23.000Z
2020-11-05T08:14:27.000Z
""" Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com 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, m...
34.165049
127
0.680591
2,282
0.64848
0
0
87
0.024723
0
0
1,114
0.316567
9ee68cd6efba5b094a83a85c60acb1031a826384
2,050
py
Python
tools/docs/generate_api_rst.py
dcillera/envoy
cb54ba8eec26f768f8c1ae412113b07bacde7321
[ "Apache-2.0" ]
17,703
2017-09-14T18:23:43.000Z
2022-03-31T22:04:17.000Z
tools/docs/generate_api_rst.py
dcillera/envoy
cb54ba8eec26f768f8c1ae412113b07bacde7321
[ "Apache-2.0" ]
15,957
2017-09-14T16:38:22.000Z
2022-03-31T23:56:30.000Z
tools/docs/generate_api_rst.py
dcillera/envoy
cb54ba8eec26f768f8c1ae412113b07bacde7321
[ "Apache-2.0" ]
3,780
2017-09-14T18:58:47.000Z
2022-03-31T17:10:47.000Z
import os import shutil import sys import tarfile def include_package(envoy_api_protos, rst_file_path, prefix): # `envoy_api_rst_files` is a list of file paths for .proto.rst files # generated by protodoc # # we are only interested in the proto files generated for envoy protos, # not for non-envoy...
32.03125
96
0.642927
0
0
0
0
0
0
0
0
823
0.401463
9ee7307b78f857465fe941638e5a41dd83ec835a
15,792
py
Python
src/wa_parser.py
ifly6/NS-WA-Authorboards
57921457795306867844a29cdfce88bfcdd1c3f6
[ "Apache-2.0" ]
null
null
null
src/wa_parser.py
ifly6/NS-WA-Authorboards
57921457795306867844a29cdfce88bfcdd1c3f6
[ "Apache-2.0" ]
null
null
null
src/wa_parser.py
ifly6/NS-WA-Authorboards
57921457795306867844a29cdfce88bfcdd1c3f6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 ifly6 import html import io import re from datetime import datetime from functools import cache from typing import Tuple import numpy as np import pandas as pd import requests from bs4 import BeautifulSoup from lxml import etree from pytz import timezone from ratelimit import limits, sleep_and_ret...
38.705882
123
0.590109
8,182
0.51811
0
0
8,426
0.533561
0
0
6,321
0.400266
9ee7fc2118d9db373e3131dcd7ab5c6417b15d3a
5,191
py
Python
conans/search/binary_html_table.py
matthiasng/conan
634eadc319da928084633a344d42785edccb8d6c
[ "MIT" ]
2
2019-01-09T10:01:29.000Z
2019-01-09T10:01:31.000Z
conans/search/binary_html_table.py
matthiasng/conan
634eadc319da928084633a344d42785edccb8d6c
[ "MIT" ]
1
2019-01-09T10:09:41.000Z
2019-01-09T10:09:41.000Z
conans/search/binary_html_table.py
matthiasng/conan
634eadc319da928084633a344d42785edccb8d6c
[ "MIT" ]
null
null
null
import os from collections import OrderedDict, defaultdict from conans.model.ref import PackageReference from conans.util.files import save class RowResult(object): def __init__(self, remote, reference, data): self.remote = remote self.reference = reference self._data = data @propert...
33.275641
98
0.571181
4,593
0.884801
948
0.182624
686
0.132152
0
0
960
0.184935
9eec590065dcf6f8cc85b4d213651d2aa3e487f2
1,140
py
Python
irancovid-19.py
AmiiirCom/irancovid-19
c8871830e9344c5bf17043c802195911127bc532
[ "MIT" ]
null
null
null
irancovid-19.py
AmiiirCom/irancovid-19
c8871830e9344c5bf17043c802195911127bc532
[ "MIT" ]
null
null
null
irancovid-19.py
AmiiirCom/irancovid-19
c8871830e9344c5bf17043c802195911127bc532
[ "MIT" ]
null
null
null
from covid import Covid import json covid = Covid(source="worldometers") covid.get_data() iran_casses = covid.get_status_by_country_name("iran") confirmed = iran_casses['confirmed'] new_cases = iran_casses['new_cases'] deaths = iran_casses['deaths'] recovered = iran_casses['recovered'] active = iran_casses['active']...
30.810811
71
0.764035
0
0
0
0
0
0
0
0
364
0.319298
9eec86a2c6579218afa159749612db5d5e43ce59
3,198
py
Python
models/__init__.py
esentino/literate-doodle
598533042602b989a4bdaa8778968c5f3ead3500
[ "Apache-2.0" ]
null
null
null
models/__init__.py
esentino/literate-doodle
598533042602b989a4bdaa8778968c5f3ead3500
[ "Apache-2.0" ]
null
null
null
models/__init__.py
esentino/literate-doodle
598533042602b989a4bdaa8778968c5f3ead3500
[ "Apache-2.0" ]
1
2019-09-11T21:27:37.000Z
2019-09-11T21:27:37.000Z
# models/__init__.py from clcrypto import password_hash from psycopg2 import connect def make_connection(db_name='w3'): cnx = connect(user='postgres', password='coderslab', database=db_name, host='localhost') cnx.autocommit = True return cnx class User: __id = None username = None __hashed_p...
31.663366
92
0.581614
2,941
0.919063
0
0
1,667
0.520938
0
0
649
0.202813
9eed09503a5541f18459a14cf6ef3617066817b6
4,124
py
Python
crys3d/command_line/model_viewer.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
crys3d/command_line/model_viewer.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
crys3d/command_line/model_viewer.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division # LIBTBX_PRE_DISPATCHER_INCLUDE_SH export PHENIX_GUI_ENVIRONMENT=1 # LIBTBX_PRE_DISPATCHER_INCLUDE_SH export BOOST_ADAPTBX_FPE_DEFAULT=1 import cStringIO from crys3d.wx_selection_editor import selection_editor_mixin import wx import libtbx.load_env import sys, os, time ################...
38.185185
78
0.707081
663
0.160766
0
0
0
0
0
0
626
0.151794
9eedb43deb24d2533fe70662a5b08fab696d08f6
500
py
Python
Crypto/py3compat.py
eddiejessup/transcrypt
1a5894a2c355e1b88626a2b195e132bd7e701981
[ "MIT" ]
14
2015-02-15T02:17:07.000Z
2020-07-15T03:02:46.000Z
Crypto/py3compat.py
eddiejessup/Transcrypt
1a5894a2c355e1b88626a2b195e132bd7e701981
[ "MIT" ]
12
2015-04-11T14:26:14.000Z
2021-09-07T09:25:38.000Z
Crypto/py3compat.py
eddiejessup/Transcrypt
1a5894a2c355e1b88626a2b195e132bd7e701981
[ "MIT" ]
4
2016-02-27T16:06:59.000Z
2019-09-04T04:01:05.000Z
__revision__ = "$Id$" def b(s): return s.encode("latin-1") def bchr(s): return bytes([s]) def bstr(s): if isinstance(s, str): return bytes(s, "latin-1") else: return bytes(s) def bord(s): return s def tobytes(s): if isinstance(s, bytes): return s else: ...
13.513514
38
0.542
0
0
0
0
0
0
0
0
42
0.084
9eedcf612c173937e475b9b20ab18a1677cc7feb
2,758
py
Python
verres/optim/schedule.py
csxeba/Verres
04230d22b7791f84d86b9eb2272a6314a27580ed
[ "MIT" ]
null
null
null
verres/optim/schedule.py
csxeba/Verres
04230d22b7791f84d86b9eb2272a6314a27580ed
[ "MIT" ]
null
null
null
verres/optim/schedule.py
csxeba/Verres
04230d22b7791f84d86b9eb2272a6314a27580ed
[ "MIT" ]
null
null
null
from typing import Dict import numpy as np import tensorflow as tf import verres as V class ConstantSchedule(tf.keras.optimizers.schedules.LearningRateSchedule): def __init__(self, learning_rate: float): super().__init__() self.learning_rate = float(learning_rate) def __call__(self, step):...
32.069767
118
0.62074
2,139
0.775562
0
0
0
0
0
0
226
0.081943
9eeee0e6163243e2bcb3f1fbe4bb62fbc1fef478
4,865
py
Python
JIG.py
mmg1/JIG
bc36ed013b5ba48e549a16151b9135e271d55055
[ "MIT" ]
28
2017-12-04T02:03:25.000Z
2021-09-13T04:37:21.000Z
JIG.py
mmg1/JIG
bc36ed013b5ba48e549a16151b9135e271d55055
[ "MIT" ]
1
2018-01-20T21:13:56.000Z
2018-01-20T21:13:56.000Z
JIG.py
NetSPI/JIG
bc36ed013b5ba48e549a16151b9135e271d55055
[ "MIT" ]
18
2018-01-08T13:40:29.000Z
2022-02-20T17:10:57.000Z
import re import sys from itertools import izip as zip import argparse import requests # argparse definitions parser = argparse.ArgumentParser(description='Jira attack script') parser.add_argument('URL', type=str , help='the URL of the Jira instance... ex. https://jira.organization.com/') parser.add_argument(...
39.233871
133
0.615211
0
0
0
0
0
0
0
0
1,668
0.342857
9eef48e8177814194dd2d1510e39357b5d13bd02
4,383
py
Python
run.py
SamChatfield/final-year-project
9d1ae2cb3009ffbff89cb438cfcde855db8a53ac
[ "MIT" ]
null
null
null
run.py
SamChatfield/final-year-project
9d1ae2cb3009ffbff89cb438cfcde855db8a53ac
[ "MIT" ]
null
null
null
run.py
SamChatfield/final-year-project
9d1ae2cb3009ffbff89cb438cfcde855db8a53ac
[ "MIT" ]
null
null
null
import json import string from datetime import datetime import deap import numpy as np import hmm from discriminator import Discriminator from ea import EA import random_search DEFAULT_PARAMS = { # Discriminator CNN model "model": "CNNModel3", # Algorithm Parameters "states": 5, "symbols": 5, ...
26.72561
98
0.6094
0
0
0
0
0
0
0
0
1,332
0.303901
9ef2b9fdb256c9db58c16d3d792f230772a8e948
2,174
py
Python
rrc_example_package/benchmark_rrc/tools/plot/exp_align_obj.py
wq13552463699/TriFinger_Research
6ddfab4531cb4ba05a0fbb41227a734295dce378
[ "BSD-3-Clause" ]
12
2021-05-06T18:00:21.000Z
2022-01-11T14:23:22.000Z
rrc_example_package/benchmark_rrc/tools/plot/exp_align_obj.py
wq13552463699/TriFinger_Research
6ddfab4531cb4ba05a0fbb41227a734295dce378
[ "BSD-3-Clause" ]
3
2021-06-03T16:06:01.000Z
2021-08-15T13:40:09.000Z
rrc_example_package/benchmark_rrc/tools/plot/exp_align_obj.py
wq13552463699/TriFinger_Research
6ddfab4531cb4ba05a0fbb41227a734295dce378
[ "BSD-3-Clause" ]
4
2021-05-12T02:34:34.000Z
2021-07-18T19:54:50.000Z
#!/usr/bin/env python3 ''' This code traverses a directories of evaluation log files and record evaluation scores as well as plotting the results. ''' import os import argparse import json import copy from shutil import copyfile import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from utils import...
35.639344
110
0.689512
0
0
0
0
0
0
0
0
994
0.457222
9ef2bd5f0fee2640fb7fcf65e291ea514c7f1058
286
py
Python
test cases/common/64 custom header generator/makeheader.py
objectx/meson
c0f097c0c74551972f7ec2203cd960824984f058
[ "Apache-2.0" ]
null
null
null
test cases/common/64 custom header generator/makeheader.py
objectx/meson
c0f097c0c74551972f7ec2203cd960824984f058
[ "Apache-2.0" ]
null
null
null
test cases/common/64 custom header generator/makeheader.py
objectx/meson
c0f097c0c74551972f7ec2203cd960824984f058
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # NOTE: this file does not have the executable bit set. This tests that # Meson can automatically parse shebang lines. import sys template = '#define RET_VAL %s\n' output = template % (open(sys.argv[1]).readline().strip()) open(sys.argv[2], 'w').write(output)
26
71
0.713287
0
0
0
0
0
0
0
0
164
0.573427
9ef42081bff35de1f92bff97bfccd08e32e6f3d8
395
py
Python
studio_ghibli/movies/test_data.py
hbansal0122/studio_ghibli_project
1a2df853f9d5088aa137f372ab0ee83ce8ba3667
[ "MIT" ]
null
null
null
studio_ghibli/movies/test_data.py
hbansal0122/studio_ghibli_project
1a2df853f9d5088aa137f372ab0ee83ce8ba3667
[ "MIT" ]
null
null
null
studio_ghibli/movies/test_data.py
hbansal0122/studio_ghibli_project
1a2df853f9d5088aa137f372ab0ee83ce8ba3667
[ "MIT" ]
null
null
null
""" Test data""" stub_films = [{ "id": "12345", "title": "This is film one", },{ "id": "23456", "title": "This is film two", }] stub_poeple = [{ "name": "person 1", "films": ["url/12345", "url/23456"] },{ "name": "person 2", "films": ["url/23456"] },{ "name": "person 3", "film...
16.458333
39
0.463291
0
0
0
0
0
0
0
0
235
0.594937
9ef4febad34c41f83b4899c15a9e9cfec2b40a27
236
py
Python
data_converters/fsdbripper/create_new_db.py
osvaldolove/amiberry-api
3310592d2411c69f7c225edb3e3907e6a5e6caf8
[ "MIT" ]
null
null
null
data_converters/fsdbripper/create_new_db.py
osvaldolove/amiberry-api
3310592d2411c69f7c225edb3e3907e6a5e6caf8
[ "MIT" ]
null
null
null
data_converters/fsdbripper/create_new_db.py
osvaldolove/amiberry-api
3310592d2411c69f7c225edb3e3907e6a5e6caf8
[ "MIT" ]
1
2018-08-22T21:55:26.000Z
2018-08-22T21:55:26.000Z
import sqlite3 from constants import DESTINATION_DB destination_connection = sqlite3.connect(DESTINATION_DB) destination_cursor = destination_connection.cursor() destination_cursor.execute('CREATE TABLE game(uuid, payload)')
26.222222
63
0.817797
0
0
0
0
0
0
0
0
34
0.144068
9ef65f5bf372723d5444efb6cd95a0880cc13cef
7,366
py
Python
upvote/gae/shared/common/json_utils_test.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
upvote/gae/shared/common/json_utils_test.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
upvote/gae/shared/common/json_utils_test.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.481818
79
0.691827
6,448
0.875373
0
0
0
0
0
0
2,069
0.280885
9ef7f25002d6a0233c11be0350ae657d327330f8
3,728
py
Python
app.py
YukiNagat0/Blog
6f01d1a3e73f1f865b5d22dbdbb27a5acfb3e937
[ "MIT" ]
1
2021-06-24T17:48:37.000Z
2021-06-24T17:48:37.000Z
app.py
YukiNagat0/Blog
6f01d1a3e73f1f865b5d22dbdbb27a5acfb3e937
[ "MIT" ]
null
null
null
app.py
YukiNagat0/Blog
6f01d1a3e73f1f865b5d22dbdbb27a5acfb3e937
[ "MIT" ]
null
null
null
from os import path from typing import Union from datetime import datetime from flask import Flask, request, redirect, render_template from flask_wtf import CSRFProtect from werkzeug.utils import secure_filename from data import db_session from data.posts import Posts from forms.edit_post_form import EditPostForm ...
25.888889
117
0.668455
0
0
0
0
1,797
0.463503
0
0
805
0.207635
9ef839c4fcb13ab1bd28852911644c75dc9c3837
48,320
py
Python
neon/backends/gpu.py
kashif/neon
d4d8ed498ee826b67f5fda1746d2d65c8ce613d2
[ "Apache-2.0" ]
1
2018-07-17T16:54:58.000Z
2018-07-17T16:54:58.000Z
neon/backends/gpu.py
kashif/neon
d4d8ed498ee826b67f5fda1746d2d65c8ce613d2
[ "Apache-2.0" ]
null
null
null
neon/backends/gpu.py
kashif/neon
d4d8ed498ee826b67f5fda1746d2d65c8ce613d2
[ "Apache-2.0" ]
2
2016-06-09T13:05:00.000Z
2021-02-18T14:18:15.000Z
# ---------------------------------------------------------------------------- # Copyright 2014 Nervana Systems 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.o...
39.736842
79
0.556126
47,070
0.974131
0
0
0
0
0
0
33,903
0.701635
9ef85b894eb9c57e729d7cdbf2e496c34efcf07f
23,685
py
Python
test/test_automl/test_automl.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
null
null
null
test/test_automl/test_automl.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
null
null
null
test/test_automl/test_automl.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
1
2021-04-06T09:38:12.000Z
2021-04-06T09:38:12.000Z
# -*- encoding: utf-8 -*- import os import pickle import sys import time import glob import unittest import unittest.mock import numpy as np import pandas as pd import sklearn.datasets from smac.scenario.scenario import Scenario from smac.facade.roar_facade import ROAR from autosklearn.util.backend import Backend fro...
39.343854
94
0.609246
22,752
0.960608
0
0
5,760
0.243192
0
0
4,070
0.171839
9ef87644a467b7a43c75ac4ae95f1780dab19950
3,934
py
Python
algopy/base_type.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
54
2015-03-05T13:38:08.000Z
2021-11-29T11:54:48.000Z
algopy/base_type.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
7
2016-04-06T11:25:00.000Z
2020-11-09T13:53:20.000Z
algopy/base_type.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
13
2015-01-17T17:05:56.000Z
2021-08-05T01:13:16.000Z
""" This implements an abstrace base class Ring . Rationale: Goal is to separate the datatype specification from the algorithms and containers for the following reasons: 1) It allows to directly use the algorithms *without* overhead. E.g. calling mul(z.data, x.data, y.data) has much le...
35.125
113
0.630147
2,939
0.747077
0
0
0
0
0
0
2,170
0.551601
9ef906903676953e2a8a6d553c8fc0e08426873c
556
py
Python
estrutura-repeticao-while/ex062.py
TacilioRodriguez/Python
0b98dc8336e014046c579b387013b2871024e3d0
[ "Unlicense" ]
null
null
null
estrutura-repeticao-while/ex062.py
TacilioRodriguez/Python
0b98dc8336e014046c579b387013b2871024e3d0
[ "Unlicense" ]
null
null
null
estrutura-repeticao-while/ex062.py
TacilioRodriguez/Python
0b98dc8336e014046c579b387013b2871024e3d0
[ "Unlicense" ]
null
null
null
""" Melhore o Desafio 061, perguntando para o usuário se ele quer mostrar mais alguns termos. O programa encerra quando ele disser que quer mostrar 0 termos. """ primeiro = int(input('Digite o termo: ')) razao = int(input('Digite a razão: ')) termo = primeiro cont = 1 total = 0 mais = 10 while mais != 0: total = t...
27.8
89
0.633094
0
0
0
0
0
0
0
0
266
0.47585
9ef958e7d381e2efbcf979fbddc497610f9580d1
3,487
py
Python
Udemy_PythonBootcamp/Sec15_WebScraping.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
Udemy_PythonBootcamp/Sec15_WebScraping.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
Udemy_PythonBootcamp/Sec15_WebScraping.py
gonzalosc2/LearningPython
0210d4cbbb5e154f12007b8e8f825fd3d0022be0
[ "MIT" ]
null
null
null
#################################### # author: Gonzalo Salazar # course: 2020 Complete Python Bootcamps: From Zero to Hero in Python # purpose: lecture notes # description: Section 15 - Web Scraping # other: N/A #################################### # RULES # 1. always try to get permission before scraping, otherwise I...
32.287037
135
0.694006
0
0
0
0
0
0
0
0
2,340
0.671064
9ef987b5b2fc09a91874ef390e457aed66cdf6c0
10,220
py
Python
anchore_engine/analyzers/modules/33_binary_packages.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
null
null
null
anchore_engine/analyzers/modules/33_binary_packages.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
null
null
null
anchore_engine/analyzers/modules/33_binary_packages.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import os import re import json import traceback import pkg_resources import tarfile from collections import OrderedDict import anchore_engine.analyzers.utils, anchore_engine.utils def get_python_evidence(tfl, member, memberhash, evidence): global binary_package_el full...
41.044177
148
0.545108
0
0
0
0
0
0
0
0
2,028
0.198434
9ef9c33373ed6286394fc6556d56b0671f5ed0ac
20,610
py
Python
SF-home-price-prediction/src/preparation.py
apthomas/SF-home-price-prediction
448dac93ef26022bc81fab4665a12f592f9556a1
[ "MIT" ]
null
null
null
SF-home-price-prediction/src/preparation.py
apthomas/SF-home-price-prediction
448dac93ef26022bc81fab4665a12f592f9556a1
[ "MIT" ]
null
null
null
SF-home-price-prediction/src/preparation.py
apthomas/SF-home-price-prediction
448dac93ef26022bc81fab4665a12f592f9556a1
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import csv import urllib.request import json from datetime import datetime from datetime import timedelta from sklearn.preprocessing import MinMaxScaler import web_scrapers import os def load_real_estate_data(filename, state_attr, state): df = pd.read_csv(filename, encoding...
51.654135
214
0.655313
0
0
0
0
0
0
0
0
7,893
0.382969
9ef9d0cb1ac73ebdbfd64d7d2d0514517d257322
734
py
Python
src/python/director/builtin/plugins/measurement_tool/plugin.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
src/python/director/builtin/plugins/measurement_tool/plugin.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
src/python/director/builtin/plugins/measurement_tool/plugin.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
from director.devel.plugin import GenericPlugin from director.fieldcontainer import FieldContainer from .lib import measurementpanel from PythonQt import QtCore class Plugin(GenericPlugin): ID = 'measurement_tool' NAME = 'MeasurementTool' DEPENDENCIES = ['MainWindow'] def __init__(self, app, view): sup...
25.310345
77
0.741144
569
0.775204
0
0
0
0
0
0
52
0.070845
9efa004ed72e268641173fcd54de72edaac3595f
4,858
py
Python
jupyter_book/yaml.py
akhmerov/jupyter-book
06b8134af1266655717df474438bed2569b14efe
[ "BSD-3-Clause" ]
1
2021-04-26T03:21:49.000Z
2021-04-26T03:21:49.000Z
jupyter_book/yaml.py
akhmerov/jupyter-book
06b8134af1266655717df474438bed2569b14efe
[ "BSD-3-Clause" ]
1
2020-08-26T08:27:27.000Z
2020-08-27T18:00:42.000Z
jupyter_book/yaml.py
phaustin/jupyter-book
674b222d44cc1acb858804782cee4549eef03fb1
[ "BSD-3-Clause" ]
null
null
null
"""A small sphinx extension to let you configure a site with YAML metadata.""" from pathlib import Path # Transform a "Jupyter Book" YAML configuration file into a Sphinx configuration file. # This is so that we can choose more user-friendly words for things than Sphinx uses. # e.g., 'logo' instead of 'html_logo'. # ...
37.083969
87
0.628036
0
0
0
0
0
0
0
0
2,037
0.419308
9efb34b3c08bdbb3ec7a611587c6c1763f510bd0
5,759
py
Python
ScriptedAgent.py
RaphaelRoyerRivard/Supervised-End-to-end-Weight-sharing-for-StarCraft-II
17171fc95c8385920ab7cab80bd4681ce1bff799
[ "Apache-2.0" ]
null
null
null
ScriptedAgent.py
RaphaelRoyerRivard/Supervised-End-to-end-Weight-sharing-for-StarCraft-II
17171fc95c8385920ab7cab80bd4681ce1bff799
[ "Apache-2.0" ]
null
null
null
ScriptedAgent.py
RaphaelRoyerRivard/Supervised-End-to-end-Weight-sharing-for-StarCraft-II
17171fc95c8385920ab7cab80bd4681ce1bff799
[ "Apache-2.0" ]
null
null
null
__author__ = 'Tony Beltramelli - www.tonybeltramelli.com' # scripted agents taken from PySC2, credits to DeepMind # https://github.com/deepmind/pysc2/blob/master/pysc2/agents/scripted_agent.py import numpy as np import uuid from pysc2.agents import base_agent from pysc2.lib import actions from pysc2.lib import featur...
39.445205
133
0.576489
5,007
0.869422
0
0
0
0
0
0
576
0.100017
9efb77347037fbe157767ce33cce2fb416895aa6
5,602
py
Python
benchmark/test_tpch.py
serverless-analytics/dask-distributed-vanilla
b4b135ee956dbf9e64d10712558a88eafa080675
[ "BSD-3-Clause" ]
null
null
null
benchmark/test_tpch.py
serverless-analytics/dask-distributed-vanilla
b4b135ee956dbf9e64d10712558a88eafa080675
[ "BSD-3-Clause" ]
null
null
null
benchmark/test_tpch.py
serverless-analytics/dask-distributed-vanilla
b4b135ee956dbf9e64d10712558a88eafa080675
[ "BSD-3-Clause" ]
null
null
null
import time import sys import dask from dask.distributed import ( wait, futures_of, Client, ) from tpch import loaddata, queries #from benchmarks import utils # Paths or URLs to the TPC-H tables. #table_paths = { # 'CUSTOMER': 'hdfs://bu-23-115:9000/tpch/customer.tbl', # 'LINEITEM': 'hdfs://bu-...
35.0125
87
0.593181
2,959
0.528204
0
0
0
0
0
0
2,362
0.421635
9efc2be79705e76de2137bab964886217cb24983
3,582
py
Python
pika/adapters/tornado_connection.py
hugovk/pika
03542ef616a2a849e8bfb0845427f50e741ea0c6
[ "BSD-3-Clause" ]
1
2019-08-28T10:10:56.000Z
2019-08-28T10:10:56.000Z
pika/adapters/tornado_connection.py
goupper/pika
e2f26db4f41ac7ea6bdc50964a766472460dce4a
[ "BSD-3-Clause" ]
null
null
null
pika/adapters/tornado_connection.py
goupper/pika
e2f26db4f41ac7ea6bdc50964a766472460dce4a
[ "BSD-3-Clause" ]
null
null
null
"""Use pika with the Tornado IOLoop """ import logging from tornado import ioloop from pika.adapters.utils import nbio_interface, selector_ioloop_adapter from pika.adapters import base_connection LOGGER = logging.getLogger(__name__) class TornadoConnection(base_connection.BaseConnection): """The TornadoConne...
38.934783
80
0.634283
3,341
0.932719
0
0
1,079
0.301228
0
0
1,623
0.453099
9efe36b7df749158058e0d954855a509a9ce6a8b
7,057
py
Python
tests/library/test_ceph_volume_simple_activate.py
u-kosmonaft-u/ceph-ansible
14c472707c165f77def05826b22885480af3e8f9
[ "Apache-2.0" ]
1,570
2015-01-03T08:38:22.000Z
2022-03-31T09:24:37.000Z
tests/library/test_ceph_volume_simple_activate.py
u-kosmonaft-u/ceph-ansible
14c472707c165f77def05826b22885480af3e8f9
[ "Apache-2.0" ]
4,964
2015-01-05T10:41:44.000Z
2022-03-31T07:59:49.000Z
tests/library/test_ceph_volume_simple_activate.py
u-kosmonaft-u/ceph-ansible
14c472707c165f77def05826b22885480af3e8f9
[ "Apache-2.0" ]
1,231
2015-01-04T11:48:16.000Z
2022-03-31T12:15:28.000Z
from mock.mock import patch import os import pytest import ca_test_common import ceph_volume_simple_activate fake_cluster = 'ceph' fake_container_binary = 'podman' fake_container_image = 'quay.ceph.io/ceph/daemon:latest' fake_id = '42' fake_uuid = '0c4a7eca-0c2a-4c12-beff-08a80f064c52' fake_path = '/etc/ceph/osd/{}-{}...
40.325714
132
0.621794
6,700
0.949412
0
0
6,609
0.936517
0
0
1,686
0.238912
9effc7a4839375e16dbdf0896beb3c70b1e21234
154
py
Python
setup.py
Minterious/minter-monitoring
1a2216be57dec491a970950c3b9cfc72cea228c2
[ "MIT" ]
2
2019-08-24T12:15:20.000Z
2019-08-24T12:19:07.000Z
setup.py
Minterious/minter-monitoring
1a2216be57dec491a970950c3b9cfc72cea228c2
[ "MIT" ]
null
null
null
setup.py
Minterious/minter-monitoring
1a2216be57dec491a970950c3b9cfc72cea228c2
[ "MIT" ]
1
2019-09-19T21:16:25.000Z
2019-09-19T21:16:25.000Z
import setuptools setuptools.setup( name='mintermonitoring', version='1.0.0', packages=setuptools.find_packages(include=['mintermonitoring']) )
19.25
66
0.746753
0
0
0
0
0
0
0
0
43
0.279221
7300890aeb852238c2f50f2aafaca22c70ba3108
158
py
Python
Python/Back_solve_python/back_joon/StringArray/P10808.py
skyriv213/Studyriv
6dfd3c52a873cd3bdb018280d81aec8bdcf61e6e
[ "MIT" ]
null
null
null
Python/Back_solve_python/back_joon/StringArray/P10808.py
skyriv213/Studyriv
6dfd3c52a873cd3bdb018280d81aec8bdcf61e6e
[ "MIT" ]
null
null
null
Python/Back_solve_python/back_joon/StringArray/P10808.py
skyriv213/Studyriv
6dfd3c52a873cd3bdb018280d81aec8bdcf61e6e
[ "MIT" ]
null
null
null
s = input() num = [0] * 26 for i in range(len(s)): num[ord(s[i])-97] += 1 for i in num: print(i, end = " ") if i == len(num)-1: print(i)
15.8
26
0.455696
0
0
0
0
0
0
0
0
3
0.018987
73009bb6994a5ff455eca19ffc1b698f9cf1d1d2
600
py
Python
src/reliefcpp/utils.py
ferrocactus/reliefcpp
41705a9e5c749e700f83f9fe9f352457ae57426d
[ "MIT" ]
null
null
null
src/reliefcpp/utils.py
ferrocactus/reliefcpp
41705a9e5c749e700f83f9fe9f352457ae57426d
[ "MIT" ]
null
null
null
src/reliefcpp/utils.py
ferrocactus/reliefcpp
41705a9e5c749e700f83f9fe9f352457ae57426d
[ "MIT" ]
null
null
null
from enum import Enum from numpy import isin class Metric(Enum): EUCLIDEAN = 0 MANHATTAN = 1 HAMMING = 2 L2 = 3 L1 = 4 metric_names = [ "euclidean", "manhattan", "hamming", "l2", "l1" ] def _validate_metric(metric_name): if isinstance(metric_name, Metric): retu...
18.181818
54
0.638333
93
0.155
0
0
0
0
0
0
67
0.111667
7300c97c38a22ec9df0ea9ea6a865bb5bd5120e7
1,993
py
Python
utilityFiles/createValidationDatasetFromXYTrainWithCandidates.py
jmfinelli/JavaNeuralDecompiler
fb914fcf4518815a4d00061b562617fc25e2f2b4
[ "Apache-2.0" ]
1
2021-06-30T12:50:28.000Z
2021-06-30T12:50:28.000Z
utilityFiles/createValidationDatasetFromXYTrainWithCandidates.py
jmfinelli/JavaNeuralDecompiler
fb914fcf4518815a4d00061b562617fc25e2f2b4
[ "Apache-2.0" ]
null
null
null
utilityFiles/createValidationDatasetFromXYTrainWithCandidates.py
jmfinelli/JavaNeuralDecompiler
fb914fcf4518815a4d00061b562617fc25e2f2b4
[ "Apache-2.0" ]
null
null
null
import pandas as pd import os.path length_switch = True max_body_length = 50 process_candidates = os.path.exists('./datasets/candidates.output') x_train = open('./datasets/x_train').readlines() x_train = [x.rstrip('\n') for x in x_train] y_train = open('./datasets/y_train').readlines() y_train = [x.rstrip('\n') for x...
39.078431
100
0.697441
0
0
0
0
0
0
0
0
573
0.287506
7303a20740842e72c83f9691beba5498f652855d
105
py
Python
py/Utility.GetData.py
mathematicalmichael/SpringNodes
3ff4034b6e57ee6efa55c963e1819f3d30a2c4ab
[ "MIT" ]
51
2015-09-25T09:30:57.000Z
2022-01-19T14:16:44.000Z
py/Utility.GetData.py
sabeelcoder/SpringNodes
e21a24965474d54369e74d23c06f8c42a7b926b5
[ "MIT" ]
66
2015-09-30T02:43:32.000Z
2022-03-31T02:26:52.000Z
py/Utility.GetData.py
sabeelcoder/SpringNodes
e21a24965474d54369e74d23c06f8c42a7b926b5
[ "MIT" ]
48
2015-11-19T01:34:47.000Z
2022-02-25T17:26:48.000Z
import System dataKey, _ = IN OUT = System.AppDomain.CurrentDomain.GetData("_Dyn_Wireless_%s" % dataKey)
26.25
74
0.780952
0
0
0
0
0
0
0
0
18
0.171429
7303be01ae89f9c41f09c1617f6cea31c52d0cf4
347
py
Python
codes_/1189_Maximum_Number_of_Balloons.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/1189_Maximum_Number_of_Balloons.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/1189_Maximum_Number_of_Balloons.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
# %% [1189. *Maximum Number of Balloons](https://leetcode.com/problems/maximum-number-of-balloons/) # 問題:textから'ballon'を構成できる数を返せ # 解法:collections.Counterを用いる class Solution: def maxNumberOfBalloons(self, text: str) -> int: c = collections.Counter(text) return min(c[s] // n for s, n in collections.C...
43.375
99
0.700288
187
0.478261
0
0
0
0
0
0
209
0.534527
7303f0aa47265452a8086f8bcf4551e8db1e3810
7,746
py
Python
src/Quiet.X.Tests/i2c_test.py
callwyat/Quiet-Firmware
864c210e44d368a4a683704841067717ebc8ac43
[ "MIT" ]
null
null
null
src/Quiet.X.Tests/i2c_test.py
callwyat/Quiet-Firmware
864c210e44d368a4a683704841067717ebc8ac43
[ "MIT" ]
null
null
null
src/Quiet.X.Tests/i2c_test.py
callwyat/Quiet-Firmware
864c210e44d368a4a683704841067717ebc8ac43
[ "MIT" ]
null
null
null
from quiet_coms import find_quiet_ports from quiet import Quiet import time if 'EXIT_ON_FAIL' not in locals(): VERBOSE = True EXIT_ON_FAIL = True class QuietI2C(Quiet): def __init__(self, coms, **kargs) -> None: Quiet.__init__(self, coms, **kargs) def raw_write(self, addr: int, data: bytearra...
29.340909
113
0.631423
1,034
0.133488
0
0
0
0
0
0
1,860
0.240124
7304d96eed7cd6d1a985ffc90a2d6a94ba9983b7
716
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Data-Structures/binary-tree/binary-tree-tilt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Data-Structures/binary-tree/binary-tree-tilt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Data-Structures/binary-tree/binary-tree-tilt.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
# Source : https://leetcode.com/problems/binary-tree-tilt/description/ # Date : 2017-12-26 # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def findTilt(self, root): """ ...
21.058824
70
0.540503
456
0.636872
0
0
0
0
0
0
311
0.434358
7305e3962fe9733cd02f16a567ab4d4b8d8a9743
7,581
py
Python
kerastuner/engine/tuner_utils.py
krantirk/keras-tuner
fbc34866bf4e7ff1d60bf8c341a9325b9d5429b3
[ "Apache-2.0" ]
1
2019-07-12T17:17:06.000Z
2019-07-12T17:17:06.000Z
kerastuner/engine/tuner_utils.py
nishantsbi/keras-tuner
fbc34866bf4e7ff1d60bf8c341a9325b9d5429b3
[ "Apache-2.0" ]
null
null
null
kerastuner/engine/tuner_utils.py
nishantsbi/keras-tuner
fbc34866bf4e7ff1d60bf8c341a9325b9d5429b3
[ "Apache-2.0" ]
1
2020-01-02T04:07:22.000Z
2020-01-02T04:07:22.000Z
# Copyright 2019 The Keras Tuner Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.544248
78
0.626962
5,570
0.734732
168
0.022161
484
0.063844
0
0
1,390
0.183353
7306a719a754d7eb090a7a28857cf9ab3cc30caf
1,880
py
Python
plotter.py
ZiegHailo/SMUVI
c324c881c511f1c44e481f93e6bd6fe7f85d4ded
[ "MIT" ]
null
null
null
plotter.py
ZiegHailo/SMUVI
c324c881c511f1c44e481f93e6bd6fe7f85d4ded
[ "MIT" ]
null
null
null
plotter.py
ZiegHailo/SMUVI
c324c881c511f1c44e481f93e6bd6fe7f85d4ded
[ "MIT" ]
null
null
null
__author__ = 'zieghailo' import matplotlib.pyplot as plt # plt.ion() def show(): plt.show() plt.get_current_fig_manager().full_screen_toggle() def plot_graph(graph): # plt.ion() x = [p.x for p in graph.points] y = [p.y for p in graph.points] plt.plot(x, y, 'b*') plt.draw() def plot_ar...
22.650602
79
0.579787
738
0.392553
0
0
0
0
0
0
185
0.098404
7306a81bcc0bef579d78b882fb2bc110b0f6bf5f
1,506
py
Python
fannypack/utils/_deprecation.py
brentyi/hfdsajk
2888aa5d969824ac1e1a528264674ece3f4703f9
[ "MIT" ]
5
2020-03-13T21:34:31.000Z
2020-10-27T15:18:17.000Z
fannypack/utils/_deprecation.py
brentyi/hfdsajk
2888aa5d969824ac1e1a528264674ece3f4703f9
[ "MIT" ]
2
2020-06-17T11:06:56.000Z
2020-10-25T03:06:18.000Z
fannypack/utils/_deprecation.py
brentyi/hfdsajk
2888aa5d969824ac1e1a528264674ece3f4703f9
[ "MIT" ]
4
2020-03-15T01:55:18.000Z
2022-01-21T22:06:48.000Z
import warnings from typing import Callable, Optional, TypeVar, cast CallableType = TypeVar("CallableType", bound=Callable) def deprecation_wrapper(message: str, function_or_class: CallableType) -> CallableType: """Creates a wrapper for a deprecated function or class. Prints a warning the first time a functi...
31.375
87
0.688579
0
0
0
0
0
0
0
0
831
0.551793
7307b7da6fb6d2b5a5aa27d12b5f25e31c28bd7c
319
py
Python
write/5_json_writer.py
pavlovprojects/python_qa_test_data
4066f73c83cdd4ace9d6150726a578c0326daf94
[ "MIT" ]
null
null
null
write/5_json_writer.py
pavlovprojects/python_qa_test_data
4066f73c83cdd4ace9d6150726a578c0326daf94
[ "MIT" ]
null
null
null
write/5_json_writer.py
pavlovprojects/python_qa_test_data
4066f73c83cdd4ace9d6150726a578c0326daf94
[ "MIT" ]
null
null
null
import json data = { "users": [ {"Name": "Dominator", "skill": 100, "gold": 99999, "weapons": ['Sword', 'Atomic Laser']}, {"Name": "Looser", "skill": 1, "gold": -100000, "weapons": [None, None, None]}, ] } with open("example.json", "w") as f: s = json.dumps(data, indent=4) f.write(s)
24.538462
97
0.526646
0
0
0
0
0
0
0
0
120
0.376176
730824ac4dba3e614be06b76613a0a6b290846f5
46
py
Python
src/utils.py
sequoia-tree/cs370
47bf7f56d20bd81abbdbd0502477afcd5f62bbbe
[ "CC-BY-4.0" ]
1
2019-01-14T08:31:45.000Z
2019-01-14T08:31:45.000Z
src/utils.py
sequoia-tree/teaching-cs
47bf7f56d20bd81abbdbd0502477afcd5f62bbbe
[ "CC-BY-4.0" ]
null
null
null
src/utils.py
sequoia-tree/teaching-cs
47bf7f56d20bd81abbdbd0502477afcd5f62bbbe
[ "CC-BY-4.0" ]
null
null
null
from md_utils import * from py_utils import *
15.333333
22
0.782609
0
0
0
0
0
0
0
0
0
0
73085370dd0ae578546e4f06c27e87ad769b743a
387
py
Python
practice/ai/machine-learning/digital-camera-day-or-night/digital-camera-day-or-night.py
zeyuanxy/HackerRank
5194a4af780ece396501c215996685d1be529e73
[ "MIT" ]
4
2017-01-18T17:51:58.000Z
2019-10-20T12:14:37.000Z
practice/ai/machine-learning/digital-camera-day-or-night/digital-camera-day-or-night.py
zeyuanxy/HackerRank
5194a4af780ece396501c215996685d1be529e73
[ "MIT" ]
null
null
null
practice/ai/machine-learning/digital-camera-day-or-night/digital-camera-day-or-night.py
zeyuanxy/HackerRank
5194a4af780ece396501c215996685d1be529e73
[ "MIT" ]
8
2016-03-14T17:16:59.000Z
2021-06-26T10:11:33.000Z
if __name__ == "__main__": data = raw_input().strip(',\n').split(' ') count = 0 total = 0 for pxl in data: pxl = pxl.split(',') mean = 0 for i in pxl: mean += int(i) mean /= 3 if mean < 70: count += 1 total += 1 if float(count) ...
21.5
46
0.426357
0
0
0
0
0
0
0
0
33
0.085271
73087bd098e88fc78614d997333c9cb2a9e486e2
1,231
py
Python
Mini Projects/RockPaperScissors/RPS.py
Snowystar122/Python-Projects
faf05ec388030b8b40ad7a8ca5c2760fb62cf5a3
[ "MIT" ]
null
null
null
Mini Projects/RockPaperScissors/RPS.py
Snowystar122/Python-Projects
faf05ec388030b8b40ad7a8ca5c2760fb62cf5a3
[ "MIT" ]
null
null
null
Mini Projects/RockPaperScissors/RPS.py
Snowystar122/Python-Projects
faf05ec388030b8b40ad7a8ca5c2760fb62cf5a3
[ "MIT" ]
null
null
null
import random as r # Sets up required variables running = True user_wins = 0 comp_wins = 0 answers = ["R", "P", "S"] win_combos = ["PR", "RS", "SP"] # Welcome message print("Welcome to Rock-Paper-Scissors. Please input one of the following:" "\n'R' - rock\n'P' - paper\n'S' - scissors\nto get started.") whil...
32.394737
95
0.622258
0
0
0
0
0
0
0
0
575
0.4671
730b2987ac65ae096f7d5f37854abcd28bec2bf9
1,147
py
Python
pybullet-gym/pybulletgym/agents/agents_baselines.py
SmaleZ/vcl_diayn
b2c47a681675b405d2011bc4a43c3914f3af4ecc
[ "MIT" ]
2
2021-07-12T17:11:35.000Z
2021-07-13T05:56:30.000Z
pybullet-gym/pybulletgym/agents/agents_baselines.py
SmaleZ/vcl_diayn
b2c47a681675b405d2011bc4a43c3914f3af4ecc
[ "MIT" ]
null
null
null
pybullet-gym/pybulletgym/agents/agents_baselines.py
SmaleZ/vcl_diayn
b2c47a681675b405d2011bc4a43c3914f3af4ecc
[ "MIT" ]
null
null
null
from baselines import deepq def add_opts(parser): pass class BaselinesDQNAgent(object): ''' classdocs ''' def __init__(self, opts): self.metadata = { 'discrete_actions': True, } self.opts = opts self.agent = None def configure(self, observation_space_shape, nb_actions): pass def train(self, ...
20.854545
58
0.691369
1,087
0.94769
0
0
0
0
0
0
53
0.046207
730be722fa533a8220a435fcc4009bd19bbb500f
1,426
py
Python
exploit.py
hexcowboy/CVE-2020-8813
0229d52f8b5adb63cc6d5bc757850a01a7800b8d
[ "MIT" ]
null
null
null
exploit.py
hexcowboy/CVE-2020-8813
0229d52f8b5adb63cc6d5bc757850a01a7800b8d
[ "MIT" ]
null
null
null
exploit.py
hexcowboy/CVE-2020-8813
0229d52f8b5adb63cc6d5bc757850a01a7800b8d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests import click from rich import inspect from rich.console import Console from url_normalize import url_normalize from urllib.parse import quote console = Console() def shell_encode(string): return string.replace(" ", "${IFS}") @click.command() @click.option("-u", "--url", prompt...
31
109
0.680224
0
0
0
0
1,114
0.781206
0
0
565
0.396213
730d40eb64f626d437281807fa30ca37ecd18cc5
1,119
py
Python
common/src/stack/command/stack/commands/set/firmware/model/imp/__init__.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
common/src/stack/command/stack/commands/set/firmware/model/imp/__init__.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
common/src/stack/command/stack/commands/set/firmware/model/imp/__init__.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
# @copyright@ # Copyright (c) 2006 - 2019 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ # # @rocks@ # Copyright (c) 2000 - 2010 The Regents of the University of California # All rights reserved. Rocks(r) v5.4 www.rocksclusters.org # ...
29.447368
111
0.739946
699
0.624665
0
0
0
0
0
0
958
0.856122
73106dc1db1187afa8a045a4fa929befaa9cbf34
5,939
py
Python
torch/jit/_fuser.py
ljhOfGithub/pytorch
c568f7b16f2a98d72ff5b7c6c6161b67b2c27514
[ "Intel" ]
1
2022-03-29T00:44:31.000Z
2022-03-29T00:44:31.000Z
torch/jit/_fuser.py
ljhOfGithub/pytorch
c568f7b16f2a98d72ff5b7c6c6161b67b2c27514
[ "Intel" ]
null
null
null
torch/jit/_fuser.py
ljhOfGithub/pytorch
c568f7b16f2a98d72ff5b7c6c6161b67b2c27514
[ "Intel" ]
1
2022-03-28T21:49:41.000Z
2022-03-28T21:49:41.000Z
import contextlib import torch from typing import List, Tuple @contextlib.contextmanager def optimized_execution(should_optimize): """ A context manager that controls whether the JIT's executor will run optimizations before executing a function. """ stored_flag = torch._C._get_graph_executor_optim...
42.120567
106
0.706348
0
0
2,302
0.387607
2,356
0.3967
0
0
2,549
0.429197
73111dceec02df0e21147895187850aaff39304f
4,420
py
Python
modlit/db/postgres.py
patdaburu/modlit
9c9c153b74f116357e856e4c204c9a83bb15398f
[ "MIT" ]
null
null
null
modlit/db/postgres.py
patdaburu/modlit
9c9c153b74f116357e856e4c204c9a83bb15398f
[ "MIT" ]
null
null
null
modlit/db/postgres.py
patdaburu/modlit
9c9c153b74f116357e856e4c204c9a83bb15398f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by pat on 5/8/18 """ .. currentmodule:: modlit.db.postgres .. moduleauthor:: Pat Daburu <pat@daburu.net> This module contains utilities for working directly with PostgreSQL. """ import json from pathlib import Path from urllib.parse import urlparse, ParseResult ...
32.262774
79
0.640045
0
0
0
0
0
0
0
0
2,277
0.515158
7311fe6464a3f41ba16f8290bf926cae00157858
3,179
py
Python
estradaspt_legacy/__init__.py
dpjrodrigues/home-assistant-custom-components
105feec36ea065e62e839b5137a9ee2e2dcf3513
[ "MIT" ]
null
null
null
estradaspt_legacy/__init__.py
dpjrodrigues/home-assistant-custom-components
105feec36ea065e62e839b5137a9ee2e2dcf3513
[ "MIT" ]
null
null
null
estradaspt_legacy/__init__.py
dpjrodrigues/home-assistant-custom-components
105feec36ea065e62e839b5137a9ee2e2dcf3513
[ "MIT" ]
5
2018-12-29T16:39:25.000Z
2019-12-21T22:29:22.000Z
import logging import async_timeout import urllib.request import time import re from datetime import datetime, timedelta import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity from homea...
27.17094
75
0.674111
1,475
0.463691
0
0
1,100
0.345803
1,037
0.325998
572
0.179818
7311ffda56e787743243c236f69f050e734a7937
22,262
py
Python
parser.py
boshijingang/PyLuaCompiler
37cdf73286d020b2d119635d6d2609a5d9debfed
[ "MIT" ]
null
null
null
parser.py
boshijingang/PyLuaCompiler
37cdf73286d020b2d119635d6d2609a5d9debfed
[ "MIT" ]
null
null
null
parser.py
boshijingang/PyLuaCompiler
37cdf73286d020b2d119635d6d2609a5d9debfed
[ "MIT" ]
null
null
null
import lexer import ast class Parser: block_end_tokens = [lexer.TokenKind.KW_RETURN, lexer.TokenKind.EOF, lexer.TokenKind.KW_END, lexer.TokenKind.KW_ELSE, lexer.TokenKind.KW_ELSEIF, lexer.TokenKind.KW_UNTIL] priority_table = { lexer.TokenKind.OP_ADD: {'l...
42.894027
128
0.620519
22,448
0.998843
0
0
0
0
0
0
2,670
0.118804
73127b6e66f9e5e908a0672dbaeb988571d8cf2c
14,720
py
Python
python/terra_proto/terra/treasury/v1beta1/__init__.py
Vritra4/terra.proto
977264b7c3e0f9d135120d77b48657b82f5eacf6
[ "Apache-2.0" ]
null
null
null
python/terra_proto/terra/treasury/v1beta1/__init__.py
Vritra4/terra.proto
977264b7c3e0f9d135120d77b48657b82f5eacf6
[ "Apache-2.0" ]
null
null
null
python/terra_proto/terra/treasury/v1beta1/__init__.py
Vritra4/terra.proto
977264b7c3e0f9d135120d77b48657b82f5eacf6
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: terra/treasury/v1beta1/genesis.proto, terra/treasury/v1beta1/query.proto, terra/treasury/v1beta1/treasury.proto # plugin: python-betterproto from dataclasses import dataclass from typing import Dict, List import betterproto from betterproto.grpc.grp...
31.120507
122
0.691508
13,417
0.911481
0
0
6,648
0.45163
5,108
0.347011
3,817
0.259307
7316876aa79ec9dd6b9b2ee309c9f7ea22776613
5,066
py
Python
usbservo/usbservogui.py
ppfenninger/screwball
c4a7273fa47dac6bdf6fcf8ca29c85a77f9e5bd6
[ "MIT" ]
null
null
null
usbservo/usbservogui.py
ppfenninger/screwball
c4a7273fa47dac6bdf6fcf8ca29c85a77f9e5bd6
[ "MIT" ]
null
null
null
usbservo/usbservogui.py
ppfenninger/screwball
c4a7273fa47dac6bdf6fcf8ca29c85a77f9e5bd6
[ "MIT" ]
null
null
null
# ## Copyright (c) 2018, Bradley A. Minch ## 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 ## notic...
49.666667
153
0.647059
3,507
0.692262
0
0
0
0
0
0
1,645
0.324714
7317deb1560647aa925ec2a580d6d0908f2796af
155
py
Python
GasBotty/models/utils.py
GreenCUBIC/GasBotty
158f5991201c80bf4cbbbb9deabc9954ff19bbb1
[ "MIT" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
GasBotty/models/utils.py
GreenCUBIC/GasBotty
158f5991201c80bf4cbbbb9deabc9954ff19bbb1
[ "MIT" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
GasBotty/models/utils.py
GreenCUBIC/GasBotty
158f5991201c80bf4cbbbb9deabc9954ff19bbb1
[ "MIT" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
try: from torch.hub import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import load_url as load_state_dict_from_url
31
75
0.806452
0
0
0
0
0
0
0
0
0
0
7318340689a601475670cd96bc3a15da21a3e8a4
2,438
py
Python
pyzayo/svcinv_mixin.py
jeremyschulman/pyzayo
37869daf6ef2df8e0898bae7c3ddbb0139840751
[ "Apache-2.0" ]
1
2021-06-02T10:00:35.000Z
2021-06-02T10:00:35.000Z
pyzayo/svcinv_mixin.py
jeremyschulman/pyzayo
37869daf6ef2df8e0898bae7c3ddbb0139840751
[ "Apache-2.0" ]
null
null
null
pyzayo/svcinv_mixin.py
jeremyschulman/pyzayo
37869daf6ef2df8e0898bae7c3ddbb0139840751
[ "Apache-2.0" ]
null
null
null
""" This file contains the Zayo Service Inventory related API endpoints. References ---------- Docs http://54.149.224.75/wp-content/uploads/2020/02/Service-Inventory-Wiki.pdf """ # ----------------------------------------------------------------------------- # System Imports # --------------------------------...
30.475
82
0.455291
1,341
0.550041
0
0
0
0
0
0
1,807
0.741181
7318d12083b715d2887f9b7cf5b2559fad4d08c0
6,236
py
Python
pychron/core/helpers/logger_setup.py
aelamspychron/pychron
ad87c22b0817c739c7823a24585053041ee339d5
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/core/helpers/logger_setup.py
aelamspychron/pychron
ad87c22b0817c739c7823a24585053041ee339d5
[ "Apache-2.0" ]
20
2020-09-09T20:58:39.000Z
2021-10-05T17:48:37.000Z
pychron/core/helpers/logger_setup.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2011 Jake Ross # # 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...
29.837321
103
0.591725
0
0
0
0
0
0
0
0
2,109
0.338198
7318f31264c2155178f9f5bd08d307cfd0e1de20
7,980
py
Python
picmodels/models/care_advisors/case_management_models/sequence_models/services/create_update_delete.py
bbcawodu/careadvisors-backend
5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838
[ "MIT" ]
null
null
null
picmodels/models/care_advisors/case_management_models/sequence_models/services/create_update_delete.py
bbcawodu/careadvisors-backend
5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838
[ "MIT" ]
null
null
null
picmodels/models/care_advisors/case_management_models/sequence_models/services/create_update_delete.py
bbcawodu/careadvisors-backend
5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838
[ "MIT" ]
null
null
null
import picmodels def create_row_w_validated_params(cls, validated_params, rqst_errors): if 'name' not in validated_params: rqst_errors.append("'name' is a required key in the validated_params argument") return None if cls.check_for_rows_with_given_name(validated_params['name'], rqst_errors): ...
34.545455
166
0.61817
0
0
0
0
0
0
0
0
1,098
0.137594
731a5b94603a881cbdad31e6b399fc2db646e99b
4,162
py
Python
elegy/optimizer_test.py
sooheon/elegy
cad6f832cac1a34684c4f4f2c4a386cbfa817623
[ "Apache-2.0" ]
null
null
null
elegy/optimizer_test.py
sooheon/elegy
cad6f832cac1a34684c4f4f2c4a386cbfa817623
[ "Apache-2.0" ]
null
null
null
elegy/optimizer_test.py
sooheon/elegy
cad6f832cac1a34684c4f4f2c4a386cbfa817623
[ "Apache-2.0" ]
null
null
null
import jax import elegy import unittest import numpy as np import jax.numpy as jnp import optax class MLP(elegy.Module): """Standard LeNet-300-100 MLP network.""" n1: int n2: int def __init__(self, n1: int = 3, n2: int = 4): super().__init__() self.n1 = n1 self.n2 = n2 ...
30.602941
88
0.606439
4,059
0.975252
0
0
0
0
0
0
49
0.011773
731a5f37b2d3af866a1a81886741f91cddda5c09
6,929
py
Python
scripts/version.py
nfnty/docker
cdc68f57fdb6bd472b78d6ef6cbc77f430bd5089
[ "MIT" ]
54
2015-03-08T23:45:21.000Z
2021-01-11T12:35:07.000Z
scripts/version.py
nfnty/docker
cdc68f57fdb6bd472b78d6ef6cbc77f430bd5089
[ "MIT" ]
4
2015-04-10T08:58:29.000Z
2015-11-08T08:34:55.000Z
scripts/version.py
nfnty/docker
cdc68f57fdb6bd472b78d6ef6cbc77f430bd5089
[ "MIT" ]
16
2015-04-08T23:54:07.000Z
2020-04-08T22:03:12.000Z
#!/usr/bin/python3 ''' Check image package versions ''' import argparse import distutils.version import re import subprocess from typing import Any, Dict, Sequence, Tuple import lxml.html # type: ignore import requests from termcolor import cprint from utils.image import IMAGES, path_dockerfile TIMEOUT = (31, 181...
35.533333
97
0.593159
0
0
0
0
0
0
0
0
1,387
0.200173
731bcc2e7423a542f77047dce4151ada325579ea
2,441
py
Python
nazrul.py
rakesh0703/Content_Parser_of_works_of_kazi_nazrul
c3e2060effe7b7576ee5b034a9aba3df648d6358
[ "Apache-2.0" ]
null
null
null
nazrul.py
rakesh0703/Content_Parser_of_works_of_kazi_nazrul
c3e2060effe7b7576ee5b034a9aba3df648d6358
[ "Apache-2.0" ]
null
null
null
nazrul.py
rakesh0703/Content_Parser_of_works_of_kazi_nazrul
c3e2060effe7b7576ee5b034a9aba3df648d6358
[ "Apache-2.0" ]
null
null
null
# -- coding: UTF-8 -- """ Spyder Editor This is a temporary script file. """ from bs4 import BeautifulSoup import sys import os import ssl ssl._create_default_https_context = ssl._create_unverified_context import urllib.parse,urllib.request,urllib.error base="https://nazrul-rachanabali.nltr.org/" page=urllib.request....
29.059524
87
0.530111
0
0
0
0
0
0
0
0
702
0.287587
731bee30cd85e8877da89abd76314f81852e3106
730
py
Python
algoplex/api/order.py
dmitryaleks/algo-plex
c83421642fc1ac11e558126ec73909b175b07862
[ "BSD-2-Clause" ]
null
null
null
algoplex/api/order.py
dmitryaleks/algo-plex
c83421642fc1ac11e558126ec73909b175b07862
[ "BSD-2-Clause" ]
null
null
null
algoplex/api/order.py
dmitryaleks/algo-plex
c83421642fc1ac11e558126ec73909b175b07862
[ "BSD-2-Clause" ]
null
null
null
class Order(): def __init__(self, side, pair, size, price, stop_loss_price, id): self.side = side self.pair = pair self.size = size self.price = price self.stop_loss_price = stop_loss_price self.id = id self.fills = [] def define_id(self, id): se...
26.071429
69
0.609589
729
0.99863
0
0
0
0
0
0
0
0
731c7020273e619e347b608e87b47d20ed636f00
3,515
py
Python
core/handler.py
mh4x0f/kinproxy
72dd24eb5ff5286c2bb57524124934a54614f9ec
[ "MIT" ]
5
2018-01-20T15:33:14.000Z
2021-06-29T04:26:44.000Z
core/handler.py
mh4x0f/kinproxy
72dd24eb5ff5286c2bb57524124934a54614f9ec
[ "MIT" ]
null
null
null
core/handler.py
mh4x0f/kinproxy
72dd24eb5ff5286c2bb57524124934a54614f9ec
[ "MIT" ]
1
2019-03-08T18:46:05.000Z
2019-03-08T18:46:05.000Z
try: from mitmproxy import controller, proxy from mitmproxy.proxy.server import ProxyServer except: from libmproxy import controller, proxy from libmproxy.proxy.server import ProxyServer from plugins import * from threading import Thread from core.config.settings import SettingsINI # MIT License # # Co...
33.47619
80
0.657183
2,101
0.597724
0
0
0
0
0
0
1,674
0.476245
731d1cfc50fdedf83932598a710d90798e979c30
4,940
py
Python
mapping/sandbox/graphslam/graphslam_pipeline.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
1
2021-02-24T03:11:13.000Z
2021-02-24T03:11:13.000Z
mapping/sandbox/graphslam/graphslam_pipeline.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
null
null
null
mapping/sandbox/graphslam/graphslam_pipeline.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
3
2015-03-18T14:36:04.000Z
2018-07-04T02:57:24.000Z
import os from os.path import join as pjoin from subprocess import check_call from ruffus import files, follows, pipeline_run, pipeline_printout, pipeline_printout_graph, jobs_limit from graphslam_config import GRAPHSLAM_PATH,\ GRAPHSLAM_MATCH_DIR, GRAPHSLAM_OPT_POS_DIR, GRAPHSLAM_ALIGN_DIR,\ MATCHES_FI...
37.424242
185
0.654049
0
0
0
0
2,448
0.495547
0
0
1,232
0.249393
731e4596b4a14f1da0dc95574358cfa12ef495f2
319
py
Python
sandbox/wavelets.py
EtalumaSupport/LumaViewPro
ab9678c04fc561e6fce8b774c5d87cc91d6f3e07
[ "MIT" ]
null
null
null
sandbox/wavelets.py
EtalumaSupport/LumaViewPro
ab9678c04fc561e6fce8b774c5d87cc91d6f3e07
[ "MIT" ]
59
2021-03-26T19:22:59.000Z
2021-12-04T00:42:12.000Z
sandbox/wavelets.py
EtalumaSupport/LumaViewPro
ab9678c04fc561e6fce8b774c5d87cc91d6f3e07
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from astropy.convolution import RickerWavelet2DKernel ricker_2d_kernel = RickerWavelet2DKernel(5) plt.imshow(ricker_2d_kernel, interpolation='none', origin='lower') plt.xlabel('x [pixels]') plt.ylabel('y [pixels]') plt.colorbar() plt.show() print(ricker_2d_kernel)
22.785714
66
0.793103
0
0
0
0
0
0
0
0
37
0.115987
731e657c5103db0d7c66fbe61179c7894a85d4d3
5,267
py
Python
tests/test_errors.py
raymundl/firepit
5b913806eef646c02bd55e301b19baa052aa29d5
[ "Apache-2.0" ]
null
null
null
tests/test_errors.py
raymundl/firepit
5b913806eef646c02bd55e301b19baa052aa29d5
[ "Apache-2.0" ]
null
null
null
tests/test_errors.py
raymundl/firepit
5b913806eef646c02bd55e301b19baa052aa29d5
[ "Apache-2.0" ]
null
null
null
import os import pytest from firepit.exceptions import IncompatibleType from firepit.exceptions import InvalidAttr from firepit.exceptions import InvalidStixPath from firepit.exceptions import InvalidViewname from firepit.exceptions import StixPatternError from .helpers import tmp_storage @pytest.fixture def invali...
35.587838
101
0.652933
0
0
0
0
150
0.028479
0
0
1,565
0.297133
731f66af557f8e0f3fe1a093bf5c18d9478212d8
11,798
py
Python
script/run_scribus.py
csneofreak/public-domain-season-songs
d6e559e7cfe6e3a7ab784855a096d02ae8c656cd
[ "Unlicense" ]
14
2015-12-18T10:52:15.000Z
2021-01-11T14:43:47.000Z
script/run_scribus.py
csneofreak/public-domain-season-songs
d6e559e7cfe6e3a7ab784855a096d02ae8c656cd
[ "Unlicense" ]
1
2015-12-05T19:30:01.000Z
2015-12-05T19:30:01.000Z
script/run_scribus.py
csneofreak/public-domain-season-songs
d6e559e7cfe6e3a7ab784855a096d02ae8c656cd
[ "Unlicense" ]
9
2015-03-11T04:09:23.000Z
2021-12-18T21:44:47.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import time import json import os import math import scribus import simplebin import inspect from collections import defaultdict PWD = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) def pwd(path): return os.path.join(PWD, path); DATA_FILE = pwd...
37.693291
152
0.66418
0
0
0
0
0
0
0
0
2,073
0.175708
73204039a36f632a872aa19aeb8f09ee3f95315d
424
py
Python
12-transformar_metro.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
12-transformar_metro.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
12-transformar_metro.py
tainagirotto/exercicios-py
39107c05a0a8e5230cd48876ad8e1ad6f0a2ff59
[ "MIT" ]
null
null
null
# Ler um número em metros e mostrar seu valor em cm e mm: m = float(input('Digite o valor em metros: ')) dm = m * 10 cm = m * 100 mm = m * 1000 km = m/1000 hm = m/100 dam = m/10 print('O valor em cm é {}' .format(cm)) print('O valor em milímetros é {}' .format(mm)) print('O valor em dm é {}' .format(dm)) print('O val...
24.941176
57
0.613208
0
0
0
0
0
0
0
0
215
0.5
73212f2cfd8e6dccfeaf70d354cab83a3bcc2ae2
3,059
py
Python
src/urls.py
chunky2808/Hire-Me
7a43fb2f555a5f46e285d24c18457c2ce1c0d225
[ "MIT" ]
null
null
null
src/urls.py
chunky2808/Hire-Me
7a43fb2f555a5f46e285d24c18457c2ce1c0d225
[ "MIT" ]
6
2020-02-12T00:41:15.000Z
2022-03-11T23:20:37.000Z
src/urls.py
chunky2808/Hire-Me
7a43fb2f555a5f46e285d24c18457c2ce1c0d225
[ "MIT" ]
null
null
null
"""src URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
50.147541
119
0.676038
0
0
0
0
0
0
0
0
1,603
0.524027
7322d738208c1e92a29dc1677393b7f139a60b9b
1,546
py
Python
re_compare/re_compare.py
gchase/re-compare
c717094053fd5938ea7f0a46dcfec75bc077cb7e
[ "MIT" ]
null
null
null
re_compare/re_compare.py
gchase/re-compare
c717094053fd5938ea7f0a46dcfec75bc077cb7e
[ "MIT" ]
null
null
null
re_compare/re_compare.py
gchase/re-compare
c717094053fd5938ea7f0a46dcfec75bc077cb7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import argparse import traceback import os import sys from analysis import Analysis from collector import Collector from config import DEBUG, DEFAULT_LOG_FILE_DIR def is_dir(dirname): if not os.path.isdir(dirname): msg = "{0} is not a directory".format(dirname) ...
24.539683
82
0.641656
0
0
0
0
0
0
0
0
369
0.23868
7323e7284674358cab716226cc5bccd1b52ec055
1,216
py
Python
venv/Lib/site-packages/nipype/conftest.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/conftest.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/conftest.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
import os import shutil from tempfile import mkdtemp import pytest import numpy import py.path as pp NIPYPE_DATADIR = os.path.realpath( os.path.join(os.path.dirname(__file__), "testing/data") ) temp_folder = mkdtemp() data_dir = os.path.join(temp_folder, "data") shutil.copytree(NIPYPE_DATADIR, data_dir) @pytest....
26.434783
76
0.709704
0
0
540
0.444079
784
0.644737
0
0
339
0.278783
732764ebd0702a98bf1fa40e238672b9d8162849
397
py
Python
tests/test_modules/test_ADPandABlocks/test_adpandablocks_blocks.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_ADPandABlocks/test_adpandablocks_blocks.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_ADPandABlocks/test_adpandablocks_blocks.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
from mock import Mock from malcolm.testutil import ChildTestCase from malcolm.modules.ADPandABlocks.blocks import pandablocks_runnable_block class TestADPandABlocksBlocks(ChildTestCase): def test_pandablocks_runnable_block(self): self.create_child_block( pandablocks_runnable_block, Mock(), ...
33.083333
78
0.7733
252
0.634761
0
0
0
0
0
0
29
0.073048
73276ed229a6cddfa545672ed9e4e28191eeb79e
2,939
py
Python
pymbolic/mapper/coefficient.py
sv2518/pymbolic
42687a410b1c355beec510b91c18f97e5137795b
[ "MIT" ]
null
null
null
pymbolic/mapper/coefficient.py
sv2518/pymbolic
42687a410b1c355beec510b91c18f97e5137795b
[ "MIT" ]
null
null
null
pymbolic/mapper/coefficient.py
sv2518/pymbolic
42687a410b1c355beec510b91c18f97e5137795b
[ "MIT" ]
null
null
null
__copyright__ = "Copyright (C) 2013 Andreas Kloeckner" __license__ = """ 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, ...
35.841463
77
0.639673
1,799
0.612113
0
0
0
0
0
0
1,090
0.370874
7328644eaa6b2ec01fefc42231719421b2897b5b
1,958
py
Python
day_06/balancer.py
anglerud/advent_of_code_2017
eff27d43cd9eb7c60271887c80cb88f1ae50c48d
[ "MIT" ]
3
2017-12-06T21:23:19.000Z
2020-04-12T09:49:53.000Z
day_06/balancer.py
anglerud/advent_of_code_2017
eff27d43cd9eb7c60271887c80cb88f1ae50c48d
[ "MIT" ]
null
null
null
day_06/balancer.py
anglerud/advent_of_code_2017
eff27d43cd9eb7c60271887c80cb88f1ae50c48d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ """ import typing as t import attr import click @attr.s(frozen=True) class Memory(object): banks: t.Tuple[int, ...] = attr.ib() def balance(self) -> 'Memory': mem = list(self.banks) num_banks = len(self.banks) # Find the amount of blocks to ...
23.035294
76
0.62666
673
0.343718
0
0
1,433
0.731869
0
0
393
0.200715
7329f5fd535980ef38334fa719dd3596b7005058
176
py
Python
python-while/exercise4.py
crobert7/Py-Basics
c1d1a1441de6cbee409c59ddda2b11bc7ee16df1
[ "MIT" ]
null
null
null
python-while/exercise4.py
crobert7/Py-Basics
c1d1a1441de6cbee409c59ddda2b11bc7ee16df1
[ "MIT" ]
null
null
null
python-while/exercise4.py
crobert7/Py-Basics
c1d1a1441de6cbee409c59ddda2b11bc7ee16df1
[ "MIT" ]
null
null
null
word = input('Type a word: ') while word != 'chupacabra': word = input('Type a word: ') if word == 'chupacabra': print('You are out of the loop') break
25.142857
40
0.5625
0
0
0
0
0
0
0
0
79
0.448864
732ac32a2f056f0d1b4317192e07425ea49f8e2a
1,268
bzl
Python
pw_build/selects.bzl
mspang/pigweed
89ff5f98f38b1ff7a1ff0633c590479e9b592a14
[ "Apache-2.0" ]
null
null
null
pw_build/selects.bzl
mspang/pigweed
89ff5f98f38b1ff7a1ff0633c590479e9b592a14
[ "Apache-2.0" ]
1
2021-06-18T13:54:41.000Z
2021-06-18T13:54:41.000Z
pw_build/selects.bzl
mspang/pigweed
89ff5f98f38b1ff7a1ff0633c590479e9b592a14
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.625
79
0.729495
0
0
0
0
0
0
0
0
1,119
0.882492
732b698a8ba47881b21329d7619d19e7979a1509
1,433
py
Python
subscriptions/models.py
emil-magnusson/py-on-api
50967ea9d6a189c2c1cb75bd3e2b8ab817077634
[ "MIT" ]
null
null
null
subscriptions/models.py
emil-magnusson/py-on-api
50967ea9d6a189c2c1cb75bd3e2b8ab817077634
[ "MIT" ]
4
2021-03-30T14:10:30.000Z
2021-09-22T19:29:56.000Z
subscriptions/models.py
emil-magnusson/py-on-api
50967ea9d6a189c2c1cb75bd3e2b8ab817077634
[ "MIT" ]
null
null
null
# subscriptions/models.py import uuid from django.db import models from accesses.models import Accesses, Services class OperationalState(models.Model): operationalState = models.CharField(primary_key=True, max_length=50) def __str__(self): return self.operationalState class Subscriptions(models.Mod...
37.710526
105
0.752966
1,309
0.913468
0
0
0
0
0
0
170
0.118632
732bbfe89e64414c6afc65b3cfb58bb41674d875
2,848
py
Python
leboncrevard/job.py
mclbn/leboncrevard
ee1b2a445eeda8f8561b5c62289b994dff38cfa9
[ "ISC" ]
5
2017-03-14T00:28:13.000Z
2019-02-06T15:38:21.000Z
leboncrevard/job.py
mclbn/leboncrevard
ee1b2a445eeda8f8561b5c62289b994dff38cfa9
[ "ISC" ]
null
null
null
leboncrevard/job.py
mclbn/leboncrevard
ee1b2a445eeda8f8561b5c62289b994dff38cfa9
[ "ISC" ]
5
2017-02-25T07:31:26.000Z
2019-02-06T15:38:27.000Z
import smtplib import time from email.mime.text import MIMEText from leboncrevard import scrapper, config class LbcJob: def __init__(self, name, url, interval, recipients): self.name = name self.url = url self.scrapper = scrapper.LbcScrapper(url) self.interval = interval s...
33.904762
81
0.458567
2,738
0.961376
0
0
0
0
0
0
415
0.145716
732c359d55e1699fb9b02c52c8e5453f0946a5bf
13,825
py
Python
tsl/data/datamodule/splitters.py
TorchSpatiotemporal/tsl
da13493b0cf83826bf41fe78a67e8d4ce1d7a8a0
[ "MIT" ]
4
2022-03-21T09:16:33.000Z
2022-03-30T12:24:30.000Z
tsl/data/datamodule/splitters.py
TorchSpatiotemporal/tsl
da13493b0cf83826bf41fe78a67e8d4ce1d7a8a0
[ "MIT" ]
null
null
null
tsl/data/datamodule/splitters.py
TorchSpatiotemporal/tsl
da13493b0cf83826bf41fe78a67e8d4ce1d7a8a0
[ "MIT" ]
null
null
null
import functools from copy import deepcopy from datetime import datetime from typing import Mapping, Callable, Union, Tuple, Optional import numpy as np from tsl.utils.python_utils import ensure_list from ..spatiotemporal_dataset import SpatioTemporalDataset from ..utils import SynchMode __all__ = [ 'Splitter', ...
34.051724
115
0.650922
6,604
0.477685
0
0
2,003
0.144882
0
0
1,570
0.113562
732d71e2f7609d24712a7e6d1541ad6047bd54bf
3,483
py
Python
demo.py
bringBackm/SSD
6cbc9018fd7365d7c65cf6d4da90c14cced5e542
[ "MIT" ]
null
null
null
demo.py
bringBackm/SSD
6cbc9018fd7365d7c65cf6d4da90c14cced5e542
[ "MIT" ]
null
null
null
demo.py
bringBackm/SSD
6cbc9018fd7365d7c65cf6d4da90c14cced5e542
[ "MIT" ]
null
null
null
import glob import os import torch from PIL import Image from tqdm import tqdm from ssd.config import cfg from ssd.data.datasets import COCODataset, VOCDataset from ssd.modeling.predictor import Predictor from ssd.modeling.vgg_ssd import build_ssd_model import argparse import numpy as np from ssd.utils.viz import dra...
35.540816
128
0.669251
0
0
0
0
0
0
0
0
702
0.20155
732dd28306f669f7a332fd1f3c061993b13d2ff5
800
py
Python
quiz/bot/storage/shelter.py
shubham-king/guess-the-melody
1658a17f41b39cfd212175a03e043b3be7bc0e56
[ "MIT" ]
4
2019-06-15T15:32:43.000Z
2020-02-21T09:45:36.000Z
quiz/bot/storage/shelter.py
shubham-king/guess-the-melody
1658a17f41b39cfd212175a03e043b3be7bc0e56
[ "MIT" ]
4
2020-07-05T07:20:26.000Z
2021-04-25T21:05:53.000Z
quiz/bot/storage/shelter.py
shubham-king/guess-the-melody
1658a17f41b39cfd212175a03e043b3be7bc0e56
[ "MIT" ]
7
2020-06-13T20:11:41.000Z
2021-11-09T07:47:02.000Z
from shelve import DbfilenameShelf, open from typing import Type from quiz.config import Config from quiz.types import ContextManager, DictAccess class Shelter(ContextManager, DictAccess): """Interface for bot shelter.""" def __init__(self, config: Type[Config]) -> None: self._shelter: DbfilenameShel...
26.666667
65
0.665
651
0.81375
0
0
0
0
0
0
41
0.05125
73321c0acbdf4ab01ceed6d568aada4c5a634a97
125
py
Python
src/applications/task310/apps.py
SergeyNazarovSam/SergeyPythonfirst
fd2bddf1f5ba28c6802be921177917f369f7ef2e
[ "MIT" ]
2
2020-12-17T20:19:21.000Z
2020-12-22T12:46:43.000Z
src/applications/task310/apps.py
alexander-sidorov/tms-z43
61ecd204f5de4e97ff0300f6ef91c36c2bcda31c
[ "MIT" ]
4
2021-04-20T08:40:30.000Z
2022-02-10T07:50:30.000Z
src/applications/task310/apps.py
SergeyNazarovSam/SergeyPythonfirst
fd2bddf1f5ba28c6802be921177917f369f7ef2e
[ "MIT" ]
1
2021-02-10T06:42:19.000Z
2021-02-10T06:42:19.000Z
from django.apps import AppConfig class Task310Config(AppConfig): label = "task310" name = f"applications.{label}"
17.857143
34
0.72
88
0.704
0
0
0
0
0
0
32
0.256
7332ce4b3b7c7b972d457f074400634cb61ce765
5,686
py
Python
scripts/data_creation_v3.py
deepchecks/url_classification_dl
029fddb78e019cf288adcc2fd46be3435536d469
[ "CC0-1.0" ]
3
2021-05-22T09:20:54.000Z
2022-03-14T15:58:17.000Z
scripts/data_creation_v3.py
deepchecks/url_classification_dl
029fddb78e019cf288adcc2fd46be3435536d469
[ "CC0-1.0" ]
1
2021-11-15T11:22:48.000Z
2021-12-11T13:32:19.000Z
scripts/data_creation_v3.py
deepchecks/url_classification_dl
029fddb78e019cf288adcc2fd46be3435536d469
[ "CC0-1.0" ]
6
2021-05-15T17:46:22.000Z
2022-03-24T11:24:59.000Z
import whois from datetime import datetime, timezone import math import pandas as pd import numpy as np from pyquery import PyQuery from requests import get class UrlFeaturizer(object): def __init__(self, url): self.url = url self.domain = url.split('//')[-1].split('/')[0] self.today = date...
29.769634
90
0.536933
5,527
0.972037
0
0
0
0
0
0
436
0.07668
7333549135a1f86b79763216b9dd3553195359bb
5,175
py
Python
rgnn_at_scale/models/gat.py
sigeisler/robustness_of_gnns_at_scale
0f4844711ace599f54c2abc760b53680a80d6a32
[ "MIT" ]
11
2021-11-01T19:54:41.000Z
2022-01-27T11:34:11.000Z
rgnn_at_scale/models/gat.py
sigeisler/robustness_of_gnns_at_scale
0f4844711ace599f54c2abc760b53680a80d6a32
[ "MIT" ]
1
2021-12-13T21:14:56.000Z
2022-01-16T17:37:36.000Z
rgnn_at_scale/models/gat.py
sigeisler/robustness_of_gnns_at_scale
0f4844711ace599f54c2abc760b53680a80d6a32
[ "MIT" ]
2
2021-11-05T00:42:18.000Z
2022-01-12T10:10:30.000Z
from typing import Any, Dict, Tuple import torch from torch_geometric.nn import GATConv from torch_sparse import SparseTensor, set_diag from rgnn_at_scale.aggregation import ROBUST_MEANS from rgnn_at_scale.models.gcn import GCN class RGATConv(GATConv): """Extension of Pytorch Geometric's `GCNConv` to execute a...
36.443662
119
0.636329
4,940
0.954221
0
0
0
0
0
0
2,295
0.443307
7334d673ab4fa7b6545531cff68878e44e4b4835
902
py
Python
code/renderer/randomize/material.py
jonathangranskog/shading-scene-representations
9c9033a1ca05095c7e2ccfeb4da3046b687bef3d
[ "MIT" ]
21
2020-09-28T10:38:04.000Z
2022-03-12T08:46:09.000Z
code/renderer/randomize/material.py
jonathangranskog/shading-scene-representations
9c9033a1ca05095c7e2ccfeb4da3046b687bef3d
[ "MIT" ]
null
null
null
code/renderer/randomize/material.py
jonathangranskog/shading-scene-representations
9c9033a1ca05095c7e2ccfeb4da3046b687bef3d
[ "MIT" ]
1
2020-12-16T14:56:21.000Z
2020-12-16T14:56:21.000Z
import numpy as np import pyrr import os class Material(): def __init__(self, color=np.ones(3, dtype=np.float32), emission=np.zeros(3, dtype=np.float32), roughness=1.0, ior=15.0, id=0, texture=None, texture_frequency=np.array([1.0, 1.0])): self.color = color self.emission = emission self.ro...
32.214286
184
0.586475
860
0.953437
0
0
0
0
0
0
67
0.074279