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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
097815cd5c8ea8a3129231ba56cd6b5699b6a6c5 | 641 | py | Python | tests/exhaustive/ncaab_tests.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 221 | 2018-05-15T19:48:03.000Z | 2021-01-05T15:36:21.000Z | tests/exhaustive/ncaab_tests.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 502 | 2018-07-25T03:09:26.000Z | 2021-01-06T16:07:02.000Z | tests/exhaustive/ncaab_tests.py | MArtinherz/sportsipy | 24f4c1d5e3bb8ecc56e21568961588491e9cfd2a | [
"MIT"
] | 72 | 2021-01-21T13:17:00.000Z | 2022-03-31T21:43:25.000Z | import sys, os
sys.path.append(os.path.dirname(os.path.dirname(sys.path[0])))
from sportsipy.ncaab.conferences import Conferences
from sportsipy.ncaab.rankings import Rankings
from sportsipy.ncaab.teams import Teams
for team in Teams():
print(team.name)
for player in team.roster.players:
print(player.n... | 27.869565 | 62 | 0.764431 | 85 | 641 | 5.729412 | 0.364706 | 0.080082 | 0.110883 | 0.156057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003578 | 0.127925 | 641 | 22 | 63 | 29.136364 | 0.867621 | 0 | 0 | 0 | 0 | 0 | 0.0078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 0.473684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
098071baf17db0877dcf1f9e6851b74457342132 | 404 | py | Python | python-spider/splash-demo/execute_demo.py | meteor1993/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 83 | 2019-10-15T06:54:06.000Z | 2022-03-28T14:08:21.000Z | python-spider/splash-demo/execute_demo.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 1 | 2020-04-16T08:13:19.000Z | 2020-07-14T01:52:46.000Z | python-spider/splash-demo/execute_demo.py | wenxuefeng3930/python-learning | 4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40 | [
"MIT"
] | 74 | 2019-11-02T08:10:36.000Z | 2022-02-19T12:23:36.000Z | import requests
from urllib.parse import quote
lua = '''
function main(splash, args)
splash:go("https://www.geekdigging.com/")
return {
url = splash:url(),
jpeg = splash:jpeg(),
har = splash:har(),
cookies = splash:get_cookies()
}
end
'''
url = 'http://localhost:8050/e... | 22.444444 | 63 | 0.618812 | 49 | 404 | 5.061224 | 0.632653 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01278 | 0.225248 | 404 | 18 | 64 | 22.444444 | 0.779553 | 0 | 0 | 0 | 0 | 0 | 0.654639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.1875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09a0ed69b02b8b157165b26ffab24d58070e9257 | 1,037 | py | Python | app/migrations/0015_auto_20181027_2234.py | marcusosso/uwhvz | c20303c117e8b2fcd04f5901326054296d3f3caf | [
"MIT"
] | 9 | 2018-09-08T06:59:02.000Z | 2022-03-23T08:12:02.000Z | app/migrations/0015_auto_20181027_2234.py | marcusosso/uwhvz | c20303c117e8b2fcd04f5901326054296d3f3caf | [
"MIT"
] | 37 | 2020-01-22T02:36:32.000Z | 2020-10-06T15:05:37.000Z | app/migrations/0015_auto_20181027_2234.py | marcusosso/uwhvz | c20303c117e8b2fcd04f5901326054296d3f3caf | [
"MIT"
] | 6 | 2019-03-07T02:55:27.000Z | 2019-11-10T23:26:44.000Z | # Generated by Django 2.1 on 2018-10-27 22:34
from django.db import migrations, models
def remove_view_plugin_permissions(apps, schema_editor):
Permission = apps.get_model('auth', 'Permission')
permissions = Permission.objects.filter(codename__startswith='view')
permissions.delete()
class Migration(mig... | 30.5 | 108 | 0.616201 | 107 | 1,037 | 5.766355 | 0.598131 | 0.032415 | 0.051864 | 0.08752 | 0.259319 | 0.259319 | 0.259319 | 0.259319 | 0.259319 | 0.259319 | 0 | 0.025381 | 0.240116 | 1,037 | 33 | 109 | 31.424242 | 0.757614 | 0.041466 | 0 | 0.36 | 1 | 0 | 0.142137 | 0.033266 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09a25f03613238381b7151171daa37ea8d8bf6e6 | 1,468 | py | Python | d3/d3.py | danbiagini/adventofcode2019 | f75f451982534d6baf9db7827ad6b16306194b45 | [
"MIT"
] | null | null | null | d3/d3.py | danbiagini/adventofcode2019 | f75f451982534d6baf9db7827ad6b16306194b45 | [
"MIT"
] | null | null | null | d3/d3.py | danbiagini/adventofcode2019 | f75f451982534d6baf9db7827ad6b16306194b45 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import os
import re
file = sys.argv[1]
inputfile = open(file,'r')
pattern = re.compile("\#(\d+) @ (\d+),(\d+): (\d+)x(\d+)")
grid = dict()
fabric = set()
overlaps = set()
noOverlaps = dict()
def fillGrid():
for row in inputfile:
match = re.search(pattern, row)
if n... | 23.301587 | 76 | 0.540191 | 185 | 1,468 | 4.227027 | 0.351351 | 0.053708 | 0.08312 | 0.048593 | 0.081841 | 0.081841 | 0.081841 | 0.081841 | 0 | 0 | 0 | 0.017822 | 0.311989 | 1,468 | 62 | 77 | 23.677419 | 0.756436 | 0.097411 | 0 | 0.073171 | 0 | 0 | 0.06975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
09a41ccffc401ad033781f085afd60e1b1097cba | 278 | py | Python | backend/app/routes/api.py | killjoy1221/nginx-fastapi-vue-docker | 424565a7f24aa663064dc2708b1b21dc6c4140f8 | [
"MIT"
] | null | null | null | backend/app/routes/api.py | killjoy1221/nginx-fastapi-vue-docker | 424565a7f24aa663064dc2708b1b21dc6c4140f8 | [
"MIT"
] | null | null | null | backend/app/routes/api.py | killjoy1221/nginx-fastapi-vue-docker | 424565a7f24aa663064dc2708b1b21dc6c4140f8 | [
"MIT"
] | null | null | null | import asyncio
from fastapi import APIRouter
from pydantic import BaseModel
api = APIRouter()
class Message(BaseModel):
message: str
@api.get("/hello", response_model=Message)
async def hello():
await asyncio.sleep(0.5)
return Message(message="Hello, world!")
| 16.352941 | 43 | 0.730216 | 36 | 278 | 5.611111 | 0.638889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.161871 | 278 | 16 | 44 | 17.375 | 0.858369 | 0 | 0 | 0 | 0 | 0 | 0.068345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 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 |
09a484c22ed98da3c9e687f357ab4296a3eddd1a | 6,325 | py | Python | code.py | Topaz1618/MeowShop | 024cf75a9895bed6fee19a1a18712023134ae132 | [
"MIT"
] | null | null | null | code.py | Topaz1618/MeowShop | 024cf75a9895bed6fee19a1a18712023134ae132 | [
"MIT"
] | null | null | null | code.py | Topaz1618/MeowShop | 024cf75a9895bed6fee19a1a18712023134ae132 | [
"MIT"
] | null | null | null |
class BaseError(Exception):
def __init__(self, error_code):
super().__init__(self)
self.error_dic = {
'1001': 'Get params failed. ',
'1002': 'Type of input error. ',
'1003': 'File does not exists. ',
'1004': 'File receiving. ',
'1005': 'P... | 33.823529 | 86 | 0.55668 | 722 | 6,325 | 4.602493 | 0.240997 | 0.222088 | 0.133012 | 0.075835 | 0.54529 | 0.54529 | 0.530846 | 0.530846 | 0.530846 | 0.530846 | 0 | 0.061076 | 0.326957 | 6,325 | 186 | 87 | 34.005376 | 0.719521 | 0 | 0 | 0.496894 | 0 | 0 | 0.275977 | 0.003321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099379 | false | 0.012422 | 0 | 0.049689 | 0.198758 | 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 |
09b650c73cf5d1addffa2a3315ee5daa5ed93c70 | 1,080 | py | Python | workshops_api/app.py | lanvstn/workshops-api | e52461f78b7032cd5377aa5d5a05246d1b827bdd | [
"MIT"
] | null | null | null | workshops_api/app.py | lanvstn/workshops-api | e52461f78b7032cd5377aa5d5a05246d1b827bdd | [
"MIT"
] | 1 | 2019-10-15T18:52:45.000Z | 2019-10-15T18:52:45.000Z | workshops_api/app.py | lanvstn/workshops-api | e52461f78b7032cd5377aa5d5a05246d1b827bdd | [
"MIT"
] | null | null | null | import logging
from flask import Flask
from flask_restful import Api
from flask_cors import CORS
from werkzeug.contrib.fixers import ProxyFix
from workshops_api.database import db
from workshops_api.config import config
config.load_config('.')
# Initialize app
app = Flask(__name__)
# Set up logging for gunicorn
if ... | 29.189189 | 83 | 0.785185 | 153 | 1,080 | 5.333333 | 0.405229 | 0.058824 | 0.055147 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 1,080 | 36 | 84 | 30 | 0.860759 | 0.237963 | 0 | 0 | 0 | 0 | 0.16319 | 0.065031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.380952 | 0 | 0.380952 | 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 |
09cdaac2db5773941b69dbd2edb6b467d35e231e | 630 | py | Python | application/models/datastore/application_model.py | kelp404/Victory | 132f186f18ea6a709afb003e38ed1d6de3c0579f | [
"MIT"
] | 15 | 2015-02-15T16:40:19.000Z | 2021-02-01T21:31:26.000Z | application/models/datastore/application_model.py | kelp404/Victory | 132f186f18ea6a709afb003e38ed1d6de3c0579f | [
"MIT"
] | null | null | null | application/models/datastore/application_model.py | kelp404/Victory | 132f186f18ea6a709afb003e38ed1d6de3c0579f | [
"MIT"
] | 1 | 2015-06-02T07:48:30.000Z | 2015-06-02T07:48:30.000Z |
from google.appengine.ext import db
class ApplicationModel(db.Model):
app_name = db.StringProperty()
description = db.TextProperty()
app_key = db.StringProperty()
owner = db.IntegerProperty()
viewer = db.ListProperty(long, indexed=True, default=[])
create_time = db.DateTimeProperty(auto_now_ad... | 30 | 77 | 0.606349 | 74 | 630 | 5.027027 | 0.567568 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252381 | 630 | 20 | 78 | 31.5 | 0.789809 | 0 | 0 | 0 | 0 | 0 | 0.08903 | 0.033386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.588235 | 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 |
09d0238795b91456c5950f1296a08bd47e97a76e | 3,048 | py | Python | age_calculator/age_calculator_module.py | alxus27/PythonForCats | 7a082fd0f21e77b876bc8afea74e5264758e27ac | [
"MIT"
] | 4 | 2020-05-12T18:34:13.000Z | 2020-07-17T01:05:08.000Z | age_calculator/age_calculator_module.py | alxus27/PythonForCats | 7a082fd0f21e77b876bc8afea74e5264758e27ac | [
"MIT"
] | 2 | 2020-06-05T23:33:53.000Z | 2020-06-05T23:48:11.000Z | age_calculator/age_calculator_module.py | alxus27/PythonForCats | 7a082fd0f21e77b876bc8afea74e5264758e27ac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 22 21:48:29 2019
@author: zejiran.
"""
def fecha_a_dias(anio: int, mes: int, dia: int) -> int:
""" Convierte una fecha a días, ingresada comop año, mes y día. Se
supone que todos los meses tienen 30 días.
Parámetros:
anio (int) Año de la ... | 44.823529 | 115 | 0.655184 | 417 | 3,048 | 4.613909 | 0.206235 | 0.093555 | 0.155925 | 0.059771 | 0.27183 | 0.190748 | 0.02183 | 0 | 0 | 0 | 0 | 0.027903 | 0.270997 | 3,048 | 67 | 116 | 45.492537 | 0.837984 | 0.542979 | 0 | 0 | 0 | 0 | 0.032506 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.157895 | false | 0 | 0 | 0 | 0.315789 | 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 |
09db63d4aeded40feb95a4f71c1710b94133039d | 1,650 | py | Python | gamry_parser/ocp.py | agualdron/gamry-parser | 5145c47ace72762a5b306b9f389352defca384d2 | [
"MIT"
] | null | null | null | gamry_parser/ocp.py | agualdron/gamry-parser | 5145c47ace72762a5b306b9f389352defca384d2 | [
"MIT"
] | null | null | null | gamry_parser/ocp.py | agualdron/gamry-parser | 5145c47ace72762a5b306b9f389352defca384d2 | [
"MIT"
] | null | null | null | import gamry_parser as parser
import pandas as pd
import os
import re
class OpenCircuitPotential(parser.GamryParser):
"""Load an Open Circuit Potential (CORPOT) experiment generated in Gamry EXPLAIN format."""
def get_curve_data(self):
"""retrieve OCP data
Args:
None
Ret... | 30 | 127 | 0.59697 | 192 | 1,650 | 5.072917 | 0.473958 | 0.045175 | 0.026694 | 0.045175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002634 | 0.309697 | 1,650 | 54 | 128 | 30.555556 | 0.852502 | 0.371515 | 0 | 0 | 1 | 0 | 0.074115 | 0.029867 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.12 | false | 0 | 0.16 | 0 | 0.44 | 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 |
09db97eadba2c18a2e370a20924a029e736f0740 | 4,470 | py | Python | rbd/system/spce-release-check.py | viduship/ceph-qe-scripts | 886619fa6600c24cbf989d65868951b9c3decd72 | [
"MIT"
] | 6 | 2019-04-12T17:45:44.000Z | 2021-09-14T19:59:05.000Z | rbd/system/spce-release-check.py | viduship/ceph-qe-scripts | 886619fa6600c24cbf989d65868951b9c3decd72 | [
"MIT"
] | 111 | 2019-12-10T10:41:08.000Z | 2022-03-31T11:42:30.000Z | rbd/system/spce-release-check.py | viduship/ceph-qe-scripts | 886619fa6600c24cbf989d65868951b9c3decd72 | [
"MIT"
] | 23 | 2019-05-30T19:48:25.000Z | 2022-03-24T17:07:19.000Z | import json
import subprocess
from time import sleep
def check_free_space(current_raw_middles):
output = subprocess.check_output(
["sudo", "ceph", "df", "--cluster", cluster_name, "--format", "json"]
)
json_output = json.loads(output)
total_bytes = float(json_output["stats"]["total_bytes"])
... | 28.471338 | 94 | 0.514989 | 431 | 4,470 | 5.011601 | 0.190255 | 0.074074 | 0.075 | 0.055556 | 0.612037 | 0.575926 | 0.519444 | 0.465741 | 0.409722 | 0.363889 | 0 | 0.010204 | 0.298434 | 4,470 | 156 | 95 | 28.653846 | 0.678571 | 0 | 0 | 0.556338 | 0 | 0 | 0.205817 | 0.076286 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007042 | 0.021127 | null | null | 0.091549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
09e06ff3121ea80b3df4689209097e1e47ab79d3 | 721 | py | Python | algo/mappo2/elements/strategy.py | xlnwel/g2rl | e1261fdd2ce70724a99ddd174616cf013917b241 | [
"Apache-2.0"
] | 1 | 2022-03-27T08:25:57.000Z | 2022-03-27T08:25:57.000Z | algo/mappo2/elements/strategy.py | xlnwel/g2rl | e1261fdd2ce70724a99ddd174616cf013917b241 | [
"Apache-2.0"
] | null | null | null | algo/mappo2/elements/strategy.py | xlnwel/g2rl | e1261fdd2ce70724a99ddd174616cf013917b241 | [
"Apache-2.0"
] | 1 | 2021-11-09T08:33:35.000Z | 2021-11-09T08:33:35.000Z | import functools
from typing import Dict
import numpy as np
from core.elements.strategy import create_strategy
from algo.ppo.elements.strategy import PPOTrainingLoop
from algo.mappo.elements.strategy import MAPPOStrategy
class MAPPO2Strategy(MAPPOStrategy):
def compute_value(self, value_inp: Dict[str, np.ndarray... | 28.84 | 77 | 0.747573 | 91 | 721 | 5.747253 | 0.483516 | 0.061185 | 0.126195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003425 | 0.190014 | 721 | 24 | 78 | 30.041667 | 0.892123 | 0.092926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
09e0b9ab1ea09e84a610e3803721a9f1006aa5aa | 1,010 | py | Python | wordcount-reducer.py | hardikvasa/hadoop-mapreduce-examples-python | 88c866b4ab1f0b8582e1b741112f389168133f89 | [
"MIT"
] | 13 | 2015-04-06T04:56:52.000Z | 2021-02-18T10:55:09.000Z | wikipedia-link-analysis-reducer.py | hardikvasa/hadoop-mapreduce-examples-python | 88c866b4ab1f0b8582e1b741112f389168133f89 | [
"MIT"
] | 1 | 2017-06-08T09:45:29.000Z | 2017-06-08T09:45:29.000Z | wordcount-reducer.py | hardikvasa/hadoop-mapreduce-examples-python | 88c866b4ab1f0b8582e1b741112f389168133f89 | [
"MIT"
] | 11 | 2015-04-28T05:51:06.000Z | 2021-06-09T16:09:20.000Z | #!/usr/bin/env python
from operator import itemgetter
import sys
current_word = None
current_count = 0
word = None
for line in sys.stdin: # input comes from STDIN
line = line.strip() # remove leading and trailing whitespace
word, count = line.split('\t', 1) # parse the input we got from mapper.py ... | 30.606061 | 123 | 0.647525 | 146 | 1,010 | 4.39726 | 0.506849 | 0.137072 | 0.060748 | 0.05296 | 0.096573 | 0.096573 | 0.096573 | 0.096573 | 0 | 0 | 0 | 0.002747 | 0.279208 | 1,010 | 32 | 124 | 31.5625 | 0.879121 | 0.393069 | 0 | 0.190476 | 0 | 0 | 0.023179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09ebeeef850dc1d1d2dad991d4e06182af7de3bd | 389 | py | Python | Udemy/REST-Django-VueJS/C2-practice/C2-demo/04-Requests/00-requests.py | runzezhang/MOOCs | 8df8c7adc5af3d7b085be01ae9b6963fe33acd68 | [
"Apache-2.0"
] | 3 | 2019-04-05T18:59:53.000Z | 2020-09-24T09:05:46.000Z | Udemy/REST-Django-VueJS/C2-practice/C2-demo/04-Requests/00-requests.py | runzezhang/MOOCs | 8df8c7adc5af3d7b085be01ae9b6963fe33acd68 | [
"Apache-2.0"
] | null | null | null | Udemy/REST-Django-VueJS/C2-practice/C2-demo/04-Requests/00-requests.py | runzezhang/MOOCs | 8df8c7adc5af3d7b085be01ae9b6963fe33acd68 | [
"Apache-2.0"
] | 1 | 2019-02-10T13:35:36.000Z | 2019-02-10T13:35:36.000Z | import requests
def main():
response = requests.get("http://www.google.com")
# response = requests.get("http://www.google.com/random-address/")
print("Status Code: ", response.status_code)
# print("Headers: ", response.headers)
# print("'Content-Type': ", response.headers['Content-Type'])
print... | 27.785714 | 70 | 0.650386 | 45 | 389 | 5.422222 | 0.466667 | 0.131148 | 0.155738 | 0.188525 | 0.286885 | 0.286885 | 0.286885 | 0 | 0 | 0 | 0 | 0 | 0.159383 | 389 | 13 | 71 | 29.923077 | 0.746177 | 0.413882 | 0 | 0 | 0 | 0 | 0.227679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09ee55b6ad74a58871304d39b1932f9f2913afe0 | 824 | py | Python | apps/keepass/keepass.py | timo95/knausj_talon | 735b6fda064b12c832fce2ba4ca8e0186e7db48a | [
"MIT"
] | 1 | 2021-09-08T05:45:03.000Z | 2021-09-08T05:45:03.000Z | apps/keepass/keepass.py | timo95/knausj_talon | 735b6fda064b12c832fce2ba4ca8e0186e7db48a | [
"MIT"
] | null | null | null | apps/keepass/keepass.py | timo95/knausj_talon | 735b6fda064b12c832fce2ba4ca8e0186e7db48a | [
"MIT"
] | null | null | null | from talon import Module
# --- App definitions ---
mod = Module()
mod.apps.keepass = """
os: windows
and app.name: KeePass
os: windows
and app.exe: KeePass.exe
"""
mod.apps.keepassx = """
os: windows
and app.name: KeePassX.exe
os: windows
and app.exe: KeePassX.exe
"""
mod.apps.keepassx = """
os: linux
app.name: /^keep... | 20.097561 | 42 | 0.654126 | 105 | 824 | 5.028571 | 0.314286 | 0.085227 | 0.113636 | 0.142045 | 0.532197 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001495 | 0.188107 | 824 | 40 | 43 | 20.6 | 0.787743 | 0.205097 | 0 | 0.37931 | 0 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.517241 | 0.034483 | 0 | 0.241379 | 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 |
09f4f1988a622f79b82e969a3dab247a7deb4776 | 964 | py | Python | spatialtis/plotting/utils.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | 10 | 2020-07-14T13:27:35.000Z | 2021-11-24T21:41:30.000Z | spatialtis/plotting/utils.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | 21 | 2021-01-10T09:39:25.000Z | 2022-03-12T01:04:52.000Z | spatialtis/plotting/utils.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | null | null | null | from itertools import cycle
from typing import Union, List, Optional
import pandas as pd
from matplotlib import cm
from matplotlib.colors import Colormap
from matplotlib.colors import to_hex
COLOR_POOL = cycle(['#1f77b4ff', '#aec7e8ff', '#ff7f0eff', '#ffbb78ff',
'#2ca02cff', '#98df8aff', '#d62728f... | 38.56 | 73 | 0.59751 | 100 | 964 | 5.68 | 0.65 | 0.06338 | 0.070423 | 0.091549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 0.240664 | 964 | 24 | 74 | 40.166667 | 0.661202 | 0 | 0 | 0 | 0 | 0 | 0.274143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 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 |
61cad566642a104119ea033132c3d17443fdc63a | 370 | py | Python | payment/urls.py | brekib18/ShipOC | c83b8f9f18587bf9adf35c685d6589acc5d3b012 | [
"MIT"
] | null | null | null | payment/urls.py | brekib18/ShipOC | c83b8f9f18587bf9adf35c685d6589acc5d3b012 | [
"MIT"
] | null | null | null | payment/urls.py | brekib18/ShipOC | c83b8f9f18587bf9adf35c685d6589acc5d3b012 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('billings/', views.billing_info, name="payment-billing_addresss"),
path('payment_infos/', views.payment_info, name='payment-payment_infos'),
path('overviews/', views.order_overview, name='payment-overviews'),
path('confirmations/', v... | 41.111111 | 77 | 0.740541 | 43 | 370 | 6.232558 | 0.44186 | 0.164179 | 0.11194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 370 | 9 | 78 | 41.111111 | 0.812121 | 0 | 0 | 0 | 0 | 0 | 0.350404 | 0.177898 | 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 |
61d10f08a75ad6961fa70d4937c4478a4ba158d3 | 3,954 | py | Python | repoman/backend/s3.py | MultiMC/repoman2 | c93931ea1ab1ddeb9bb4fbcd444120f1200d237c | [
"MIT"
] | 4 | 2015-06-29T06:42:38.000Z | 2020-01-30T22:35:50.000Z | repoman/backend/s3.py | MultiMC/repoman2 | c93931ea1ab1ddeb9bb4fbcd444120f1200d237c | [
"MIT"
] | null | null | null | repoman/backend/s3.py | MultiMC/repoman2 | c93931ea1ab1ddeb9bb4fbcd444120f1200d237c | [
"MIT"
] | null | null | null | from repoman.backend import Backend
import os, json, hashlib
import ssl
import boto
from boto.s3.key import Key
class S3Backend(Backend):
"""
A storage backend which uses Amazon S3.
AWS IDs are read from environment variables.
"""
def __init__(self, bucket_name):
# monkey-patch for boto... | 30.651163 | 79 | 0.586495 | 542 | 3,954 | 4.173432 | 0.260148 | 0.04244 | 0.026525 | 0.014589 | 0.171088 | 0.149867 | 0.124226 | 0.114058 | 0.089302 | 0.05924 | 0 | 0.005737 | 0.294638 | 3,954 | 128 | 80 | 30.890625 | 0.805307 | 0.254426 | 0 | 0.104478 | 0 | 0 | 0.049291 | 0 | 0 | 0 | 0 | 0.007813 | 0 | 1 | 0.208955 | false | 0 | 0.074627 | 0 | 0.462687 | 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 |
61d42e2c8bec48f9c0b33a590d5243e2e8779d1c | 288 | py | Python | ex1002.py | wallacymiguel/URI-Iniciante | 527bd0d05d7e10043fc4610ce138b174384ae0b7 | [
"MIT"
] | null | null | null | ex1002.py | wallacymiguel/URI-Iniciante | 527bd0d05d7e10043fc4610ce138b174384ae0b7 | [
"MIT"
] | null | null | null | ex1002.py | wallacymiguel/URI-Iniciante | 527bd0d05d7e10043fc4610ce138b174384ae0b7 | [
"MIT"
] | null | null | null | '''A fórmula para calcular a área de uma circunferência é: area = π . raio2. Considerando para este problema que π = 3.14159:
- Efetue o cálculo da área, elevando o valor de raio ao quadrado e multiplicando por π.'''
R = float(input())
A = 3.14159 * (R ** 2)
print('A={:.4f}'.format(A))
| 41.142857 | 125 | 0.680556 | 50 | 288 | 3.92 | 0.74 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063559 | 0.180556 | 288 | 6 | 126 | 48 | 0.766949 | 0.732639 | 0 | 0 | 0 | 0 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
61dce3ebce442f080bb0ff3f08d42128f90683af | 917 | py | Python | sum-of-square-numbers.py | Hemant-60/leetcode-solutions | 2e0a96a148424288bad55a699137a8da16d756d8 | [
"MIT"
] | null | null | null | sum-of-square-numbers.py | Hemant-60/leetcode-solutions | 2e0a96a148424288bad55a699137a8da16d756d8 | [
"MIT"
] | null | null | null | sum-of-square-numbers.py | Hemant-60/leetcode-solutions | 2e0a96a148424288bad55a699137a8da16d756d8 | [
"MIT"
] | null | null | null | #With Binary Search
class Solution:
def judgeSquareSum(self, c: int) -> bool:
def isPerfectSquare(num):
if num==1: return True
l,r=2,num
while l<=r:
m=(l+r)//2
if m*m == num: return True
elif m*m < num: l=m+1
... | 26.2 | 72 | 0.480916 | 127 | 917 | 3.472441 | 0.314961 | 0.090703 | 0.072562 | 0.136054 | 0.662132 | 0.662132 | 0.662132 | 0.662132 | 0.662132 | 0.662132 | 0 | 0.020599 | 0.417666 | 917 | 34 | 73 | 26.970588 | 0.805243 | 0.039258 | 0 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.038462 | 0.038462 | 0.423077 | 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 |
61fe20345ff0c44fa3fe5ec3abfcc07c7271a26d | 102,422 | py | Python | initrd/usr/share/yum-cli/output.py | OpenCloudOS/OpenCloudOS-tools | 06b12aab3182f4207d78a5d8733be03f0d7b69a4 | [
"MulanPSL-1.0"
] | 8 | 2021-11-26T06:19:06.000Z | 2022-01-11T01:30:11.000Z | initrd/usr/share/yum-cli/output.py | OpenCloudOS/OpenCloudOS-tools | 06b12aab3182f4207d78a5d8733be03f0d7b69a4 | [
"MulanPSL-1.0"
] | null | null | null | initrd/usr/share/yum-cli/output.py | OpenCloudOS/OpenCloudOS-tools | 06b12aab3182f4207d78a5d8733be03f0d7b69a4 | [
"MulanPSL-1.0"
] | 2 | 2021-12-21T08:36:02.000Z | 2021-12-21T08:55:38.000Z | #!/usr/bin/python -t
"""This handles actual output from the cli"""
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
#... | 38.202909 | 112 | 0.504804 | 11,508 | 102,422 | 4.363486 | 0.112009 | 0.003505 | 0.00239 | 0.009161 | 0.342507 | 0.275635 | 0.233416 | 0.208225 | 0.17899 | 0.16507 | 0 | 0.017222 | 0.384888 | 102,422 | 2,680 | 113 | 38.217164 | 0.779829 | 0.075404 | 0 | 0.328929 | 0 | 0.001888 | 0.083193 | 0.002526 | 0 | 0 | 0.000222 | 0.000373 | 0.002832 | 0 | null | null | 0.005663 | 0.016045 | null | null | 0.07362 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1110e8008b2b455b7d881b1efffb5eed5391c83a | 916 | py | Python | setup.py | blackplane/expensify-client | e54fd5197f4be2c6386feccc90651f342a5275fa | [
"MIT"
] | null | null | null | setup.py | blackplane/expensify-client | e54fd5197f4be2c6386feccc90651f342a5275fa | [
"MIT"
] | null | null | null | setup.py | blackplane/expensify-client | e54fd5197f4be2c6386feccc90651f342a5275fa | [
"MIT"
] | 1 | 2021-12-24T05:04:16.000Z | 2021-12-24T05:04:16.000Z | from distutils.core import setup
setup(
name = 'expensify_client',
packages = ['expensify_client'],
version = '0.0.5',
license='MIT',
description = 'Python wrapper for Expensify API',
long_description="See GitHub",
long_description_content_type="text/markdown",
author = 'Alex Lazich',
author_email = ... | 31.586207 | 95 | 0.651747 | 99 | 916 | 5.939394 | 0.686869 | 0.102041 | 0.047619 | 0.057823 | 0.132653 | 0.132653 | 0.132653 | 0 | 0 | 0 | 0 | 0.01355 | 0.194323 | 916 | 29 | 96 | 31.586207 | 0.783198 | 0 | 0 | 0.071429 | 0 | 0.035714 | 0.535442 | 0.028353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 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 |
111962ce58927ecce6be7f1998cb305789dd395b | 425 | py | Python | polyloxpgen/__init__.py | hoefer-lab/polyloxpgen | 4edd2c9f5197da5963c7b863c415ade57e9df77b | [
"MIT"
] | null | null | null | polyloxpgen/__init__.py | hoefer-lab/polyloxpgen | 4edd2c9f5197da5963c7b863c415ade57e9df77b | [
"MIT"
] | null | null | null | polyloxpgen/__init__.py | hoefer-lab/polyloxpgen | 4edd2c9f5197da5963c7b863c415ade57e9df77b | [
"MIT"
] | null | null | null |
"""polyloxpgen - Barcode purging and pgen (probability of generation) calculation for Polylox data."""
__version__ = '0.1.4'
__author__ = 'Maurice Langhinrichs <m.langhinrichs@icloud.com>'
# __all__ applies to importing with "from polyloxpgen import *"
__all__ = ['merge', 'pgen']
# to be able to use "import polylox... | 32.692308 | 102 | 0.757647 | 55 | 425 | 5.509091 | 0.6 | 0.079208 | 0.105611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008152 | 0.134118 | 425 | 12 | 103 | 35.416667 | 0.815217 | 0.548235 | 0 | 0 | 0 | 0 | 0.336957 | 0.146739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
111e87ef1400995e9198870eb574f19ad9537db7 | 2,068 | py | Python | pyunity/window/providers/glut/window.py | rayzchen/PyUnity | 8ed436eca7a84f05190c1fa275c58da5c6059926 | [
"MIT"
] | null | null | null | pyunity/window/providers/glut/window.py | rayzchen/PyUnity | 8ed436eca7a84f05190c1fa275c58da5c6059926 | [
"MIT"
] | null | null | null | pyunity/window/providers/glut/window.py | rayzchen/PyUnity | 8ed436eca7a84f05190c1fa275c58da5c6059926 | [
"MIT"
] | null | null | null | # Copyright (c) 2020-2022 The PyUnity Team
# This file is licensed under the MIT License.
# See https://docs.pyunity.x10.bz/en/latest/license.html
"""
Class to create a window using FreeGLUT.
NOTE: This window provider has been deprecated since PyUnity 0.5.0.
There may be future updates, however it is most likely goi... | 29.126761 | 97 | 0.655706 | 242 | 2,068 | 5.561983 | 0.471074 | 0.023774 | 0.026746 | 0.031204 | 0.111441 | 0.074294 | 0.074294 | 0.074294 | 0.074294 | 0.074294 | 0 | 0.020395 | 0.241296 | 2,068 | 70 | 98 | 29.542857 | 0.837476 | 0.348646 | 0 | 0.129032 | 0 | 0 | 0.048336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.096774 | 0.064516 | 0.451613 | 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 |
113130b434bd2bcb5dd0482ca8755f91fba92ecc | 961 | py | Python | kunai/wsocket.py | vijayanant/kunai | 0dfe169731eaceb1bba66e12715b3968d2a3de20 | [
"MIT"
] | 1 | 2020-04-12T21:05:46.000Z | 2020-04-12T21:05:46.000Z | kunai/wsocket.py | vijayanant/kunai | 0dfe169731eaceb1bba66e12715b3968d2a3de20 | [
"MIT"
] | null | null | null | kunai/wsocket.py | vijayanant/kunai | 0dfe169731eaceb1bba66e12715b3968d2a3de20 | [
"MIT"
] | null | null | null | import json
from websocketserver import WebSocket, SimpleWebSocketServer
class WebExporter(WebSocket):
def handleMessage(self):
if self.data is None:
self.data = ''
def handleConnected(self):
print self.address, 'connected'
def handleClose(self):
print self.address,... | 22.348837 | 86 | 0.58897 | 99 | 961 | 5.666667 | 0.545455 | 0.053476 | 0.046346 | 0.071301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01391 | 0.326743 | 961 | 42 | 87 | 22.880952 | 0.853168 | 0 | 0 | 0.068966 | 0 | 0 | 0.043704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
114d51c148d9b2aa07c88addbc431a6b497575cf | 552 | py | Python | setup.py | Yeganloo/pyRazor | 9b2939486ea9010cededc3be3aa45379c8beb5b2 | [
"MIT"
] | null | null | null | setup.py | Yeganloo/pyRazor | 9b2939486ea9010cededc3be3aa45379c8beb5b2 | [
"MIT"
] | null | null | null | setup.py | Yeganloo/pyRazor | 9b2939486ea9010cededc3be3aa45379c8beb5b2 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='pyRazor',
py_modules=['pyRazor'],
version='0.0.2-001',
description='A python implementation of the razor engine',
url='https://github.com/luscoma/pyRazor',
author='Alex Lusco',
author_email="hoseinyeganloo@gmail.com",
license='MIT',
packages... | 26.285714 | 62 | 0.628623 | 62 | 552 | 5.532258 | 0.790323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020882 | 0.219203 | 552 | 20 | 63 | 27.6 | 0.774942 | 0 | 0 | 0 | 0 | 0 | 0.463768 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 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 |
115f25d1f1639296603df8437cc1b4e12793d8e1 | 906 | py | Python | codes/SRN/models/__init__.py | madin162/AI604_project | d17b7a062bd1d55367136d15fabef64664d328b6 | [
"MIT"
] | null | null | null | codes/SRN/models/__init__.py | madin162/AI604_project | d17b7a062bd1d55367136d15fabef64664d328b6 | [
"MIT"
] | null | null | null | codes/SRN/models/__init__.py | madin162/AI604_project | d17b7a062bd1d55367136d15fabef64664d328b6 | [
"MIT"
] | 1 | 2021-11-24T05:41:29.000Z | 2021-11-24T05:41:29.000Z | import logging
logger = logging.getLogger('base')
def create_model(opt):
model = opt['model']
if model == 'sr':
from .SR_model import SRModel as M
elif model == 'srgan':
from .SRGAN_model import SRGANModel as M
elif model == 'srragan':
from .SRRaGAN_model import SRRaGANModel a... | 33.555556 | 79 | 0.668874 | 120 | 906 | 4.808333 | 0.375 | 0.036395 | 0.07279 | 0.124783 | 0.103986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232892 | 906 | 26 | 80 | 34.846154 | 0.830216 | 0 | 0 | 0 | 0 | 0 | 0.140177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.434783 | 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 |
11614ea5414875d6c3c8f06978aac519eb1752cd | 463 | py | Python | q2/agents/__init__.py | tdb-alcorn/q2 | ca03e419b1c62660ca65981ff790b70fe979c51f | [
"MIT"
] | 3 | 2018-07-03T06:14:58.000Z | 2018-07-10T22:56:21.000Z | q2/agents/__init__.py | tdb-alcorn/q2 | ca03e419b1c62660ca65981ff790b70fe979c51f | [
"MIT"
] | 10 | 2018-07-02T09:02:44.000Z | 2022-02-09T23:45:31.000Z | q2/agents/__init__.py | tdb-alcorn/q2 | ca03e419b1c62660ca65981ff790b70fe979c51f | [
"MIT"
] | null | null | null | """
q2.agents
=========
The agents
"""
from typing import Dict, Type
from .agent import Agent
from .random import Random
from .deep_q.deep_q_agent import DeepQAgent
from q2.config import read_objects, import_from_objects
# Dict[str, Agent]
all_agents = {
'random': Random,
}
# User-defined agents
objects = rea... | 17.148148 | 55 | 0.727862 | 65 | 463 | 5.015385 | 0.4 | 0.067485 | 0.104294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.153348 | 463 | 27 | 56 | 17.148148 | 0.826531 | 0.149028 | 0 | 0 | 0 | 0 | 0.028497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
116877d207d5d5c0eee0d0bad6bf433107dabf0c | 3,247 | py | Python | google-cloud-sdk/lib/surface/app/deploy.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/surface/app/deploy.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/surface/app/deploy.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | 3 | 2017-07-27T18:44:13.000Z | 2020-07-25T17:48:53.000Z |
# Copyright 2013 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... | 34.913978 | 80 | 0.717585 | 427 | 3,247 | 5.339578 | 0.409836 | 0.035526 | 0.057895 | 0.023684 | 0.347368 | 0.323684 | 0.265789 | 0.232456 | 0.168421 | 0.168421 | 0 | 0.006533 | 0.198645 | 3,247 | 92 | 81 | 35.293478 | 0.869716 | 0.298121 | 0 | 0.264151 | 0 | 0 | 0.348681 | 0.012964 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.075472 | false | 0 | 0.056604 | 0 | 0.207547 | 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 |
feba694651096cfa639e0b1561ffbed032de4d9d | 470 | py | Python | tests/__init__.py | bangerth/fdspsp | d805242ee8ff3af47715eaa846e734806dc8298f | [
"MIT"
] | null | null | null | tests/__init__.py | bangerth/fdspsp | d805242ee8ff3af47715eaa846e734806dc8298f | [
"MIT"
] | 1 | 2020-10-28T03:42:37.000Z | 2020-10-28T03:42:37.000Z | tests/__init__.py | bangerth/fdspsp | d805242ee8ff3af47715eaa846e734806dc8298f | [
"MIT"
] | 1 | 2020-10-28T03:04:36.000Z | 2020-10-28T03:04:36.000Z | #
# Copyright (c) 2020 by the FireDynamics group
#
# This file is part of the FDS particle spray postprocessor (fdspsp).
#
# fdspsp is free software; you can use it, redistribute it, and/or
# modify it under the terms of the MIT License. The full text of the
# license can be found in the file LICENSE.md at the top leve... | 26.111111 | 69 | 0.746809 | 78 | 470 | 4.410256 | 0.653846 | 0.043605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010336 | 0.176596 | 470 | 17 | 70 | 27.647059 | 0.878553 | 0.693617 | 0 | 0 | 0 | 0 | 0.075188 | 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 |
febef05682af8b12c1f7ca965436fee7b788c353 | 914 | py | Python | chesscog/data_synthesis/download_pgn.py | MarinusHeindl/chesscog | 9022e19b1ad125481b561c765a886285abc16eb0 | [
"MIT"
] | 12 | 2021-07-14T15:49:53.000Z | 2022-03-31T06:21:18.000Z | chesscog/data_synthesis/download_pgn.py | MarinusHeindl/chesscog | 9022e19b1ad125481b561c765a886285abc16eb0 | [
"MIT"
] | 3 | 2021-08-28T19:39:48.000Z | 2021-12-20T21:25:45.000Z | chesscog/data_synthesis/download_pgn.py | MarinusHeindl/chesscog | 9022e19b1ad125481b561c765a886285abc16eb0 | [
"MIT"
] | 2 | 2022-01-04T09:25:23.000Z | 2022-03-23T16:48:28.000Z | """Script to download Magnus Carlsen's chess games to ``data://games.pgn``.
.. code-block:: console
$ python -m chesscog.data_synthesis.download_pgn --help
usage: download_pgn.py [-h]
Download Magnus Carlsen's chess games to data://games.pgn.
optional arguments:
-h, --help show this h... | 31.517241 | 97 | 0.657549 | 128 | 914 | 4.53125 | 0.476563 | 0.077586 | 0.082759 | 0.113793 | 0.237931 | 0.237931 | 0.237931 | 0.237931 | 0.237931 | 0.237931 | 0 | 0 | 0.208972 | 914 | 28 | 98 | 32.642857 | 0.802213 | 0.368709 | 0 | 0 | 0 | 0 | 0.275439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fecb144bb87216222775847ee7f5d2813152e7e6 | 636 | py | Python | spack/repo/packages/xscreensaver/package.py | dguibert/nixpack | 9cdba90cb0f08e0c634fad6b5e15fb68eb3b8990 | [
"MIT"
] | null | null | null | spack/repo/packages/xscreensaver/package.py | dguibert/nixpack | 9cdba90cb0f08e0c634fad6b5e15fb68eb3b8990 | [
"MIT"
] | null | null | null | spack/repo/packages/xscreensaver/package.py | dguibert/nixpack | 9cdba90cb0f08e0c634fad6b5e15fb68eb3b8990 | [
"MIT"
] | null | null | null | from spack import *
class Xscreensaver(AutotoolsPackage):
"""Xscreensaver package"""
homepage = "https://www.jwz.org"
url = "https://www.jwz.org/xscreensaver/xscreensaver-6.01.tar.gz"
maintainers = ['alexdotc']
version('6.01', sha256='085484665d91f60b4a1dedacd94bcf9b74b0fb096bcedc89ff1c245... | 27.652174 | 94 | 0.639937 | 66 | 636 | 6.060606 | 0.681818 | 0.04 | 0.055 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091089 | 0.205975 | 636 | 22 | 95 | 28.909091 | 0.70099 | 0.031447 | 0 | 0 | 0 | 0 | 0.418033 | 0.154098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.615385 | 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 |
fece7f108413ab43b1abe62d8cdc9cf629066619 | 612 | py | Python | make.py | turtleDev/infromation-retrieval-101 | e0d1930915806f55260c9e214a7067c322ac1bad | [
"MIT"
] | null | null | null | make.py | turtleDev/infromation-retrieval-101 | e0d1930915806f55260c9e214a7067c322ac1bad | [
"MIT"
] | null | null | null | make.py | turtleDev/infromation-retrieval-101 | e0d1930915806f55260c9e214a7067c322ac1bad | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
import os
class Config:
src = 'src/WS101.md'
dest = 'WS101.md'
pattern = '{{import\((.+)\)}}'
def import_resource(match):
if not match:
return ''
path = match.groups()[0]
return ('# file: ' + path + '\n' +
'# ' + ('-' * (6 + len(path)... | 18.545455 | 56 | 0.527778 | 76 | 612 | 4.118421 | 0.552632 | 0.057508 | 0.083067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020225 | 0.272876 | 612 | 32 | 57 | 19.125 | 0.683146 | 0.088235 | 0 | 0 | 0 | 0 | 0.115315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.65 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fed194f9f24c167df2dbf189df069afc1a950da6 | 17,434 | py | Python | lab1/nn/modules.py | zzzziwy/hello-dian.ai | bf3fa86b251ffce2ea71b689807b3e6d7c58b5e2 | [
"MIT"
] | null | null | null | lab1/nn/modules.py | zzzziwy/hello-dian.ai | bf3fa86b251ffce2ea71b689807b3e6d7c58b5e2 | [
"MIT"
] | null | null | null | lab1/nn/modules.py | zzzziwy/hello-dian.ai | bf3fa86b251ffce2ea71b689807b3e6d7c58b5e2 | [
"MIT"
] | null | null | null | import numpy as np
from itertools import product
from . import tensor
class Module(object):
"""Base class for all neural network modules.
"""
def __init__(self) -> None:
"""If a module behaves different between training and testing,
its init method should inherit from this one."""
... | 29.499154 | 117 | 0.529827 | 2,269 | 17,434 | 3.891582 | 0.092993 | 0.044168 | 0.04598 | 0.016308 | 0.622084 | 0.560023 | 0.517441 | 0.489807 | 0.454134 | 0.415289 | 0 | 0.017139 | 0.360789 | 17,434 | 590 | 118 | 29.549153 | 0.775215 | 0.292474 | 0 | 0.493617 | 0 | 0 | 0.004353 | 0 | 0 | 0 | 0 | 0.030508 | 0 | 1 | 0.110638 | false | 0 | 0.017021 | 0 | 0.221277 | 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 |
feda6de5a3e0fd30638bb08f11f6cd8dc557233b | 1,892 | py | Python | lib/yaki/decorators.py | rcarmo/yaki-tng | 9f1094bc8e359be881fb5ca19042f352b8c8d8a1 | [
"MIT"
] | 2 | 2015-12-21T02:24:13.000Z | 2016-03-08T06:45:58.000Z | lib/yaki/decorators.py | rcarmo/yaki-tng | 9f1094bc8e359be881fb5ca19042f352b8c8d8a1 | [
"MIT"
] | null | null | null | lib/yaki/decorators.py | rcarmo/yaki-tng | 9f1094bc8e359be881fb5ca19042f352b8c8d8a1 | [
"MIT"
] | 1 | 2015-07-19T22:10:51.000Z | 2015-07-19T22:10:51.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: et:ts=4:sw=4
import os, os.path, sys, logging
log = logging.getLogger()
import functools, urlparse
from bottle import request, response
from bs4 import BeautifulSoup
from yaki import render_markup, Registry
from utils.stringkit import munge_string
plugins = Regi... | 35.698113 | 168 | 0.590909 | 219 | 1,892 | 5.082192 | 0.456621 | 0.088949 | 0.080863 | 0.032345 | 0.039533 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002845 | 0.256871 | 1,892 | 52 | 169 | 36.384615 | 0.788762 | 0.118393 | 0 | 0.064516 | 0 | 0 | 0.121981 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.096774 | false | 0 | 0.193548 | 0 | 0.387097 | 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 |
fedb80ec2b8444e22b39fed31eda32d494dbb88b | 2,896 | py | Python | run.py | LedgerHQ/bolos-enclave-catchme | cf7bb5c43f896c2fc96782ba31acafdbb99de670 | [
"Apache-2.0"
] | 6 | 2017-12-16T12:18:49.000Z | 2021-09-17T16:30:18.000Z | run.py | hakanatabas/bolos-enclave-catchme | cf7bb5c43f896c2fc96782ba31acafdbb99de670 | [
"Apache-2.0"
] | null | null | null | run.py | hakanatabas/bolos-enclave-catchme | cf7bb5c43f896c2fc96782ba31acafdbb99de670 | [
"Apache-2.0"
] | 3 | 2017-12-16T12:18:52.000Z | 2022-03-06T09:39:41.000Z | """
*******************************************************************************
* BOLOS Enclave Samples
* (c) 2017 Ledger
*
* 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
*
* h... | 35.317073 | 175 | 0.707182 | 356 | 2,896 | 5.699438 | 0.401685 | 0.029571 | 0.033514 | 0.035485 | 0.265155 | 0.193691 | 0.141942 | 0.098571 | 0.066042 | 0.066042 | 0 | 0.043224 | 0.11326 | 2,896 | 81 | 176 | 35.753086 | 0.746885 | 0 | 0 | 0.235294 | 0 | 0 | 0.254349 | 0.06582 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fee39536509d01ae3d3de4348759b491c8c3621f | 893 | py | Python | order_routing/base_order.py | qplum/trade-analysis | c2a641ea0f49da4b29098b33a3b7cbeedfc2b866 | [
"MIT"
] | 32 | 2016-07-01T13:16:39.000Z | 2021-08-17T16:18:59.000Z | order_routing/base_order.py | VCGJake/trade-analysis | c2a641ea0f49da4b29098b33a3b7cbeedfc2b866 | [
"MIT"
] | 2 | 2016-06-30T14:37:21.000Z | 2017-09-13T16:19:23.000Z | order_routing/base_order.py | VCGJake/trade-analysis | c2a641ea0f49da4b29098b33a3b7cbeedfc2b866 | [
"MIT"
] | 18 | 2016-06-30T14:14:44.000Z | 2018-10-13T05:13:17.000Z | from cdefs.defines import TradeType_t, OrderType_t
class Order(object):
def __init__(self):
self.secid = 0 # Security Id
self.orderid = 0 # Order Id
self.uid = 0 # User Id ( Used in backtester )
self.buysell = TradeType_t.Invalid # To represent buy or sell, TODO: Can keep this ... | 44.65 | 121 | 0.662934 | 132 | 893 | 4.378788 | 0.469697 | 0.083045 | 0.046713 | 0.072664 | 0.051903 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012308 | 0.272116 | 893 | 19 | 122 | 47 | 0.876923 | 0.407615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fee71c7b707c9e2261bd3d7b5db81d7d9dfef96e | 8,618 | py | Python | tests/routes/portfolios/test_admin.py | albertwo1978/atst | 60d0c688b328bf3385b07885ff33d215e42ac395 | [
"MIT"
] | 1 | 2020-01-16T16:15:52.000Z | 2020-01-16T16:15:52.000Z | tests/routes/portfolios/test_admin.py | albertwo1978/atst | 60d0c688b328bf3385b07885ff33d215e42ac395 | [
"MIT"
] | null | null | null | tests/routes/portfolios/test_admin.py | albertwo1978/atst | 60d0c688b328bf3385b07885ff33d215e42ac395 | [
"MIT"
] | null | null | null | import pytest
from flask import url_for
from unittest.mock import MagicMock
from atst.domain.permission_sets import PermissionSets
from atst.domain.portfolio_roles import PortfolioRoles
from atst.domain.portfolios import Portfolios
from atst.models.permissions import Permissions
from atst.models.portfolio_role import ... | 30.452297 | 88 | 0.707357 | 985 | 8,618 | 5.920812 | 0.122843 | 0.067901 | 0.078875 | 0.067901 | 0.751543 | 0.702503 | 0.681241 | 0.678498 | 0.556927 | 0.513717 | 0 | 0.004938 | 0.201091 | 8,618 | 282 | 89 | 30.560284 | 0.842121 | 0 | 0 | 0.565022 | 0 | 0 | 0.076236 | 0.032606 | 0 | 0 | 0 | 0 | 0.116592 | 1 | 0.058296 | false | 0 | 0.044843 | 0 | 0.103139 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
feeca92da2d481abad9a378d23616b2d5b4804e5 | 443 | py | Python | manager/migrations/0002_auto_20170316_1147.py | hudecof/bacchus | 1d7bafa2331535b27b336b42f07f8fe328f6d131 | [
"Apache-2.0"
] | 1 | 2020-04-15T14:31:48.000Z | 2020-04-15T14:31:48.000Z | manager/migrations/0002_auto_20170316_1147.py | hudecof/bacchus | 1d7bafa2331535b27b336b42f07f8fe328f6d131 | [
"Apache-2.0"
] | 4 | 2019-04-13T08:35:51.000Z | 2019-04-13T15:08:47.000Z | manager/migrations/0002_auto_20170316_1147.py | hudecof/bacchus | 1d7bafa2331535b27b336b42f07f8fe328f6d131 | [
"Apache-2.0"
] | 1 | 2019-03-25T07:48:29.000Z | 2019-03-25T07:48:29.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-16 08:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 21.095238 | 52 | 0.609481 | 47 | 443 | 5.595745 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068111 | 0.27088 | 443 | 20 | 53 | 22.15 | 0.74613 | 0.153499 | 0 | 0 | 1 | 0 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fef33db88ca90ebcb07dfdcb3b45562cbc5cb6e9 | 429 | py | Python | firebolt_provider/__init__.py | firebolt-db/airflow-provider-firebolt | 650c4e3b375d4bf22550e323c8e499e0725cd1a8 | [
"Apache-2.0"
] | 2 | 2022-02-26T22:04:19.000Z | 2022-03-02T17:59:22.000Z | firebolt_provider/__init__.py | firebolt-db/airflow-provider-firebolt | 650c4e3b375d4bf22550e323c8e499e0725cd1a8 | [
"Apache-2.0"
] | 6 | 2022-02-02T14:58:20.000Z | 2022-02-16T12:34:34.000Z | firebolt_provider/__init__.py | firebolt-db/airflow-provider-firebolt | 650c4e3b375d4bf22550e323c8e499e0725cd1a8 | [
"Apache-2.0"
] | null | null | null | __version__ = "0.1.0"
from typing import Any, Dict
def get_provider_info() -> Dict[str, Any]:
return {
"package-name": "airflow-provider-firebolt",
"name": "Firebolt Provider",
"description": "A Firebolt provider for Apache Airflow.",
"hook-class-names": ["firebolt_provider.hooks.... | 30.642857 | 78 | 0.659674 | 47 | 429 | 5.851064 | 0.659574 | 0.232727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008671 | 0.193473 | 429 | 13 | 79 | 33 | 0.786127 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 0.277389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.3 | 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 |
fef6ad8e1e6e6fed15726ae9bb725f4606f926e1 | 5,679 | py | Python | 2015-10_Lecture/Lecture3/code/NER_Keras_with_Caseing.py | hlin117/deeplearning4nlp-tutorial | 65ada138c07d657748ed37b5f6178a2be991d661 | [
"Apache-2.0"
] | 593 | 2016-01-20T14:45:46.000Z | 2022-03-24T04:58:11.000Z | 2015-10_Lecture/Lecture3/code/keras 0.3.0 (as used in lecture)/NER_Keras_with_Caseing.py | Robert201806/deeplearning4nlp-tutorial | 68718f9ba0bd5aadbeed3f6246dd987cc81c9d93 | [
"Apache-2.0"
] | 3 | 2016-02-23T21:44:51.000Z | 2020-02-06T17:05:38.000Z | 2015-10_Lecture/Lecture3/code/keras 0.3.0 (as used in lecture)/NER_Keras_with_Caseing.py | Robert201806/deeplearning4nlp-tutorial | 68718f9ba0bd5aadbeed3f6246dd987cc81c9d93 | [
"Apache-2.0"
] | 292 | 2016-01-18T13:39:22.000Z | 2022-02-04T13:10:46.000Z | # -*- coding: utf-8 -*-
import numpy as np
import theano
import theano.tensor as T
import time
import gzip
import GermEvalReader
import GermEvalReader_with_casing
import BIOF1Validation
import keras
from keras.models import Sequential
from keras.layers.core import Dense, Flatten, Merge
from keras.optimizers import ... | 31.203297 | 157 | 0.69308 | 778 | 5,679 | 4.903599 | 0.287918 | 0.023591 | 0.025164 | 0.014679 | 0.221232 | 0.090695 | 0.056094 | 0.014155 | 0.014155 | 0.014155 | 0 | 0.018519 | 0.172742 | 5,679 | 181 | 158 | 31.375691 | 0.793529 | 0.1377 | 0 | 0.10101 | 0 | 0 | 0.090699 | 0.015362 | 0 | 0 | 0 | 0 | 0.010101 | 0 | null | null | 0 | 0.151515 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fef7e69787b00e7af43dea2cba11c103747028e1 | 35,021 | py | Python | Validation/loghandling/logreader.py | tema-tut/tema-tg | 9c3f119c8bf5cc565e6a3e8e9e6205037e326d89 | [
"MIT"
] | null | null | null | Validation/loghandling/logreader.py | tema-tut/tema-tg | 9c3f119c8bf5cc565e6a3e8e9e6205037e326d89 | [
"MIT"
] | null | null | null | Validation/loghandling/logreader.py | tema-tut/tema-tg | 9c3f119c8bf5cc565e6a3e8e9e6205037e326d89 | [
"MIT"
] | 1 | 2021-03-27T21:27:32.000Z | 2021-03-27T21:27:32.000Z | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) 2006-2010 Tampere University of Technology
#
# 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 li... | 34.57157 | 225 | 0.57831 | 3,876 | 35,021 | 5.142157 | 0.177503 | 0.018765 | 0.02318 | 0.009934 | 0.187146 | 0.132909 | 0.096734 | 0.08123 | 0.059505 | 0.044052 | 0 | 0.011075 | 0.311584 | 35,021 | 1,012 | 226 | 34.605731 | 0.815629 | 0.100026 | 0 | 0.248276 | 0 | 0.001379 | 0.095469 | 0.004545 | 0 | 0 | 0 | 0.000988 | 0.002759 | 0 | null | null | 0.002759 | 0.012414 | null | null | 0.135172 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a1a4848c20d0f2b52cd65dbd9e4bb193b84ba74 | 2,974 | py | Python | friendnet/management/commands/log.py | HevLfreis/LineMe | 11456ca14d1ae61af65372df6b0cb5e1a1c03748 | [
"PostgreSQL",
"MIT"
] | 6 | 2016-05-16T07:59:31.000Z | 2018-08-19T17:51:18.000Z | friendnet/management/commands/log.py | HevLfreis/LineMe | 11456ca14d1ae61af65372df6b0cb5e1a1c03748 | [
"PostgreSQL",
"MIT"
] | null | null | null | friendnet/management/commands/log.py | HevLfreis/LineMe | 11456ca14d1ae61af65372df6b0cb5e1a1c03748 | [
"PostgreSQL",
"MIT"
] | 5 | 2016-05-16T08:00:20.000Z | 2021-08-13T01:41:18.000Z | #!/usr/bin/env python
# coding: utf-8
# created by hevlhayt@foxmail.com
# Date: 2016/10/18
# Time: 9:29
import random
import re
from collections import Counter
from datetime import datetime
from django.core.management import BaseCommand
from friendnet.models import GroupMember
class Command(BaseCommand):
help ... | 29.156863 | 81 | 0.490249 | 374 | 2,974 | 3.831551 | 0.34492 | 0.006978 | 0.047453 | 0.008374 | 0.106071 | 0.076762 | 0.047453 | 0.047453 | 0.047453 | 0.047453 | 0 | 0.018597 | 0.367182 | 2,974 | 101 | 82 | 29.445545 | 0.742827 | 0.073638 | 0 | 0.061538 | 0 | 0 | 0.093363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092308 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a1c281e7a8d703eac8b85501030c6da3db44086 | 1,146 | py | Python | protocols/vitrimers/generate/lib/analyse/_analyse.py | debeshmandal/brownian | bc5b2e00a04d11319c85e749f9c056b75b450ff7 | [
"MIT"
] | 3 | 2020-05-13T01:07:30.000Z | 2021-02-12T13:37:23.000Z | protocols/vitrimers/generate/lib/analyse/_analyse.py | debeshmandal/brownian | bc5b2e00a04d11319c85e749f9c056b75b450ff7 | [
"MIT"
] | 24 | 2020-06-04T13:48:57.000Z | 2021-12-31T18:46:52.000Z | protocols/vitrimers/generate/lib/analyse/_analyse.py | debeshmandal/brownian | bc5b2e00a04d11319c85e749f9c056b75b450ff7 | [
"MIT"
] | 1 | 2020-07-23T17:15:23.000Z | 2020-07-23T17:15:23.000Z | import pandas as pd
import numpy as np
from scipy.spatial.distance import pdist
class Model:
def __init__(
self,
particles: pd.DataFrame,
edges: pd.DataFrame,
*args
):
self.particles = particles
self.edges = edges
def rdf(self, crosslinkers=False, **kwargs... | 24.913043 | 70 | 0.564572 | 119 | 1,146 | 5.386555 | 0.394958 | 0.078003 | 0.081123 | 0.071763 | 0.078003 | 0.078003 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.314136 | 1,146 | 45 | 71 | 25.466667 | 0.811705 | 0.042757 | 0 | 0.142857 | 0 | 0 | 0.028285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.085714 | 0.142857 | 0.485714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
3a1cdbaa2f05eccf661c43e72e3266c40aa25de8 | 538 | py | Python | app/filter.py | enesakoluk/fakestories | f6825ad41a2561ba5c10d8b4ae9ac4d57c2f7c6c | [
"MIT"
] | null | null | null | app/filter.py | enesakoluk/fakestories | f6825ad41a2561ba5c10d8b4ae9ac4d57c2f7c6c | [
"MIT"
] | null | null | null | app/filter.py | enesakoluk/fakestories | f6825ad41a2561ba5c10d8b4ae9ac4d57c2f7c6c | [
"MIT"
] | null | null | null | import django_filters
from app.models import PostModel,CategoryModel
class PostFilter(django_filters.FilterSet):
# name = django_filters.CharFilter(lookup_expr='iexact')
class Meta:
model = PostModel
fields = ['title',"isVideo","user__username","user__id","language","category__id","category__ti... | 38.428571 | 108 | 0.72119 | 58 | 538 | 6.431034 | 0.482759 | 0.174263 | 0.117962 | 0.13941 | 0.423592 | 0.423592 | 0.423592 | 0.423592 | 0.423592 | 0.423592 | 0 | 0 | 0.154275 | 538 | 14 | 109 | 38.428571 | 0.81978 | 0.202602 | 0 | 0.2 | 0 | 0 | 0.222482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
3a21181ad9b7146acfd2c3e74d49a4ee97f9140f | 979 | py | Python | charts/lines_bars_markers/broken_bar.py | PitPietro/pascal-triangle | eb81e9fc4728f4e09a631922c470201a9f897195 | [
"MIT"
] | 1 | 2020-03-11T10:20:53.000Z | 2020-03-11T10:20:53.000Z | charts/lines_bars_markers/broken_bar.py | PitPietro/python-structure | eb81e9fc4728f4e09a631922c470201a9f897195 | [
"MIT"
] | 1 | 2020-07-06T15:45:01.000Z | 2020-07-06T15:50:32.000Z | charts/lines_bars_markers/broken_bar.py | PitPietro/python-structure | eb81e9fc4728f4e09a631922c470201a9f897195 | [
"MIT"
] | 1 | 2020-07-02T05:21:58.000Z | 2020-07-02T05:21:58.000Z | import matplotlib.pyplot as plt
"""
https://matplotlib.org/gallery/lines_bars_and_markers/broken_barh.html#sphx-glr-gallery-lines-bars-and-markers-broken-barh-py
"""
def broken_b_1():
fig, ax = plt.subplots()
ax.broken_barh(
[(110, 30), (150, 10)],
(10, 9),
facecolors='tab:blue'
)... | 23.309524 | 125 | 0.574055 | 128 | 979 | 4.210938 | 0.648438 | 0.046382 | 0.059369 | 0.070501 | 0.133581 | 0.133581 | 0.133581 | 0 | 0 | 0 | 0 | 0.076398 | 0.251277 | 979 | 41 | 126 | 23.878049 | 0.658936 | 0 | 0 | 0.0625 | 0 | 0 | 0.130024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | true | 0 | 0.03125 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a24960beba9b8fdfbf73ec3362c1849295ebf62 | 429 | py | Python | jinjamator/plugins/content/jm/socket.py | jinjamator/jinjamator-core | 928a6db56a20f57d6f7dc66fb46de71de945817e | [
"Apache-2.0"
] | 7 | 2020-05-06T07:48:14.000Z | 2021-12-11T15:57:26.000Z | jinjamator/plugins/content/jm/socket.py | jinjamator/jinjamator-core | 928a6db56a20f57d6f7dc66fb46de71de945817e | [
"Apache-2.0"
] | 1 | 2020-04-11T15:13:07.000Z | 2020-04-27T20:01:34.000Z | jinjamator/plugins/content/jm/socket.py | jinjamator/jinjamator-core | 928a6db56a20f57d6f7dc66fb46de71de945817e | [
"Apache-2.0"
] | 1 | 2020-05-29T08:53:08.000Z | 2020-05-29T08:53:08.000Z | import socket
def get_service_name_by_proto_and_port(port, proto="tcp", numeric_only=False):
try:
if numeric_only:
return "{0}-{1}".format(proto, port).upper()
else:
return "{0}-{1}".format(proto, socket.getservbyport(port, proto)).upper()
except OSError:
log.de... | 33 | 85 | 0.629371 | 57 | 429 | 4.578947 | 0.54386 | 0.08046 | 0.091954 | 0.16092 | 0.287356 | 0.214559 | 0.214559 | 0 | 0 | 0 | 0 | 0.017964 | 0.221445 | 429 | 12 | 86 | 35.75 | 0.763473 | 0 | 0 | 0.2 | 0 | 0 | 0.167832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a2688c68c3d8fe64aaa3c8f878add070f88c744 | 4,988 | py | Python | sc/graphManager.py | Omegaice/smartcontainers | 0d2e75734dbf76c6aed73ee10b9590ed82c8f7e5 | [
"Apache-2.0"
] | 6 | 2016-04-26T20:22:31.000Z | 2021-05-03T23:38:11.000Z | sc/graphManager.py | Omegaice/smartcontainers | 0d2e75734dbf76c6aed73ee10b9590ed82c8f7e5 | [
"Apache-2.0"
] | 43 | 2016-03-10T15:03:01.000Z | 2016-06-06T15:28:27.000Z | sc/graphManager.py | Omegaice/smartcontainers | 0d2e75734dbf76c6aed73ee10b9590ed82c8f7e5 | [
"Apache-2.0"
] | 4 | 2016-03-02T17:18:26.000Z | 2016-03-18T14:13:11.000Z | # -*- coding: utf-8 -*-
"""RDFlib Graph Registry for SmartContainers.
This module provides a common interface to all RDFlib graphs created by all
vocabularies. New vocabularies should subclass baseVocabulary.
Since the registry has access to the SmartContainer global provenance graph
it also manages the named graph ob... | 33.253333 | 80 | 0.658581 | 611 | 4,988 | 5.304419 | 0.284779 | 0.061092 | 0.025918 | 0.012959 | 0.242518 | 0.229559 | 0.207343 | 0.207343 | 0.207343 | 0.207343 | 0 | 0.001366 | 0.266239 | 4,988 | 149 | 81 | 33.47651 | 0.884153 | 0.022454 | 0 | 0.170732 | 0 | 0 | 0.029206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097561 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a2df890e57ffd8c7e724f0ed65c3d196d7744ba | 928 | py | Python | mundo2/D36.py | KayanOkagawa/Cursoemvideo-Python3-Exercicios | 10c8386102cc0928f8f090070eb3218deb3d60fe | [
"MIT"
] | null | null | null | mundo2/D36.py | KayanOkagawa/Cursoemvideo-Python3-Exercicios | 10c8386102cc0928f8f090070eb3218deb3d60fe | [
"MIT"
] | null | null | null | mundo2/D36.py | KayanOkagawa/Cursoemvideo-Python3-Exercicios | 10c8386102cc0928f8f090070eb3218deb3d60fe | [
"MIT"
] | null | null | null | #-*-coding:utf8;-*-
#qpy:console
import math,time
print('\n')
print('-' * 5, 'VERIFICADOR DE EMPRÉSTIMO', '-' * 5)
print('\n')
v = '\033[31m'
s = '\033[m'
casa = float(input('\033[33mDigite o Valor da Casa: R$ '))
salario = float(input('Digite o Valor do Salário: R$ '))
anos = int(input('Digite a Quantidade de Anos: ... | 33.142857 | 158 | 0.568966 | 145 | 928 | 3.641379 | 0.351724 | 0.079545 | 0.125 | 0.068182 | 0.356061 | 0.356061 | 0.356061 | 0.356061 | 0.356061 | 0.356061 | 0 | 0.032938 | 0.182112 | 928 | 27 | 159 | 34.37037 | 0.662714 | 0.03125 | 0 | 0.304348 | 0 | 0.043478 | 0.433668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0.565217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a35024df6d7c79c8a3cd207467c2babb715cd6f | 3,848 | py | Python | bin/numberOfEvents.py | cpausmit/Kraken | 54a5b69d274f928a5e53475b9c281815fadfc139 | [
"MIT"
] | null | null | null | bin/numberOfEvents.py | cpausmit/Kraken | 54a5b69d274f928a5e53475b9c281815fadfc139 | [
"MIT"
] | null | null | null | bin/numberOfEvents.py | cpausmit/Kraken | 54a5b69d274f928a5e53475b9c281815fadfc139 | [
"MIT"
] | 2 | 2017-03-22T17:33:38.000Z | 2017-09-29T02:38:24.000Z | #!/usr/bin/python
#---------------------------------------------------------------------------------------------------
# Find missing data and orphan data on disk.
#
# v1.0 Sep 19, 2014
#----------------------------------------------------... | 32.610169 | 129 | 0.526767 | 424 | 3,848 | 4.771226 | 0.448113 | 0.02175 | 0.022739 | 0.018784 | 0.057341 | 0.057341 | 0.057341 | 0.057341 | 0.057341 | 0 | 0 | 0.018355 | 0.207121 | 3,848 | 117 | 130 | 32.888889 | 0.644707 | 0.324324 | 0 | 0.083333 | 0 | 0.027778 | 0.33618 | 0.113354 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a3cb8ea085581c0ae0d52d889359287e3f632d1 | 23,766 | py | Python | lifelib/libraries/basiclife/BasicTerm_SE/Projection/__init__.py | fumitoh/lifelib | 01b6fec4453b309808c1c7ca6867c7dce50668dc | [
"MIT"
] | 77 | 2018-03-02T05:21:43.000Z | 2022-03-26T20:29:59.000Z | lifelib/libraries/basiclife/BasicTerm_SE/Projection/__init__.py | dayeoni-1376/lifelib | e65ba42843e8ae5f00ea795a8bb29ccd6e99ba54 | [
"MIT"
] | 10 | 2018-02-17T03:07:20.000Z | 2021-11-15T13:40:15.000Z | lifelib/libraries/basiclife/BasicTerm_SE/Projection/__init__.py | dayeoni-1376/lifelib | e65ba42843e8ae5f00ea795a8bb29ccd6e99ba54 | [
"MIT"
] | 24 | 2018-03-12T20:01:06.000Z | 2022-03-07T06:06:18.000Z | """The main Space in the :mod:`~basiclife.BasicTerm_SE` model.
:mod:`~basiclife.BasicTerm_SE.Projection` is the only Space defined
in the :mod:`~basiclife.BasicTerm_SE` model, and it contains
all the logic and data used in the model.
.. rubric:: Parameters and References
(In all the sample code below,
the global var... | 25.309904 | 105 | 0.564251 | 3,080 | 23,766 | 4.180519 | 0.141234 | 0.038832 | 0.016775 | 0.027182 | 0.417599 | 0.335974 | 0.288754 | 0.239593 | 0.194393 | 0.162317 | 0 | 0.060962 | 0.312547 | 23,766 | 939 | 106 | 25.309904 | 0.727139 | 0.712825 | 0 | 0.130137 | 0 | 0 | 0.070983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.30137 | false | 0 | 0.013699 | 0 | 0.664384 | 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 |
3a4425aa271679634abbc2dc6bd19c3b81073198 | 1,963 | py | Python | breakout_env/wrappers/observation_wrappers.py | MarcoFavorito/breakout-env | b41f9ed1da693874d7d34f83e7200fd51a59c97e | [
"MIT"
] | null | null | null | breakout_env/wrappers/observation_wrappers.py | MarcoFavorito/breakout-env | b41f9ed1da693874d7d34f83e7200fd51a59c97e | [
"MIT"
] | null | null | null | breakout_env/wrappers/observation_wrappers.py | MarcoFavorito/breakout-env | b41f9ed1da693874d7d34f83e7200fd51a59c97e | [
"MIT"
] | null | null | null | import numpy as np
from gym import ObservationWrapper
from gym.spaces import Tuple, Dict, Box
from gym.spaces.discrete import Discrete
from breakout_env.envs.Breakout import Breakout
class BreakoutDiscreteStateWrapper(ObservationWrapper):
def __init__(self, env):
super().__init__(env)
# the scree... | 33.271186 | 94 | 0.623535 | 222 | 1,963 | 5.279279 | 0.283784 | 0.041809 | 0.054608 | 0.074232 | 0.319113 | 0.319113 | 0.319113 | 0.319113 | 0.28157 | 0.28157 | 0 | 0.032594 | 0.26541 | 1,963 | 58 | 95 | 33.844828 | 0.780166 | 0.059603 | 0 | 0.219512 | 0 | 0 | 0.04943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0.121951 | 0.097561 | 0.512195 | 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 |
3a481942d5152886aa37d413e7aec4fdaf85b814 | 394 | py | Python | py/longest-continuous-increasing-subsequence.py | ckclark/leetcode | 844c6f18d06dcb397db76436e5f4b8ddcb1beddc | [
"Apache-2.0"
] | null | null | null | py/longest-continuous-increasing-subsequence.py | ckclark/leetcode | 844c6f18d06dcb397db76436e5f4b8ddcb1beddc | [
"Apache-2.0"
] | null | null | null | py/longest-continuous-increasing-subsequence.py | ckclark/leetcode | 844c6f18d06dcb397db76436e5f4b8ddcb1beddc | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def findLengthOfLCIS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
start = 0
prev = None
m = 0
for i, n in enumerate(nums):
if prev is not None:
if n <= prev:
start = i
... | 23.176471 | 37 | 0.398477 | 45 | 394 | 3.488889 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.505076 | 394 | 16 | 38 | 24.625 | 0.789744 | 0.083756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a4b0a010e74f7fcc39fb6bc9b212e7c2d4e36ab | 1,790 | py | Python | sensor_actor_sw/src/gps.py | D3473R/sailboat-control | 55fef699ef927316d1f68f3b1d9baae9b7929321 | [
"MIT"
] | null | null | null | sensor_actor_sw/src/gps.py | D3473R/sailboat-control | 55fef699ef927316d1f68f3b1d9baae9b7929321 | [
"MIT"
] | null | null | null | sensor_actor_sw/src/gps.py | D3473R/sailboat-control | 55fef699ef927316d1f68f3b1d9baae9b7929321 | [
"MIT"
] | null | null | null | import time
import json
import serial
import csv
import os
from datetime import datetime
from geojson import Feature, Point
header = ['timestamp', 'latitude', 'longitude']
path = ''
ser = serial.Serial(
port='/dev/ttyACM0',
baudrate = 9600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesi... | 30.338983 | 98 | 0.58324 | 224 | 1,790 | 4.629464 | 0.392857 | 0.052073 | 0.038573 | 0.027001 | 0.216972 | 0.182257 | 0.182257 | 0.147541 | 0.079074 | 0.079074 | 0 | 0.018045 | 0.256983 | 1,790 | 58 | 99 | 30.862069 | 0.761654 | 0.012291 | 0 | 0.196078 | 0 | 0 | 0.136544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137255 | null | null | 0.098039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a4fdcb5d0e545f5fc2ea51b1ba08d3ecc53eb27 | 801 | py | Python | liaison/admin.py | hhdMrLion/DJANGO_CRM | 1f8d2d7a025f9dc54b5bf498e7a577469f74c612 | [
"Apache-2.0"
] | 1 | 2021-06-18T03:03:46.000Z | 2021-06-18T03:03:46.000Z | liaison/admin.py | hhdMrLion/DJANGO_CRM | 1f8d2d7a025f9dc54b5bf498e7a577469f74c612 | [
"Apache-2.0"
] | null | null | null | liaison/admin.py | hhdMrLion/DJANGO_CRM | 1f8d2d7a025f9dc54b5bf498e7a577469f74c612 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
# 联系人
from liaison.models import Liaison
@admin.register(Liaison)
class LiaisonAdmin(admin.ModelAdmin):
list_display = ['name', 'phone', 'customer', 'job', 'injob',
'wx', 'qq', 'email', 'hobby', 'birthday',
... | 32.04 | 80 | 0.580524 | 86 | 801 | 5.290698 | 0.569767 | 0.057143 | 0.074725 | 0.087912 | 0.237363 | 0.237363 | 0.237363 | 0.237363 | 0.237363 | 0.237363 | 0 | 0.00339 | 0.263421 | 801 | 24 | 81 | 33.375 | 0.767797 | 0.081149 | 0 | 0.133333 | 0 | 0 | 0.210452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 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 |
3a5046fb899f80ebd3ee7256bdd1fad9f35f6bc9 | 3,615 | py | Python | Model.py | kiraboibrahim/howwebizScrapper | b325828dfb891abeabc95b884f11991bd896fec3 | [
"MIT"
] | null | null | null | Model.py | kiraboibrahim/howwebizScrapper | b325828dfb891abeabc95b884f11991bd896fec3 | [
"MIT"
] | null | null | null | Model.py | kiraboibrahim/howwebizScrapper | b325828dfb891abeabc95b884f11991bd896fec3 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from mysql.connector import errorcode
from mysql.connector import connect
from mysql.connector import Error
import settings
class HowweModel:
"""
This package will write data scrapped to the database
Attributes:
dbHandle (Object) The database connection Object
... | 43.554217 | 261 | 0.60083 | 408 | 3,615 | 5.242647 | 0.362745 | 0.042076 | 0.025245 | 0.033661 | 0.087892 | 0.072931 | 0.072931 | 0.072931 | 0.072931 | 0.072931 | 0 | 0.000791 | 0.300692 | 3,615 | 83 | 262 | 43.554217 | 0.845332 | 0.106777 | 0 | 0.392157 | 0 | 0 | 0.162934 | 0.009266 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.039216 | 0.078431 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a58328ca8c1ebf3ed645aef25113850d01eb3c2 | 6,654 | py | Python | happy_shop/admin.py | xingfuggz/django-happy-shop | a20e4ba4cbafa0673bf9e20fdef127942a2fa94a | [
"MIT"
] | null | null | null | happy_shop/admin.py | xingfuggz/django-happy-shop | a20e4ba4cbafa0673bf9e20fdef127942a2fa94a | [
"MIT"
] | null | null | null | happy_shop/admin.py | xingfuggz/django-happy-shop | a20e4ba4cbafa0673bf9e20fdef127942a2fa94a | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.utils.html import format_html
from django.utils.safestring import mark_safe
from django.utils.html import format_html_join
# Register your models here.
from .models import (
HappyShopCategory, HappyShopBrand, HappyShopSPU,
HappyShopSKU, HappyShopSPUSpec, HappyShopSpe... | 36.762431 | 131 | 0.640968 | 731 | 6,654 | 5.656635 | 0.236662 | 0.024184 | 0.026119 | 0.023216 | 0.345586 | 0.303748 | 0.243289 | 0.187666 | 0.187666 | 0.158646 | 0 | 0.006339 | 0.217613 | 6,654 | 181 | 132 | 36.762431 | 0.787937 | 0.050195 | 0 | 0.181818 | 0 | 0.007576 | 0.197576 | 0.021528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098485 | false | 0 | 0.037879 | 0.007576 | 0.537879 | 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 |
3a5aff4ac6c48f9e3c35d3d53d7493d899c7e50a | 4,546 | py | Python | productivity24x7/base/api/serializers.py | ketan-lambat/Productivity24x7 | ef54bd0a39eeb9f936c556aab68cf1ee0ebec553 | [
"MIT"
] | null | null | null | productivity24x7/base/api/serializers.py | ketan-lambat/Productivity24x7 | ef54bd0a39eeb9f936c556aab68cf1ee0ebec553 | [
"MIT"
] | null | null | null | productivity24x7/base/api/serializers.py | ketan-lambat/Productivity24x7 | ef54bd0a39eeb9f936c556aab68cf1ee0ebec553 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from base.models import Tag, Task, Event, WebHook
from django.core.exceptions import ValidationError as ValidError
class TagSerializer(serializers.Serializer):
name = serializers.CharField(max_length=25, required=True, allow_blank=False)
priority = serializers.IntegerFie... | 38.201681 | 110 | 0.693357 | 527 | 4,546 | 5.83871 | 0.16888 | 0.118297 | 0.067598 | 0.043224 | 0.671433 | 0.634384 | 0.572636 | 0.557686 | 0.538837 | 0.509262 | 0 | 0.006082 | 0.204355 | 4,546 | 118 | 111 | 38.525424 | 0.844623 | 0 | 0 | 0.638298 | 0 | 0 | 0.026397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148936 | false | 0 | 0.031915 | 0.031915 | 0.585106 | 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 |
3a5ca2a0a84f704f0c91d899546156cde81fbfe9 | 444 | py | Python | app/settings.py | dedenbangkit/crime-analysis | 741ae2730800f0863216a7ab6a719cf6e53292cf | [
"Apache-2.0"
] | null | null | null | app/settings.py | dedenbangkit/crime-analysis | 741ae2730800f0863216a7ab6a719cf6e53292cf | [
"Apache-2.0"
] | null | null | null | app/settings.py | dedenbangkit/crime-analysis | 741ae2730800f0863216a7ab6a719cf6e53292cf | [
"Apache-2.0"
] | null | null | null | setting = {
'file': './data/crime2010_2018.csv',
'limit': 10000,
'source': [0,1,2,3,7,8,10,11,14,16,23,5,25],
'vars': {
0 : 'num',
1 : 'date_reported',
2:'date_occured',
3:'time_occured',
7:'crime_code',
8:'crime_desc',
10:'victim_age',
11:... | 21.142857 | 48 | 0.466216 | 57 | 444 | 3.473684 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171141 | 0.328829 | 444 | 20 | 49 | 22.2 | 0.493289 | 0 | 0 | 0 | 0 | 0 | 0.363431 | 0.056433 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28aa59e9951ef49c96d012beb374ca517c1619e1 | 615 | py | Python | PageObjectModel/Pages/addChoosingProductPage.py | lblaszkowski/Arena | 61f924bc7c3994ec7714fe68f60b02b35ccd286b | [
"Apache-2.0"
] | null | null | null | PageObjectModel/Pages/addChoosingProductPage.py | lblaszkowski/Arena | 61f924bc7c3994ec7714fe68f60b02b35ccd286b | [
"Apache-2.0"
] | null | null | null | PageObjectModel/Pages/addChoosingProductPage.py | lblaszkowski/Arena | 61f924bc7c3994ec7714fe68f60b02b35ccd286b | [
"Apache-2.0"
] | null | null | null | from PageObjectModel.Locators.locators_addChoosingProductPage import Locators
from selenium.webdriver.common.keys import Keys
class AddChoosingProductPage():
def __init__(self, driver):
self.driver = driver
def elementSelectionInPage(self):
elementSelection = self.driver.find_element_by_xpat... | 32.368421 | 93 | 0.773984 | 63 | 615 | 7.285714 | 0.428571 | 0.087146 | 0.061002 | 0.091503 | 0.156863 | 0.156863 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0.156098 | 615 | 18 | 94 | 34.166667 | 0.884393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
28acc1a02f455074a697fbca0a07e43add113a27 | 3,624 | py | Python | packages/pytiger2c/ast/variableaccessnode.py | yasserglez/pytiger2c | 35c44d14775bf69ed6689b708b98d6d1ca533ba0 | [
"MIT"
] | 2 | 2015-11-16T11:50:24.000Z | 2017-09-27T23:18:16.000Z | packages/pytiger2c/ast/variableaccessnode.py | yasserglez/pytiger2c | 35c44d14775bf69ed6689b708b98d6d1ca533ba0 | [
"MIT"
] | null | null | null | packages/pytiger2c/ast/variableaccessnode.py | yasserglez/pytiger2c | 35c44d14775bf69ed6689b708b98d6d1ca533ba0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Clase C{VariableAccessNode} del árbol de sintáxis abstracta.
"""
from pytiger2c.ast.accessnode import AccessNode
class VariableAccessNode(AccessNode):
"""
Clase C{VariableAccessNode} del árbol de sintáxis abstracta.
Representa la estructura de acceso a variable del lengu... | 38.553191 | 87 | 0.657009 | 462 | 3,624 | 5.047619 | 0.28355 | 0.027444 | 0.015437 | 0.030875 | 0.389365 | 0.370497 | 0.370497 | 0.340051 | 0.296312 | 0.272727 | 0 | 0.000768 | 0.281457 | 3,624 | 93 | 88 | 38.967742 | 0.894777 | 0.530629 | 0 | 0.074074 | 0 | 0 | 0.070508 | 0 | 0 | 0 | 0 | 0.043011 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0 | 0.37037 | 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 |
28ae5186d66c11ff7e015aa6c02f16136d74e00c | 9,872 | py | Python | old_py2/controllers/main_controller.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 266 | 2015-01-04T00:10:48.000Z | 2022-03-28T18:42:05.000Z | old_py2/controllers/main_controller.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 2,673 | 2015-01-01T20:14:33.000Z | 2022-03-31T18:17:16.000Z | old_py2/controllers/main_controller.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 230 | 2015-01-04T00:10:48.000Z | 2022-03-26T18:12:04.000Z | from collections import defaultdict
import datetime
import logging
import webapp2
from google.appengine.api import memcache
from google.appengine.ext import ndb
import tba_config
from base_controller import CacheableHandler
from consts.award_type import AwardType
from consts.event_type import EventType
from consts.la... | 33.351351 | 117 | 0.639182 | 1,214 | 9,872 | 4.905272 | 0.167216 | 0.035264 | 0.038623 | 0.030227 | 0.453233 | 0.341058 | 0.296725 | 0.267674 | 0.195466 | 0.181024 | 0 | 0.023162 | 0.247771 | 9,872 | 295 | 118 | 33.464407 | 0.77875 | 0.010332 | 0 | 0.299107 | 0 | 0 | 0.044752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111607 | 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 |
28b1312d5cf5e0edbd0ee12ac456b92f57e269c0 | 1,667 | py | Python | examples/climatization.py | gordoncrossley/WeConnect-python | 49456fa4b677f1d25af55d59c255fc9b32dcc3b5 | [
"MIT"
] | null | null | null | examples/climatization.py | gordoncrossley/WeConnect-python | 49456fa4b677f1d25af55d59c255fc9b32dcc3b5 | [
"MIT"
] | null | null | null | examples/climatization.py | gordoncrossley/WeConnect-python | 49456fa4b677f1d25af55d59c255fc9b32dcc3b5 | [
"MIT"
] | null | null | null | import argparse
from weconnect import weconnect
from weconnect.elements.control_operation import ControlOperation
def main():
""" Simple example showing how to start climatization in a vehicle by providing the VIN as a parameter """
parser = argparse.ArgumentParser(
prog='climatization',
des... | 40.658537 | 126 | 0.694661 | 170 | 1,667 | 6.735294 | 0.417647 | 0.052402 | 0.044541 | 0.038428 | 0.075109 | 0.075109 | 0.075109 | 0.075109 | 0 | 0 | 0 | 0 | 0.19916 | 1,667 | 40 | 127 | 41.675 | 0.857678 | 0.058788 | 0 | 0 | 0 | 0 | 0.216528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.103448 | 0 | 0.137931 | 0.241379 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28bad0133bf46643c87bbbefa5791dfdccfe626b | 2,296 | py | Python | ansible/modules/windows/win_firewall.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2022-01-25T22:52:58.000Z | 2022-01-25T22:52:58.000Z | ansible/modules/windows/win_firewall.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | ansible/modules/windows/win_firewall.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Michael Eaton <meaton@iforium.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Li... | 25.511111 | 88 | 0.697735 | 297 | 2,296 | 5.360269 | 0.491582 | 0.015704 | 0.024497 | 0.035804 | 0.051508 | 0.035176 | 0 | 0 | 0 | 0 | 0 | 0.007839 | 0.222125 | 2,296 | 89 | 89 | 25.797753 | 0.883539 | 0.347561 | 0 | 0.419355 | 0 | 0 | 0.883627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28cf1402b9f4c546349a2de56a3191bad0bc2044 | 1,020 | bzl | Python | bfjoust/site/site.bzl | fis/esolangs | 90044b884164a766a89ec8da2bcacb9cc7a481dd | [
"MIT"
] | 1 | 2018-01-08T12:13:39.000Z | 2018-01-08T12:13:39.000Z | bfjoust/site/site.bzl | fis/esolangs | 90044b884164a766a89ec8da2bcacb9cc7a481dd | [
"MIT"
] | 1 | 2018-12-30T20:09:09.000Z | 2018-12-30T20:09:09.000Z | bfjoust/site/site.bzl | fis/esolangs | 90044b884164a766a89ec8da2bcacb9cc7a481dd | [
"MIT"
] | 1 | 2021-05-16T09:33:08.000Z | 2021-05-16T09:33:08.000Z | load("//webgen:webgen.bzl", "erb_file", "js_file", "scss_file", "website")
def page(name, file, out=None, data=False, math=False, plot=False):
extra_templates = []
if data: extra_templates.append("template/data.html")
if math: extra_templates.append("template/mathjax.html")
if plot: extra_templates.app... | 36.428571 | 84 | 0.636275 | 142 | 1,020 | 4.43662 | 0.253521 | 0.133333 | 0.126984 | 0.177778 | 0.315873 | 0.214286 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0.206863 | 1,020 | 27 | 85 | 37.777778 | 0.778739 | 0 | 0 | 0.173913 | 0 | 0 | 0.214706 | 0.063725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28cf49d131eae12018e706e1e4c8c146564010ca | 356 | py | Python | modulo 2/d038/comparacao.py | rafa-evangelista/PYTHON | 761ec7e01f1617263bc023a6b82b599a936275ee | [
"MIT"
] | null | null | null | modulo 2/d038/comparacao.py | rafa-evangelista/PYTHON | 761ec7e01f1617263bc023a6b82b599a936275ee | [
"MIT"
] | null | null | null | modulo 2/d038/comparacao.py | rafa-evangelista/PYTHON | 761ec7e01f1617263bc023a6b82b599a936275ee | [
"MIT"
] | null | null | null | num1 = int(input('Digite o primeiro número: '))
num2 = int(input('Digite o segundo número: '))
if num1 == num2:
print('Os números {} e {} são equivalentes.'.format(num1, num2))
elif num1 > num2:
print('O número {} é maior que o número {}.'.format(num1, num2))
elif num2 > num1:
print('O número {} é maior qu... | 39.555556 | 68 | 0.63764 | 54 | 356 | 4.203704 | 0.388889 | 0.140969 | 0.123348 | 0.132159 | 0.299559 | 0.299559 | 0.299559 | 0.299559 | 0.299559 | 0 | 0 | 0.048443 | 0.188202 | 356 | 8 | 69 | 44.5 | 0.737024 | 0 | 0 | 0 | 0 | 0 | 0.449438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
28d808d19d17580d67da8a977a7f7f71a9eaceef | 1,535 | py | Python | examples/decode_example.py | awesome-archive/bi-lstm-crf | 80ba457aabe7ba441554829b69a7ecc6d74e4bc1 | [
"Apache-2.0"
] | 1 | 2019-05-17T05:18:59.000Z | 2019-05-17T05:18:59.000Z | examples/decode_example.py | nangongmu/bi-lstm-crf | 80ba457aabe7ba441554829b69a7ecc6d74e4bc1 | [
"Apache-2.0"
] | null | null | null | examples/decode_example.py | nangongmu/bi-lstm-crf | 80ba457aabe7ba441554829b69a7ecc6d74e4bc1 | [
"Apache-2.0"
] | null | null | null | import time
from dl_segmenter import get_or_create, DLSegmenter
if __name__ == '__main__':
segmenter: DLSegmenter = get_or_create("../data/default-config.json",
src_dict_path="../data/src_dict.json",
tgt_dict_path="../data/tgt_d... | 36.547619 | 87 | 0.587622 | 137 | 1,535 | 6.445255 | 0.671533 | 0.02718 | 0.024915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018553 | 0.29772 | 1,535 | 41 | 88 | 37.439024 | 0.795918 | 0.028013 | 0 | 0 | 0 | 0 | 0.492948 | 0.459369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28e13f4643ffd312d0e07856dbd162cee9f47612 | 1,053 | py | Python | preprocess/tokenizer/tokenizer_cont.py | imfd/TextPerimenter | 114ede5ca96edb5d9af49e0c125ebac3eaa61754 | [
"BSD-3-Clause"
] | 1 | 2021-06-04T16:47:52.000Z | 2021-06-04T16:47:52.000Z | preprocess/tokenizer/tokenizer_cont.py | imfd/TextPerimenter | 114ede5ca96edb5d9af49e0c125ebac3eaa61754 | [
"BSD-3-Clause"
] | null | null | null | preprocess/tokenizer/tokenizer_cont.py | imfd/TextPerimenter | 114ede5ca96edb5d9af49e0c125ebac3eaa61754 | [
"BSD-3-Clause"
] | null | null | null | import logging
from preprocess.tokenizer.null_tokenizer import NullTokenizer
logger = logging.getLogger()
#version: 1.0.0
class TokenizerContainer():
"""
Contenedor de múltiples tokenizadores.
"""
def __init__(self, lista):
"""
Inicializa el contenedor.
Args:
lis... | 23.931818 | 79 | 0.585945 | 107 | 1,053 | 5.570093 | 0.523364 | 0.065436 | 0.04698 | 0.057047 | 0.107383 | 0.107383 | 0.107383 | 0 | 0 | 0 | 0 | 0.004213 | 0.323837 | 1,053 | 43 | 80 | 24.488372 | 0.832865 | 0.299145 | 0 | 0 | 0 | 0 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
28e55986490419492dffcc26e9b13cf06ecea12e | 2,391 | py | Python | actions/current_slot_table.py | Poornartha/RasaChatbot | 009f2e8f2d77eee60c1c13747f1025e083be100f | [
"MIT"
] | 1 | 2021-12-21T12:06:10.000Z | 2021-12-21T12:06:10.000Z | actions/current_slot_table.py | Poornartha/RasaChatbot | 009f2e8f2d77eee60c1c13747f1025e083be100f | [
"MIT"
] | null | null | null | actions/current_slot_table.py | Poornartha/RasaChatbot | 009f2e8f2d77eee60c1c13747f1025e083be100f | [
"MIT"
] | null | null | null | import sqlite3
from sqlite3 import Error
def create_connection(db_file):
""" create a database connection to the SQLite database
specified by db_file
:param db_file: database file
:return: Connection object or None
"""
conn = None
try:
conn = sqlite3.connect(db_file)
ret... | 33.676056 | 107 | 0.535341 | 251 | 2,391 | 4.896414 | 0.266932 | 0.089504 | 0.091131 | 0.052075 | 0.364524 | 0.279902 | 0.109032 | 0 | 0 | 0 | 0 | 0.004252 | 0.40987 | 2,391 | 70 | 108 | 34.157143 | 0.866761 | 0.136763 | 0 | 0.272727 | 0 | 0 | 0.645017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.045455 | 0 | 0.159091 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28e5da75c61418a39d97c6b7e66f4706c817df1f | 3,937 | py | Python | desafio_geracaoCPF.py | fernandessfae/projetos_python | 314d4112cd08e6ed3934b815c0ea2356084270a5 | [
"MIT"
] | null | null | null | desafio_geracaoCPF.py | fernandessfae/projetos_python | 314d4112cd08e6ed3934b815c0ea2356084270a5 | [
"MIT"
] | null | null | null | desafio_geracaoCPF.py | fernandessfae/projetos_python | 314d4112cd08e6ed3934b815c0ea2356084270a5 | [
"MIT"
] | null | null | null | from random import randrange
while True:
gerador = input('Bem vindo ao gerador de CPF. Você deseja gerar o seu CPF? Digite "sim" ou "não" ')
if gerador.isalpha() and len(gerador) == 3:
gerador = gerador.lower()
if gerador == 'sim':
# Geração do 8 primeiros números do cpf
... | 43.263736 | 107 | 0.386081 | 425 | 3,937 | 3.543529 | 0.317647 | 0.045153 | 0.065737 | 0.047809 | 0.236388 | 0.236388 | 0.188579 | 0.188579 | 0.167331 | 0.167331 | 0 | 0.057024 | 0.510033 | 3,937 | 90 | 108 | 43.744444 | 0.723691 | 0.0381 | 0 | 0.304878 | 0 | 0.02439 | 0.193391 | 0.013272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012195 | 0 | 0.012195 | 0.109756 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28e7363bf45aae4735d331055e38782a2db3b17a | 3,627 | py | Python | blinds_control.py | kevkruemp/HRI_Plant_Monitor | 0854c29977813d4f0cf14157f8bd780c649ff284 | [
"MIT"
] | null | null | null | blinds_control.py | kevkruemp/HRI_Plant_Monitor | 0854c29977813d4f0cf14157f8bd780c649ff284 | [
"MIT"
] | null | null | null | blinds_control.py | kevkruemp/HRI_Plant_Monitor | 0854c29977813d4f0cf14157f8bd780c649ff284 | [
"MIT"
] | null | null | null | # server stuff
# import simple_server as simpleSrvr
from simple_server import *
# motor control stuff
import motor_control as motorCtrl
# blossom control
import blossom_control as blossom
# blossom info
blossom_add = blossom.blossom_add
blossom_blinds = {'raise':'fear2','lower':'sad3','':'yes'}
# GPIO setup
import RP... | 26.093525 | 100 | 0.623104 | 436 | 3,627 | 4.995413 | 0.272936 | 0.055556 | 0.035813 | 0.022039 | 0.080349 | 0.05326 | 0.033058 | 0.033058 | 0 | 0 | 0 | 0.037707 | 0.268817 | 3,627 | 139 | 101 | 26.093525 | 0.78356 | 0.189413 | 0 | 0.134831 | 0 | 0 | 0.057732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011236 | 0.123596 | null | null | 0.067416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28ebb040a2ba7c3e2ec7bfb26f4dc7b028f27df3 | 24,905 | py | Python | test.py | Storife/DRPN | d3c323b75d9fc9f2380001fdb34d9b0bff228529 | [
"Apache-2.0"
] | 7 | 2016-06-14T10:04:43.000Z | 2019-02-20T11:03:42.000Z | test.py | Storife/DRPN | d3c323b75d9fc9f2380001fdb34d9b0bff228529 | [
"Apache-2.0"
] | null | null | null | test.py | Storife/DRPN | d3c323b75d9fc9f2380001fdb34d9b0bff228529 | [
"Apache-2.0"
] | 3 | 2016-09-22T15:41:31.000Z | 2018-03-07T02:58:16.000Z | # coding: utf-8
import os
import lasagne
import theano
import theano.tensor as T
import time
import itertools
import numpy as np
import glob
import h5py
import cPickle
import gzip
import matplotlib.pyplot as plt
import math
from PIL import Image
from PIL import ImageOps
from PIL import ImageStat
from PIL import ImageMa... | 45.036166 | 178 | 0.583537 | 3,059 | 24,905 | 4.559006 | 0.106244 | 0.045748 | 0.043597 | 0.021942 | 0.536426 | 0.497849 | 0.465438 | 0.420407 | 0.369855 | 0.332784 | 0 | 0.032053 | 0.278458 | 24,905 | 552 | 179 | 45.117754 | 0.744018 | 0.167757 | 0 | 0.408879 | 0 | 0 | 0.04103 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0 | null | null | 0 | 0.060748 | null | null | 0.03271 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
28ef5a96cfc5519605d487dc42f8c9df4300df9c | 328 | py | Python | tests/test_pokemontcgexception.py | Pole458/pokemon-tcg-sdk-python-async | d4ab39049093f93e45329c59c3ce0c506dc1379c | [
"MIT"
] | null | null | null | tests/test_pokemontcgexception.py | Pole458/pokemon-tcg-sdk-python-async | d4ab39049093f93e45329c59c3ce0c506dc1379c | [
"MIT"
] | null | null | null | tests/test_pokemontcgexception.py | Pole458/pokemon-tcg-sdk-python-async | d4ab39049093f93e45329c59c3ce0c506dc1379c | [
"MIT"
] | null | null | null | import unittest
from pokemontcgsdkasync import PokemonTcgException
class TestPokemonTcgException(unittest.TestCase):
def test_constructor_sets_description(self):
description = "An error has occurred"
exception = PokemonTcgException(description)
self.assertEqual(description, exception.__s... | 27.333333 | 58 | 0.777439 | 29 | 328 | 8.551724 | 0.724138 | 0.120968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161585 | 328 | 11 | 59 | 29.818182 | 0.901818 | 0 | 0 | 0 | 0 | 0 | 0.064024 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
28ef8e326b0c7055ae785f12633e4b223e28d1c7 | 463 | py | Python | library/python/coredump_filter/minidump2core/setup.py | ZhekehZ/catboost | 3f774da539b8e57cca25686b89c473cbd1f61a6c | [
"Apache-2.0"
] | 4 | 2020-06-24T06:07:52.000Z | 2021-04-16T22:58:09.000Z | library/python/coredump_filter/minidump2core/setup.py | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 6 | 2020-02-18T22:12:29.000Z | 2020-02-18T22:31:26.000Z | library/python/coredump_filter/minidump2core/setup.py | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1 | 2021-04-27T23:40:09.000Z | 2021-04-27T23:40:09.000Z | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
setup(
name='minidump2core',
version='0.0.6',
packages=find_packages('src'),
package_dir={'minidump2core': 'src/minidump2core'},
url='https://wiki.yandex-team.ru/Development/Poisk/arcadia/devtools/coredump_filter/',
license='Y... | 28.9375 | 90 | 0.699784 | 55 | 463 | 5.8 | 0.763636 | 0.075235 | 0.075235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017632 | 0.142549 | 463 | 15 | 91 | 30.866667 | 0.785894 | 0.045356 | 0 | 0 | 0 | 0 | 0.484091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
28f398dd5cb05bd1c47b4e62935d58a8f7c2dfa6 | 473 | py | Python | main/migrations/0013_legaldoc_case.py | MusicCityLegalHackers/atty-cxn | a6d1019242b5b12615d19c7b4606e97ef141790d | [
"MIT"
] | 2 | 2018-04-24T17:16:52.000Z | 2018-10-02T21:49:29.000Z | main/migrations/0013_legaldoc_case.py | MusicCityLegalHackers/atty-cxn | a6d1019242b5b12615d19c7b4606e97ef141790d | [
"MIT"
] | null | null | null | main/migrations/0013_legaldoc_case.py | MusicCityLegalHackers/atty-cxn | a6d1019242b5b12615d19c7b4606e97ef141790d | [
"MIT"
] | 2 | 2018-05-02T14:07:13.000Z | 2019-10-24T23:59:14.000Z | # Generated by Django 2.0.4 on 2018-04-27 16:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0012_attorney_is_active'),
]
operations = [
migrations.AddField(
model_name='legaldoc',... | 23.65 | 109 | 0.634249 | 57 | 473 | 5.157895 | 0.684211 | 0.081633 | 0.095238 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053073 | 0.243129 | 473 | 19 | 110 | 24.894737 | 0.768156 | 0.095137 | 0 | 0 | 1 | 0 | 0.112676 | 0.053991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
28f47ea61f7ed3cf37d256427b11caed2ad17a98 | 1,695 | py | Python | tests/integration/testing_project/apps/polls/migrations/0005_censor_cheesy_words.py | swiatekm/django-test-migrations | 628f650d2c076ce8ad44222d1a6c674ded90a48a | [
"MIT"
] | 4 | 2019-07-26T12:42:42.000Z | 2020-01-27T07:45:09.000Z | tests/integration/testing_project/apps/polls/migrations/0005_censor_cheesy_words.py | swiatekm/django-test-migrations | 628f650d2c076ce8ad44222d1a6c674ded90a48a | [
"MIT"
] | 37 | 2019-10-18T18:10:14.000Z | 2020-01-31T07:46:23.000Z | tests/integration/testing_project/apps/polls/migrations/0005_censor_cheesy_words.py | swiatekm/django-test-migrations | 628f650d2c076ce8ad44222d1a6c674ded90a48a | [
"MIT"
] | 1 | 2019-08-03T15:54:50.000Z | 2019-08-03T15:54:50.000Z | # Generated by Django 2.2 on 2019-07-14 11:39
import re
from django.db import (
migrations,
models,
)
CHEESY_REGEXP = re.compile(r'chees\w*', re.IGNORECASE)
def censore_cheesy_words(apps, schema_editor):
Question = apps.get_model('polls', 'Question')
Choice = apps.get_model('polls', 'Choice')
_c... | 28.728814 | 76 | 0.644838 | 187 | 1,695 | 5.540107 | 0.497326 | 0.052124 | 0.046332 | 0.060811 | 0.057915 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014129 | 0.248378 | 1,695 | 58 | 77 | 29.224138 | 0.799058 | 0.067257 | 0 | 0 | 1 | 0 | 0.150824 | 0.028517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.043478 | 0.021739 | 0.195652 | 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 |
28fb43c5c6f291eee4185fffde06f39a9b4ec199 | 4,490 | py | Python | visigoth/map_layers/map_layer.py | visigoths/visigoth | c5297148209d630f6668f0e5ba3039a8856d8320 | [
"MIT"
] | null | null | null | visigoth/map_layers/map_layer.py | visigoths/visigoth | c5297148209d630f6668f0e5ba3039a8856d8320 | [
"MIT"
] | 1 | 2021-01-26T16:55:48.000Z | 2021-09-03T15:29:14.000Z | visigoth/map_layers/map_layer.py | visigoths/visigoth | c5297148209d630f6668f0e5ba3039a8856d8320 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Visigoth: A lightweight Python3 library for rendering data visualizations in SVG
# Copyright (C) 2020-2021 Visigoth Developers
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the "Software"), to... | 32.536232 | 98 | 0.642094 | 580 | 4,490 | 4.87931 | 0.32931 | 0.038869 | 0.029682 | 0.012721 | 0.046643 | 0.019788 | 0 | 0 | 0 | 0 | 0 | 0.009183 | 0.272383 | 4,490 | 137 | 99 | 32.773723 | 0.857055 | 0.267261 | 0 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.011111 | 0.022222 | 0.077778 | 0.433333 | 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 |
e9031adc2a62b9df70602e9929b26daf20ea1672 | 1,370 | py | Python | source/db/Connection.py | RobinSatterthwaite/BirdTable | ef35c0135ee54910e535281e7f690643c3b4f6c4 | [
"MIT"
] | null | null | null | source/db/Connection.py | RobinSatterthwaite/BirdTable | ef35c0135ee54910e535281e7f690643c3b4f6c4 | [
"MIT"
] | null | null | null | source/db/Connection.py | RobinSatterthwaite/BirdTable | ef35c0135ee54910e535281e7f690643c3b4f6c4 | [
"MIT"
] | null | null | null |
import pyodbc as odbc
class Cursor(object):
def __init__(self, cursor):
self._cursor = cursor
def execute(self, sql, params):
self._cursor.execute(sql, params)
def commit(self):
self._cursor.commit()
def fetchone(self):
return self._cursor.fetchone()
def fetchall(self):
return self._cursor.fetcha... | 23.62069 | 75 | 0.624818 | 169 | 1,370 | 4.905325 | 0.331361 | 0.067551 | 0.094089 | 0.041013 | 0.101327 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022181 | 0.210219 | 1,370 | 58 | 76 | 23.62069 | 0.743993 | 0 | 0 | 0.102564 | 0 | 0 | 0.09927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0.025641 | 0.025641 | 0.051282 | 0.435897 | 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 |
e9084357155b4df12aa461f92bc2cad43f76ad0f | 372 | py | Python | setup.py | arktos65/elasticsearch-tools | f4690404455e20062b58005d511dd0a454223946 | [
"Apache-2.0"
] | 2 | 2018-10-15T03:06:54.000Z | 2018-10-15T03:07:03.000Z | setup.py | arktos65/elasticsearch-tools | f4690404455e20062b58005d511dd0a454223946 | [
"Apache-2.0"
] | null | null | null | setup.py | arktos65/elasticsearch-tools | f4690404455e20062b58005d511dd0a454223946 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name='elasticsearch-tools',
version='0.1.1',
packages=['elasticsearch', 'argparse'],
url='https://github.com/arktos65/elasticsearch-tools',
license='GPL v2',
author='Sean M. Sullivan',
author_email='sean@barriquesoft.com',
description='Command lin... | 28.615385 | 77 | 0.701613 | 44 | 372 | 5.909091 | 0.772727 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.155914 | 372 | 12 | 78 | 31 | 0.808917 | 0 | 0 | 0 | 0 | 0 | 0.521505 | 0.056452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
e911f41f7600045a61be086c7e6125f46db1ec09 | 539 | py | Python | wod/mage_rules/migrations/0003_auto_20150410_1508.py | wlansu/wod | 7a91747c7e25f9304c42ef6418612d3b391f4662 | [
"MIT"
] | null | null | null | wod/mage_rules/migrations/0003_auto_20150410_1508.py | wlansu/wod | 7a91747c7e25f9304c42ef6418612d3b391f4662 | [
"MIT"
] | null | null | null | wod/mage_rules/migrations/0003_auto_20150410_1508.py | wlansu/wod | 7a91747c7e25f9304c42ef6418612d3b391f4662 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('mage_rules', '0002_auto_20150410_1125'),
]
operations = [
migrations.RemoveField(
model_name='mageskill',
... | 20.730769 | 50 | 0.564007 | 44 | 539 | 6.659091 | 0.659091 | 0.133106 | 0.177474 | 0.204778 | 0.293515 | 0.293515 | 0 | 0 | 0 | 0 | 0 | 0.046575 | 0.32282 | 539 | 25 | 51 | 21.56 | 0.756164 | 0.038961 | 0 | 0.368421 | 0 | 0 | 0.143411 | 0.044574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e91d95365bca6cfdc3d87076b7220b3d3b93ae60 | 3,289 | py | Python | check_solr_search.py | belsebubben/check_solr_search | e4e99cc4303262003b02b10bc5cd9487f0d4461f | [
"Apache-2.0"
] | null | null | null | check_solr_search.py | belsebubben/check_solr_search | e4e99cc4303262003b02b10bc5cd9487f0d4461f | [
"Apache-2.0"
] | null | null | null | check_solr_search.py | belsebubben/check_solr_search | e4e99cc4303262003b02b10bc5cd9487f0d4461f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
from __future__ import print_function
import os
import time
import argparse
import sys
import requests
from urllib import urlencode
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# Exit codes
STATE_OK ... | 31.028302 | 174 | 0.669808 | 467 | 3,289 | 4.627409 | 0.312634 | 0.012494 | 0.011106 | 0.016659 | 0.28459 | 0.232763 | 0.204072 | 0.204072 | 0.204072 | 0.118001 | 0 | 0.021941 | 0.182426 | 3,289 | 105 | 175 | 31.32381 | 0.781703 | 0.043782 | 0 | 0.041667 | 0 | 0.069444 | 0.321747 | 0.072704 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.097222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e9271b73e90c00a8712cdae641ed163fb8d5bfc8 | 1,349 | py | Python | pypy/rlib/rbuffer.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/rlib/rbuffer.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | null | null | null | pypy/rlib/rbuffer.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z |
""" Implementation of pure-rpython low-level buffer, which allows
you to take address of underlaying memory. Will be used to implement
buffer protocol on app-level
"""
from pypy.rpython.lltypesystem import lltype, rffi
from pypy.rlib.rarithmetic import r_uint
class RBuffer:
ll_buffer = lltype.nullptr(rffi.CCHARP... | 32.119048 | 74 | 0.622683 | 183 | 1,349 | 4.508197 | 0.404372 | 0.087273 | 0.116364 | 0.065455 | 0.17697 | 0.17697 | 0.17697 | 0.09697 | 0.09697 | 0.09697 | 0 | 0.004098 | 0.276501 | 1,349 | 41 | 75 | 32.902439 | 0.841189 | 0.161601 | 0 | 0.148148 | 0 | 0 | 0.005348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.074074 | 0.074074 | 0.481481 | 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 |
e927a303663f0523d5dae1b042bd868fb3de873e | 1,884 | py | Python | advent-of-code-2019/day 4/main.py | gikf/advent-of-code | 923b026ce87121b73093554734746c2ecb17c5e2 | [
"MIT"
] | null | null | null | advent-of-code-2019/day 4/main.py | gikf/advent-of-code | 923b026ce87121b73093554734746c2ecb17c5e2 | [
"MIT"
] | null | null | null | advent-of-code-2019/day 4/main.py | gikf/advent-of-code | 923b026ce87121b73093554734746c2ecb17c5e2 | [
"MIT"
] | null | null | null | """Advent of Code 2019 Day 4."""
from collections import defaultdict
puzzle = '246515-739105'
def main(puzzle=puzzle):
start, end = [int(num) for num in puzzle.split('-')]
runs = (
('standard requirements', (is_not_decreasing, has_double_digit)),
('at least one digit repeated exactly twice',... | 28.984615 | 76 | 0.630573 | 239 | 1,884 | 4.824268 | 0.355649 | 0.027754 | 0.048569 | 0.034692 | 0.185603 | 0.142238 | 0.072853 | 0.072853 | 0.072853 | 0.072853 | 0 | 0.022431 | 0.266454 | 1,884 | 64 | 77 | 29.4375 | 0.811867 | 0.152335 | 0 | 0.047619 | 0 | 0 | 0.089629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.071429 | 0.02381 | 0 | 0.261905 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e92ee78c0efcacfb53d1633fb2e212ac32e02bda | 852 | py | Python | test/write.py | SiddeshSambasivam/learnify.ai | 599da40bdbd8a1946d103cc1dacc27e1aa6169ec | [
"MIT"
] | 4 | 2020-11-16T12:48:26.000Z | 2020-12-20T18:46:15.000Z | test/write.py | SiddeshSambasivam/learnify.ai | 599da40bdbd8a1946d103cc1dacc27e1aa6169ec | [
"MIT"
] | null | null | null | test/write.py | SiddeshSambasivam/learnify.ai | 599da40bdbd8a1946d103cc1dacc27e1aa6169ec | [
"MIT"
] | 1 | 2021-02-04T06:52:13.000Z | 2021-02-04T06:52:13.000Z | from pymongo import MongoClient
from config import USERNAME, PASSWORD
import json
client = MongoClient(f"mongodb+srv://{USERNAME}:{PASSWORD}@cluster0.symhm.gcp.mongodb.net/test")
data=client['nodemind'].core
userdata = data.find({'email_id':"siddesh@gmail.com"})[0]
with open('./ee3002 microprocessors_dumps.json') as... | 22.421053 | 96 | 0.67723 | 101 | 852 | 5.633663 | 0.514851 | 0.056239 | 0.049209 | 0.066784 | 0.144112 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019471 | 0.156103 | 852 | 37 | 97 | 23.027027 | 0.771905 | 0.049296 | 0 | 0 | 0 | 0 | 0.368159 | 0.154229 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e92f0c0c0873bc24a6ae63da066d0956faa39991 | 3,357 | py | Python | seletools/indexeddb.py | bormando/selenium-tools | c1a43a285d29e097a7496ff7acc849819e3745c2 | [
"MIT"
] | 46 | 2021-03-31T09:17:21.000Z | 2022-01-10T20:26:31.000Z | seletools/indexeddb.py | bormando/selenium-tools | c1a43a285d29e097a7496ff7acc849819e3745c2 | [
"MIT"
] | 2 | 2021-03-31T09:31:41.000Z | 2022-01-11T15:27:26.000Z | seletools/indexeddb.py | bormando/selenium-tools | c1a43a285d29e097a7496ff7acc849819e3745c2 | [
"MIT"
] | 1 | 2021-07-27T17:17:26.000Z | 2021-07-27T17:17:26.000Z | import time
import uuid
from seletools.waits import get_implicit_wait
class IndexedDB:
def __init__(self, driver, db_name, db_version):
self.driver = driver
self.db_name = db_name
self.db_version = db_version
def get_value(self, table_name, key):
log_id = uuid.uuid4().hex
... | 39.964286 | 152 | 0.521299 | 319 | 3,357 | 5.357367 | 0.22884 | 0.028087 | 0.04213 | 0.028087 | 0.734933 | 0.705676 | 0.650088 | 0.650088 | 0.650088 | 0.595085 | 0 | 0.009528 | 0.374739 | 3,357 | 83 | 153 | 40.445783 | 0.804669 | 0 | 0 | 0.361702 | 0 | 0 | 0.057406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.06383 | 0 | 0.212766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e93921a7aff57c7628ef2febe9f717f4f3f71c51 | 1,661 | py | Python | tests/unit/test_protocols.py | brosaplanella/liionpack | 4c3f61b6f28e1419974c8572669d70fc173a6959 | [
"MIT"
] | null | null | null | tests/unit/test_protocols.py | brosaplanella/liionpack | 4c3f61b6f28e1419974c8572669d70fc173a6959 | [
"MIT"
] | null | null | null | tests/unit/test_protocols.py | brosaplanella/liionpack | 4c3f61b6f28e1419974c8572669d70fc173a6959 | [
"MIT"
] | null | null | null | import pybamm
import liionpack as lp
import numpy as np
import unittest
import os
import pandas as pd
class protocolsTest(unittest.TestCase):
def test_generate_protocol(self):
experiment = pybamm.Experiment(
[
"Charge at 50 A for 30 minutes",
"Rest for 15 minute... | 30.2 | 74 | 0.567128 | 190 | 1,661 | 4.773684 | 0.347368 | 0.088203 | 0.022051 | 0.035281 | 0.455347 | 0.455347 | 0.455347 | 0.407938 | 0.407938 | 0.407938 | 0 | 0.05914 | 0.328116 | 1,661 | 54 | 75 | 30.759259 | 0.753584 | 0 | 0 | 0.425532 | 1 | 0 | 0.17339 | 0.02047 | 0 | 0 | 0 | 0 | 0.12766 | 1 | 0.042553 | false | 0 | 0.12766 | 0 | 0.191489 | 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 |
e93e61ab1d2b00d5afcd1cc29de10ed93fd73f37 | 17,745 | py | Python | neural-navigation-with-lstm/MARCO/Robot/SmallScaleStar.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | 14 | 2016-04-03T19:25:13.000Z | 2022-01-05T07:03:07.000Z | neural-navigation-with-lstm/MARCO/Robot/SmallScaleStar.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | null | null | null | neural-navigation-with-lstm/MARCO/Robot/SmallScaleStar.py | ronaldahmed/SLAM-for-ugv | 52e3241b8b737a0cfe5682c0aa87ec8c27d6a33d | [
"MIT"
] | 5 | 2018-06-21T12:58:58.000Z | 2020-02-15T05:33:39.000Z | ## Automatically adapted for numpy.oldnumeric May 17, 2011 by -c
import copy, math
import ViewCache
import POMDP.MarkovLoc_Antie
from Meanings import Back, Front, Left, Right, At, Side, Path, Flooring, Wall, Open, End, Unknown, opposite
from Utility import reprVisible, strVisible, uniq
# from HSSH/src/common/local_to... | 49.845506 | 458 | 0.618766 | 2,266 | 17,745 | 4.664607 | 0.110327 | 0.01211 | 0.054305 | 0.073699 | 0.37701 | 0.309272 | 0.273415 | 0.233869 | 0.215137 | 0.215137 | 0 | 0.024745 | 0.241646 | 17,745 | 355 | 459 | 49.985915 | 0.760719 | 0.019611 | 0 | 0.115942 | 0 | 0 | 0.029739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028986 | null | null | 0.004831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e943b2d5b4a213bc47c81b67b89ba2a952936fed | 5,713 | py | Python | syzygy/scripts/benchmark/dromaeo.py | nzeh/syzygy | 3573e3d458dbb4285753c28a7cb42ced739f9f55 | [
"Apache-2.0"
] | 343 | 2015-01-07T05:58:44.000Z | 2022-03-15T14:55:21.000Z | syzygy/scripts/benchmark/dromaeo.py | nzeh/syzygy-nzeh | 3757e53f850644721284073de318e218224dd411 | [
"Apache-2.0"
] | 61 | 2015-03-19T18:20:21.000Z | 2019-10-23T12:58:23.000Z | syzygy/scripts/benchmark/dromaeo.py | nzeh/syzygy-nzeh | 3757e53f850644721284073de318e218224dd411 | [
"Apache-2.0"
] | 66 | 2015-01-20T15:35:05.000Z | 2021-11-25T16:49:41.000Z | #!python
# Copyright 2013 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... | 33.804734 | 80 | 0.681953 | 763 | 5,713 | 4.985583 | 0.347313 | 0.028917 | 0.023659 | 0.028391 | 0.071504 | 0.04837 | 0.033649 | 0.033649 | 0.033649 | 0.033649 | 0 | 0.007335 | 0.212498 | 5,713 | 168 | 81 | 34.005952 | 0.838186 | 0.183441 | 0 | 0.083333 | 0 | 0 | 0.14961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010417 | 0.0625 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a5f79c6b1fa96177f16027db005009f310d0b66 | 4,571 | py | Python | photos/tests.py | kibetrono/Personal-Gallery | 857e1b99988b3827097c9aa8c7490b355c9bccfa | [
"Unlicense"
] | null | null | null | photos/tests.py | kibetrono/Personal-Gallery | 857e1b99988b3827097c9aa8c7490b355c9bccfa | [
"Unlicense"
] | null | null | null | photos/tests.py | kibetrono/Personal-Gallery | 857e1b99988b3827097c9aa8c7490b355c9bccfa | [
"Unlicense"
] | null | null | null | from django.test import TestCase
from .models import Image, Location, Category
# Create your tests here.
class LocationTestClass(TestCase):
# Set up method
def setUp(self):
"""Creating a new location and saving it"""
self.place = Location(location_name='Nairobi')
self.place.save_locati... | 30.271523 | 100 | 0.625246 | 510 | 4,571 | 5.452941 | 0.141176 | 0.079108 | 0.055016 | 0.07767 | 0.528946 | 0.497663 | 0.452355 | 0.405969 | 0.339087 | 0.286228 | 0 | 0.003786 | 0.248742 | 4,571 | 150 | 101 | 30.473333 | 0.806057 | 0.12273 | 0 | 0.458824 | 0 | 0 | 0.041163 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.282353 | false | 0 | 0.023529 | 0 | 0.341176 | 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 |
3a61d396de26639ba8e5ad92e57e8c52d52404af | 2,928 | py | Python | sensors/barometer.py | barton-satchwill/pi-sensors | 10bbdd1ca4e41f2cc16d929329533bcf0d10c264 | [
"Unlicense"
] | null | null | null | sensors/barometer.py | barton-satchwill/pi-sensors | 10bbdd1ca4e41f2cc16d929329533bcf0d10c264 | [
"Unlicense"
] | null | null | null | sensors/barometer.py | barton-satchwill/pi-sensors | 10bbdd1ca4e41f2cc16d929329533bcf0d10c264 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# ------------------ BMP-085 ----------------------
# Cycle Period: no less than 50ms
# Sample Rate: up to 128 times per second for standard mode
# -------------------------------------------------
#
# sda -----------------o BCM 2 (SDA)
# scl -----------------o BCM 3 (SCL)
# vcc ------... | 31.826087 | 98 | 0.565915 | 358 | 2,928 | 4.53352 | 0.365922 | 0.014787 | 0.049291 | 0.013555 | 0.139248 | 0.139248 | 0.064079 | 0.064079 | 0.064079 | 0.064079 | 0 | 0.064572 | 0.206626 | 2,928 | 91 | 99 | 32.175824 | 0.634094 | 0.277322 | 0 | 0.173913 | 0 | 0.021739 | 0.13354 | 0.0647 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108696 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a68e59338b3b2373e693e31d33f812cd4d3b0e5 | 364 | py | Python | Flask/app/app.py | WindrunnerMax/Asse.js | e7a3ba281192e0b75124650460aa263340158e65 | [
"MIT"
] | 2 | 2020-03-09T09:21:16.000Z | 2021-02-03T15:16:12.000Z | Flask/app/app.py | WindrunnerMax/Asse.js | e7a3ba281192e0b75124650460aa263340158e65 | [
"MIT"
] | null | null | null | Flask/app/app.py | WindrunnerMax/Asse.js | e7a3ba281192e0b75124650460aa263340158e65 | [
"MIT"
] | 1 | 2020-07-18T05:08:32.000Z | 2020-07-18T05:08:32.000Z | import os
import config
from flask import Flask
from router import Router
from db_base import db
if __name__ == "__main__":
app = Flask(__name__)
app.config.from_object(config)
app.config["SECRET_KEY"] = os.urandom(24)
db.init_app(app)
db.create_all(app=app)
Router(app).register()... | 22.75 | 46 | 0.662088 | 56 | 364 | 4 | 0.464286 | 0.026786 | 0.026786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034843 | 0.211538 | 364 | 15 | 47 | 24.266667 | 0.745645 | 0 | 0 | 0 | 0 | 0 | 0.083095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3a73011d6cffd56986939c34a93b4874a93e7b53 | 2,759 | py | Python | todo.py | alvarez-carlos/tkinter-gestor-de-tareas | b89c3bbeeb5e5d6c30f836a81392c553cf8fcbc0 | [
"MIT"
] | null | null | null | todo.py | alvarez-carlos/tkinter-gestor-de-tareas | b89c3bbeeb5e5d6c30f836a81392c553cf8fcbc0 | [
"MIT"
] | null | null | null | todo.py | alvarez-carlos/tkinter-gestor-de-tareas | b89c3bbeeb5e5d6c30f836a81392c553cf8fcbc0 | [
"MIT"
] | null | null | null | from tkinter import *
import sqlite3
root = Tk()
root.title('Gestor de Tareas')
root.configure(padx=4, pady=4)
# root.geometry('500x500')
root.eval('tk::PlaceWindow . center')
root.configure(background='#333333')
conn = sqlite3.connect('todo.db')
c = conn.cursor()
c.execute(
"""
CREATE TABLE IF NOT EXISTS t... | 29.666667 | 144 | 0.6361 | 384 | 2,759 | 4.479167 | 0.348958 | 0.027907 | 0.043605 | 0.031395 | 0.134884 | 0.072093 | 0.038372 | 0.038372 | 0 | 0 | 0 | 0.031193 | 0.209859 | 2,759 | 93 | 145 | 29.666667 | 0.757798 | 0.060167 | 0 | 0.131148 | 0 | 0 | 0.150277 | 0 | 0 | 0 | 0 | 0.021505 | 0 | 1 | 0.098361 | false | 0.016393 | 0.032787 | 0 | 0.163934 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3a737c10ef1d1d03349490900145b9c6fd87d19e | 13,353 | py | Python | stacks/XIAOMATECH/1.0/services/SQOOP/package/scripts/params.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | 3 | 2019-08-13T01:44:16.000Z | 2019-12-10T04:05:56.000Z | stacks/XIAOMATECH/1.0/services/SQOOP/package/scripts/params.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | null | null | null | stacks/XIAOMATECH/1.0/services/SQOOP/package/scripts/params.py | tvorogme/dataops | acfa21df42a20768c004c6630a064f4e38e280b2 | [
"Apache-2.0"
] | 7 | 2019-05-29T17:35:25.000Z | 2021-12-04T07:55:10.000Z | """
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 (the
"License"); you may not use this ... | 43.637255 | 105 | 0.716768 | 1,541 | 13,353 | 5.876703 | 0.187541 | 0.064046 | 0.038648 | 0.030808 | 0.380852 | 0.297814 | 0.230897 | 0.221179 | 0.156692 | 0.099492 | 0 | 0.000995 | 0.172096 | 13,353 | 305 | 106 | 43.780328 | 0.818182 | 0.097356 | 0 | 0.157205 | 0 | 0 | 0.319559 | 0.208719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.061135 | 0.061135 | 0 | 0.061135 | 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 |
3a7443ec0058919c5edaece7a71afaa298e42853 | 205 | py | Python | app.py | TestowanieAutomatyczneUG/laboratorium-8-melkorw | 036333f4f374d0d0826418fe43d276f8b1712fe0 | [
"MIT"
] | null | null | null | app.py | TestowanieAutomatyczneUG/laboratorium-8-melkorw | 036333f4f374d0d0826418fe43d276f8b1712fe0 | [
"MIT"
] | null | null | null | app.py | TestowanieAutomatyczneUG/laboratorium-8-melkorw | 036333f4f374d0d0826418fe43d276f8b1712fe0 | [
"MIT"
] | null | null | null | import requests
from src.meal.meal import Meal
resp = requests.get("https://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata")
meal = Meal()
resp = meal.get_meal('Arrabiata')
print(resp['meals']) | 20.5 | 85 | 0.731707 | 33 | 205 | 4.515152 | 0.636364 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.092683 | 205 | 10 | 86 | 20.5 | 0.790323 | 0 | 0 | 0 | 0 | 0.166667 | 0.368932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3a7a7122c0efdf3f21ea3f98551b1be5f6ea45f7 | 6,610 | py | Python | simbad/command_line/simbad_full.py | hlasimpk/SIMBAD | 684de027f25fe63e8d973e494b0adf74db08cd89 | [
"BSD-3-Clause"
] | null | null | null | simbad/command_line/simbad_full.py | hlasimpk/SIMBAD | 684de027f25fe63e8d973e494b0adf74db08cd89 | [
"BSD-3-Clause"
] | null | null | null | simbad/command_line/simbad_full.py | hlasimpk/SIMBAD | 684de027f25fe63e8d973e494b0adf74db08cd89 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
__author__ = "Adam Simpkin, and Felix Simkovic"
__contributing_authors__ = "Jens Thomas, and Ronan Keegan"
__credits__ = "Daniel Rigden, William Shepard, Charles Ballard, Villi Uski, and Andrey Lebedev"
__date__ = "05 May 2017"
__email__ = "hlasimpk@liv.ac.uk"
__version__ = "0.1"
import argparse... | 40.552147 | 146 | 0.645386 | 839 | 6,610 | 4.829559 | 0.283671 | 0.048124 | 0.062932 | 0.049358 | 0.417325 | 0.406466 | 0.342547 | 0.294669 | 0.280849 | 0.280849 | 0 | 0.004225 | 0.212254 | 6,610 | 162 | 147 | 40.802469 | 0.773958 | 0.074281 | 0 | 0.201681 | 0 | 0.02521 | 0.232485 | 0.010079 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07563 | null | null | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3a7b4e686ba343444c1e2b21fad66aaeb55e18b1 | 455 | py | Python | gallery1/migrations/0002_auto_20191007_0921.py | Maxwel5/gallery | f09603da4a115e7fced932923e639ee05ecce262 | [
"MIT"
] | null | null | null | gallery1/migrations/0002_auto_20191007_0921.py | Maxwel5/gallery | f09603da4a115e7fced932923e639ee05ecce262 | [
"MIT"
] | 4 | 2020-02-12T03:16:06.000Z | 2021-06-10T22:03:53.000Z | gallery1/migrations/0002_auto_20191007_0921.py | Maxwel5/gallery | f09603da4a115e7fced932923e639ee05ecce262 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2019-10-07 09:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery1', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 21.666667 | 62 | 0.613187 | 50 | 455 | 5.38 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065672 | 0.263736 | 455 | 20 | 63 | 22.75 | 0.737313 | 0.149451 | 0 | 0 | 1 | 0 | 0.119792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a8100b650401b98091f4adfae39ba61522054e1 | 325 | py | Python | Python3/1017-Convert-to-Base-2/soln-1.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/1017-Convert-to-Base-2/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/1017-Convert-to-Base-2/soln-1.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def baseNeg2(self, N: int) -> str:
if N == 0:
return "0"
nums = []
while N != 0:
r = N % (-2)
N //= (-2)
if r < 0:
r += 2
N += 1
nums.append(r)
return ''.join(map(str, nums[::-... | 23.214286 | 44 | 0.313846 | 38 | 325 | 2.684211 | 0.5 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 0.526154 | 325 | 13 | 45 | 25 | 0.597403 | 0 | 0 | 0 | 0 | 0 | 0.003077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a86cba45b59f87ee03f958f82cab92c3e2c9071 | 400 | py | Python | coursera_/queue4.py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | coursera_/queue4.py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | coursera_/queue4.py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | from queue import Queue
from threading import Thread
def worker(q, n):
while True:
item = q.get()
if item is None:
break
print("process data:", n, item)
q = Queue(5)
th1 = Thread(target=worker, args=(q, 1))
th2 = Thread(target=worker, args=(q, 2))
th1.start(); th2.start()
fo... | 17.391304 | 40 | 0.59 | 66 | 400 | 3.575758 | 0.530303 | 0.050847 | 0.152542 | 0.186441 | 0.194915 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036545 | 0.2475 | 400 | 22 | 41 | 18.181818 | 0.747508 | 0 | 0 | 0 | 0 | 0 | 0.0325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0.0625 | 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 |
3a8a61f6bced7186962b124c5773145ee6485541 | 286 | py | Python | config.py | Mazzya/api-rest-flask | bf7e57092483a434322a1b75516c51bcc6318f01 | [
"MIT"
] | 1 | 2021-05-17T17:47:17.000Z | 2021-05-17T17:47:17.000Z | config.py | Mazzya/api-rest-flask | bf7e57092483a434322a1b75516c51bcc6318f01 | [
"MIT"
] | null | null | null | config.py | Mazzya/api-rest-flask | bf7e57092483a434322a1b75516c51bcc6318f01 | [
"MIT"
] | null | null | null | # This file contains the different states of the api
class Config(object):
DEBUG = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
class Production(Config):
DEBUG = False
class DevelopmentConfig(Config):
DEBUG = True | 26 | 53 | 0.737762 | 34 | 286 | 6.088235 | 0.676471 | 0.096618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185315 | 286 | 11 | 54 | 26 | 0.888412 | 0.174825 | 0 | 0.25 | 0 | 0 | 0.089362 | 0.089362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3a8e6001506ac0e8e0b810b1e358fda8a47a8603 | 790 | py | Python | Ene-Jun-2018/Ana Cazares/Primer Parcial/pack.pt.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ene-Jun-2018/Ana Cazares/Primer Parcial/pack.pt.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ene-Jun-2018/Ana Cazares/Primer Parcial/pack.pt.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | from tkinter import *
root = Tk()
root.geometry('400x400+100+200')
# fill option
label1 = Label(root, text="Label 1", bg="#E74C3C", fg="white").pack(fill=X, padx=10)
label2 = Label(root, text="Label 2", bg="#2ECC71", fg="black").pack(fill=X, padx=10)
label3 = Label(root, text="Label 3", bg="#F1C40F", fg="white").pack... | 32.916667 | 104 | 0.664557 | 134 | 790 | 3.91791 | 0.380597 | 0.106667 | 0.148571 | 0.205714 | 0.529524 | 0.529524 | 0.289524 | 0.099048 | 0 | 0 | 0 | 0.085837 | 0.11519 | 790 | 23 | 105 | 34.347826 | 0.665236 | 0.046835 | 0 | 0 | 0 | 0 | 0.17223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.