hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
d7bae06c160ec85487c4a5b05e1c32a823c606b8
14,934
py
Python
coord2vec/models/baselines/coord2vec_model.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
null
null
null
coord2vec/models/baselines/coord2vec_model.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
null
null
null
coord2vec/models/baselines/coord2vec_model.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
1
2021-01-25T09:21:17.000Z
2021-01-25T09:21:17.000Z
import os import random from typing import List, Tuple, Callable import torch from ignite.contrib.handlers import ProgressBar, LRScheduler from ignite.handlers import ModelCheckpoint from sklearn.base import BaseEstimator, TransformerMixin from torch import nn from torch import optim from torch.nn.modules.loss import _...
47.56051
118
0.64169
d7bb7502a2e24be8eaf3bc4172023cbaaaa79d16
1,716
py
Python
PythonExercicios/ex045.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex045.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex045.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
from random import choice from time import sleep jokenpo = ['Pedra', 'Papel', 'Tesoura'] jokenposter_stainger = choice(jokenpo) jogador = int(input('Qual a sua jogada?' '\n1. Pedra' '\n2. Papel' '\n3. Tesoura' '\nEscolha: ')) print('\nJO....
23.189189
64
0.597902
d7bba15bb04519ffa2576bb1d237b14798175a4e
102
py
Python
demo_backend/text_generator/apps.py
WallaceLiu/Web-Full-Stack-Practice
2551ab12d7b500387cc511f1cb7428aef4d59ab4
[ "BSD-2-Clause" ]
33
2019-03-04T12:56:47.000Z
2021-11-27T02:29:45.000Z
demo_backend/text_generator/apps.py
WallaceLiu/Web-Full-Stack-Practice
2551ab12d7b500387cc511f1cb7428aef4d59ab4
[ "BSD-2-Clause" ]
1
2021-06-10T21:39:42.000Z
2021-06-10T21:39:42.000Z
demo_backend/text_generator/apps.py
WallaceLiu/Web-Full-Stack-Practice
2551ab12d7b500387cc511f1cb7428aef4d59ab4
[ "BSD-2-Clause" ]
9
2019-03-04T13:15:51.000Z
2021-08-24T01:24:34.000Z
from django.apps import AppConfig
17
37
0.784314
d7bd08d0f54f08c80ef0751f3fb01d94c3153c59
760
py
Python
tools/find_protoc.py
Kill-Console/xresloader
dc11f4cffecb9f9d706c91a83d5b70a1d418cfc5
[ "MIT" ]
219
2015-05-21T03:27:46.000Z
2022-03-22T08:39:41.000Z
tools/find_protoc.py
Kill-Console/xresloader
dc11f4cffecb9f9d706c91a83d5b70a1d418cfc5
[ "MIT" ]
9
2016-04-26T07:11:26.000Z
2021-12-30T02:45:00.000Z
tools/find_protoc.py
Kill-Console/xresloader
dc11f4cffecb9f9d706c91a83d5b70a1d418cfc5
[ "MIT" ]
59
2015-05-19T01:29:28.000Z
2022-03-22T08:39:43.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import os import stat protoc_exec = None """ run as a executable """ if __name__ == "__main__": print(find_protoc())
29.230769
78
0.665789
d7bd3f72caaeb6260431ad1a59089ba8056f0635
43,253
py
Python
inventory/views.py
yellowjaguar5/lnldb
dea7708f5e4e103ef6ef968c9f3a4deaa58861c5
[ "MIT" ]
5
2017-09-25T21:24:59.000Z
2021-12-18T17:08:13.000Z
inventory/views.py
yellowjaguar5/lnldb
dea7708f5e4e103ef6ef968c9f3a4deaa58861c5
[ "MIT" ]
304
2015-03-24T17:44:22.000Z
2022-03-29T14:09:41.000Z
inventory/views.py
yellowjaguar5/lnldb
dea7708f5e4e103ef6ef968c9f3a4deaa58861c5
[ "MIT" ]
10
2017-10-24T02:18:12.000Z
2021-09-20T20:40:25.000Z
from io import BytesIO import json import re import requests from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required, permission_required from django.core.exceptions import PermissionDenied from django.core.paginator import EmptyPage, PageNotAnInte...
51.369359
199
0.565464
d7c1a3f606fca343046498c63a29e95730e0801b
2,877
py
Python
tests/unit_tests/db_engine_specs/test_athena.py
awchisholm/superset
a169b6071209c4f6681c95486127fc43884ff6d1
[ "Apache-2.0" ]
2
2021-12-21T15:57:16.000Z
2022-01-31T02:22:02.000Z
tests/unit_tests/db_engine_specs/test_athena.py
awchisholm/superset
a169b6071209c4f6681c95486127fc43884ff6d1
[ "Apache-2.0" ]
8
2021-11-19T11:56:39.000Z
2022-03-02T10:50:58.000Z
tests/unit_tests/db_engine_specs/test_athena.py
awchisholm/superset
a169b6071209c4f6681c95486127fc43884ff6d1
[ "Apache-2.0" ]
2
2021-12-21T13:41:18.000Z
2021-12-26T22:16:43.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 u...
33.847059
120
0.680222
d7c1f88f81f11884d3d6e8d5e5c7d5256d7a55bf
1,376
py
Python
apps/accounts/tests/functional/transactions/test_confirm_email.py
victoraguilarc/xib.li
11e61641d0b2bad148713488aa7b730c1f6cbb0c
[ "MIT" ]
1
2020-05-08T09:29:08.000Z
2020-05-08T09:29:08.000Z
apps/accounts/tests/functional/transactions/test_confirm_email.py
victoraguilarc/xib.li
11e61641d0b2bad148713488aa7b730c1f6cbb0c
[ "MIT" ]
1
2020-05-08T16:47:17.000Z
2020-05-13T21:05:00.000Z
apps/accounts/tests/functional/transactions/test_confirm_email.py
victoraguilarc/xib.li
11e61641d0b2bad148713488aa7b730c1f6cbb0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- import pytest from django.test import RequestFactory from django.urls import reverse from doubles import allow, expect from rest_framework import status from apps.accounts.models.choices import ActionCategory from apps.accounts.services.auth import AuthService from apps...
32.761905
90
0.750727
d7c2573fe1dc3783d90bd1abbefb46141b4afea9
15,240
py
Python
data/test/test_queue.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
data/test/test_queue.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
data/test/test_queue.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import json import time import pytest from contextlib import contextmanager from datetime import datetime, timedelta from functools import wraps from data.database import QueueItem from data.queue import ( WorkQueue, MINIMUM_EXTENSION, queue_items_locked, queue_items_available, queue_items_availa...
34.247191
98
0.720997
d7c5b2db0f4c72202956af5eb6262f4c752182db
24
py
Python
fortifyapi/__init__.py
brownsec/fortifyapi
18ce25eb0dd082dd3017f27162740cb29f7bda85
[ "MIT" ]
null
null
null
fortifyapi/__init__.py
brownsec/fortifyapi
18ce25eb0dd082dd3017f27162740cb29f7bda85
[ "MIT" ]
1
2021-06-25T15:18:20.000Z
2021-06-25T15:18:20.000Z
fortifyapi/__init__.py
brownsec/fortifyapi
18ce25eb0dd082dd3017f27162740cb29f7bda85
[ "MIT" ]
null
null
null
__version__ = '1.0.19'
8
22
0.625
d7c62fc471a3322202e63b6f1c8bacf3b6d8ab26
1,432
py
Python
18Host/TDT4110/PythonWorkspace/Oving5/Blackjack.py
MarcusTL12/School
f7302f2d390e99ad9d06004e15da032c05ec59e7
[ "Apache-2.0" ]
null
null
null
18Host/TDT4110/PythonWorkspace/Oving5/Blackjack.py
MarcusTL12/School
f7302f2d390e99ad9d06004e15da032c05ec59e7
[ "Apache-2.0" ]
null
null
null
18Host/TDT4110/PythonWorkspace/Oving5/Blackjack.py
MarcusTL12/School
f7302f2d390e99ad9d06004e15da032c05ec59e7
[ "Apache-2.0" ]
null
null
null
import random
20.457143
66
0.629888
d7c647bb1019176d7d7f0e17a3dee844575194ad
11,017
py
Python
tools/external_converter_v2/parser/operations/op_io.py
pangge/Anakin
f327267d1ee2038d92d8c704ec9f1a03cb800fc8
[ "Apache-2.0" ]
533
2018-05-18T06:14:04.000Z
2022-03-23T11:46:30.000Z
tools/external_converter_v2/parser/operations/op_io.py
pangge/Anakin
f327267d1ee2038d92d8c704ec9f1a03cb800fc8
[ "Apache-2.0" ]
100
2018-05-26T08:32:48.000Z
2022-03-17T03:26:25.000Z
tools/external_converter_v2/parser/operations/op_io.py
pangge/Anakin
f327267d1ee2038d92d8c704ec9f1a03cb800fc8
[ "Apache-2.0" ]
167
2018-05-18T06:14:35.000Z
2022-02-14T01:44:20.000Z
#! /usr/bin/env python # Copyright (c) 2017, Cuichaowen. All rights reserved. # -*- coding: utf-8 -*- # ops helper dictionary ########### Object track and detection helper (for adu(caffe layer type)) Op io define ############# # NMSSSDParameter nms_param = Dictionary().set_attr(need_nms=bool(), ...
54.004902
108
0.338023
d7c741b81d484e97159c53ba61d889aa64fb4322
402
py
Python
calibration/capture.py
dangthanhan507/odcl
60b7d67bbeabda58090c76f6bdbfae4559eea9ac
[ "MIT" ]
null
null
null
calibration/capture.py
dangthanhan507/odcl
60b7d67bbeabda58090c76f6bdbfae4559eea9ac
[ "MIT" ]
7
2021-10-30T02:16:46.000Z
2021-11-17T21:23:12.000Z
calibration/capture.py
dangthanhan507/odcl
60b7d67bbeabda58090c76f6bdbfae4559eea9ac
[ "MIT" ]
null
null
null
import cv2 import os import argparse if __name__ == '__main__': arg = argparse.ArgumentParser() arg.add_argument('--o', required=True, help='output_folder') opt = arg.parse_args() cap = cv2.VideoCapture(0) ret, img = cap.read() print('Writing to chessboard file') files = os.listdir(opt.o) index = 0 while (f'i...
23.647059
61
0.691542
d7c7d36b08b7910b33e0fece9387522df88e2cd2
3,105
py
Python
commands/FBTextInputCommands.py
zddd/chisel
7782bdde3062e15ccbdc5f617aa3a8f096b6751b
[ "MIT" ]
1
2020-03-04T20:24:33.000Z
2020-03-04T20:24:33.000Z
commands/FBTextInputCommands.py
zddd/chisel
7782bdde3062e15ccbdc5f617aa3a8f096b6751b
[ "MIT" ]
null
null
null
commands/FBTextInputCommands.py
zddd/chisel
7782bdde3062e15ccbdc5f617aa3a8f096b6751b
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import lldb import fblldbbase as fb import fblldbviewhelpers as viewHelpers ACCESSIBILITY_I...
30.145631
113
0.732689
d7c8a43a00510f5f2e6fd644ecd312c0d8026e5e
3,105
py
Python
tests/test_operator_web_site.py
luigi-riefolo/network_crawler
376fb5860c573416ac71a0dfe5437011858398b6
[ "MIT" ]
null
null
null
tests/test_operator_web_site.py
luigi-riefolo/network_crawler
376fb5860c573416ac71a0dfe5437011858398b6
[ "MIT" ]
null
null
null
tests/test_operator_web_site.py
luigi-riefolo/network_crawler
376fb5860c573416ac71a0dfe5437011858398b6
[ "MIT" ]
null
null
null
"""OperatorWebSite class unit test.""" from __init__ import json, os, time, unittest, \ webdriver, WebDriverException, OperatorWebSite if __name__ == '__main__': unittest.main()
31.363636
76
0.5781
d7c96b0c8aeabc0eec3210749c777002aac7b033
32,365
py
Python
app/tests/refs/ectyper_dict.py
superphy/spfy
867e61b32ab00ec536378f96a63f0fb379f47c58
[ "Apache-2.0" ]
2
2019-05-22T14:29:37.000Z
2020-02-13T11:30:46.000Z
app/tests/refs/ectyper_dict.py
superphy/backend
867e61b32ab00ec536378f96a63f0fb379f47c58
[ "Apache-2.0" ]
88
2017-04-07T21:52:10.000Z
2018-03-10T23:12:47.000Z
app/tests/refs/ectyper_dict.py
superphy/backend
867e61b32ab00ec536378f96a63f0fb379f47c58
[ "Apache-2.0" ]
2
2017-02-10T21:30:13.000Z
2017-06-05T22:30:17.000Z
# output from call_ectyper.py, to be sent to beautify.py # example is from ECI-2866_lcl.fasta_ectyper.p ectyper_dict = {'Virulence Factors': {'lcl|ECI-2866|NODE_56_length_6694_cov_33.7669_ID_111': [{'START': 4864, 'STOP': 5820, 'ORIENTATION': '+', 'GENE_NAME': 'stx1A'}, {'START': 4873, 'STOP': 5820, 'ORIENTATION': '+',...
10,788.333333
32,261
0.601792
d7c9ba9ae60b31b077eadce9426f0130ab05c043
276
py
Python
totality/test_main.py
str8d8a/totality-python
cebfd7df880dd42da86fb3094676dd62d2e6d99a
[ "MIT" ]
null
null
null
totality/test_main.py
str8d8a/totality-python
cebfd7df880dd42da86fb3094676dd62d2e6d99a
[ "MIT" ]
null
null
null
totality/test_main.py
str8d8a/totality-python
cebfd7df880dd42da86fb3094676dd62d2e6d99a
[ "MIT" ]
null
null
null
from totality import Totality, Node, NodeId
30.666667
51
0.684783
d7ca58134511fa6a746383bef2993e9b0fa529e5
3,630
py
Python
projects/DensePose/densepose/modeling/test_time_augmentation.py
bruce1408/detectron2_modify
815df8c3cd68b1450e039fbafc27c6ab302d620b
[ "Apache-2.0" ]
5
2020-01-17T12:27:00.000Z
2020-05-06T11:47:25.000Z
projects/DensePose/densepose/modeling/test_time_augmentation.py
bruce1408/detectron2_modify
815df8c3cd68b1450e039fbafc27c6ab302d620b
[ "Apache-2.0" ]
3
2021-06-08T21:51:10.000Z
2022-01-13T02:53:58.000Z
projects/DensePose/densepose/modeling/test_time_augmentation.py
bruce1408/detectron2_modify
815df8c3cd68b1450e039fbafc27c6ab302d620b
[ "Apache-2.0" ]
2
2020-01-17T12:49:55.000Z
2020-02-25T12:17:31.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import torch from fvcore.transforms import HFlipTransform from detectron2.modeling.postprocessing import detector_postprocess from detectron2.modeling.test_time_augmentation import GeneralizedRCNNWithTTA
47.142857
98
0.662534
d7ca9ef5912d23f52e3b73b63d9991b17b4b8ce7
1,343
py
Python
src/compath_resources/summarize.py
ComPath/resources
e8da7b511c2b558b8fd0bf38888b512008ac1ba3
[ "MIT" ]
3
2018-05-14T14:46:39.000Z
2019-06-20T10:28:26.000Z
src/compath_resources/summarize.py
ComPath/compath-resources
e8da7b511c2b558b8fd0bf38888b512008ac1ba3
[ "MIT" ]
13
2020-03-28T13:36:32.000Z
2021-01-19T15:00:07.000Z
src/compath_resources/summarize.py
ComPath/resources
e8da7b511c2b558b8fd0bf38888b512008ac1ba3
[ "MIT" ]
1
2021-12-01T09:49:59.000Z
2021-12-01T09:49:59.000Z
# -*- coding: utf-8 -*- """Generate charts for the ComPath GitHub Pages site.""" import click import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from more_click import verbose_option from compath_resources import get_df from compath_resources.constants import DATA_DIRECTORY, IMG_DIRECTORY __a...
28.574468
94
0.693969
d7ceec6aeb525832eb8df2671f3394c484971cd3
3,681
py
Python
src/database/insert_data.py
johnnychiuchiu/Music-Recommender
6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d
[ "FTL", "Spencer-86", "Spencer-94", "Spencer-99" ]
null
null
null
src/database/insert_data.py
johnnychiuchiu/Music-Recommender
6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d
[ "FTL", "Spencer-86", "Spencer-94", "Spencer-99" ]
4
2018-02-10T02:04:12.000Z
2018-03-22T23:58:01.000Z
src/database/insert_data.py
johnnychiuchiu/Music-Recommender
6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d
[ "FTL", "Spencer-86", "Spencer-94", "Spencer-99" ]
3
2018-03-22T13:10:20.000Z
2019-05-27T21:48:14.000Z
import pandas as pd import os from schema import db import random if __name__=='__main__': # read song data as dataframe song_df = ReadData().readSongData() # random sample n users randomsong_df = ReadData().random_select_user(song_df, 10) # # connect to sqlite database # conn = dbConn('../....
33.770642
117
0.626189
d7d0069da869d2dfb8343d1ac1da553ed1bc346a
1,245
py
Python
Codes/Prediction/RF_Prediction.py
sepehrgdr/Mode_Imputation
bd7c17d05beacdbdf2f4c9fdefa3062a253607c8
[ "BSD-3-Clause" ]
null
null
null
Codes/Prediction/RF_Prediction.py
sepehrgdr/Mode_Imputation
bd7c17d05beacdbdf2f4c9fdefa3062a253607c8
[ "BSD-3-Clause" ]
null
null
null
Codes/Prediction/RF_Prediction.py
sepehrgdr/Mode_Imputation
bd7c17d05beacdbdf2f4c9fdefa3062a253607c8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 28 14:24:27 2019 @author: adarzi """ #Loading the libraries import pandas as pd import os from os import sys import pickle #setting the directory os.chdir(sys.path[0]) #loading the data: data = pd.read_csv('../../Inputs/Trip_Data/AirSage_Data/trips_lon...
26.489362
96
0.73494
d7d0a76d7b4cce22fdb7bb20a546cca9f12ef41b
340
py
Python
abc153_e.py
tkt989/atcoder
d4f334f60c9d487a1d9c166cda3e2303d5db23e5
[ "MIT" ]
null
null
null
abc153_e.py
tkt989/atcoder
d4f334f60c9d487a1d9c166cda3e2303d5db23e5
[ "MIT" ]
null
null
null
abc153_e.py
tkt989/atcoder
d4f334f60c9d487a1d9c166cda3e2303d5db23e5
[ "MIT" ]
null
null
null
import math H, N = [int(n) for n in input().split()] A = [] B = [] for _ in range(N): a, b = [int(n) for n in input().split()] A.append(a) B.append(b) p = [] for i in range(N): p.append(A[i] / B[i]) for pp in p: pass # print(pp) maisu = [] for i in range(N): maisu.append(math.ceil(H / A[i])) for m ...
13.076923
42
0.538235
d7d12e722f235c4570fb348b9967c5ef1d812876
7,467
py
Python
util.py
ChannyHong/ISREncoder
be8145756d50582c371378aa846906d6f94a45f6
[ "Apache-2.0" ]
6
2020-01-16T17:43:36.000Z
2021-04-25T08:52:38.000Z
util.py
ChannyHong/ISREncoder
be8145756d50582c371378aa846906d6f94a45f6
[ "Apache-2.0" ]
null
null
null
util.py
ChannyHong/ISREncoder
be8145756d50582c371378aa846906d6f94a45f6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Superb AI, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
33.78733
140
0.759207
d7d42afdeeec54d2a3cf68a4146560be3acb0b13
5,676
py
Python
shortening_calculations.py
joferkington/oost_paper_code
6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d
[ "MIT" ]
20
2015-06-25T19:56:45.000Z
2021-05-18T00:35:33.000Z
shortening_calculations.py
joferkington/oost_paper_code
6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d
[ "MIT" ]
null
null
null
shortening_calculations.py
joferkington/oost_paper_code
6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d
[ "MIT" ]
19
2015-09-10T00:21:33.000Z
2019-05-02T19:34:38.000Z
from uncertainties import ufloat from utilities import min_value, max_value def bed_length_balancing(): """Summed fault heaves from bed-length balancing.""" present_length = 32 # 2km error from range in restored pin lines + 10% interpretation error restored_length = ufloat(82, 10) shortening = re...
32.434286
80
0.688161
d7d5e45498157f2f20cc7e26dda1b23ec9642455
1,822
py
Python
untested/people_multi/config.py
vishalbelsare/neworder
38635fca64f239a9e8eb1a671872c174e1814678
[ "MIT" ]
17
2017-12-08T10:21:18.000Z
2022-01-13T09:29:43.000Z
untested/people_multi/config.py
vishalbelsare/neworder
38635fca64f239a9e8eb1a671872c174e1814678
[ "MIT" ]
61
2018-07-21T21:37:12.000Z
2021-07-10T12:49:15.000Z
untested/people_multi/config.py
vishalbelsare/neworder
38635fca64f239a9e8eb1a671872c174e1814678
[ "MIT" ]
6
2019-06-06T18:29:31.000Z
2021-08-20T13:32:17.000Z
""" config.py Microsimulation config for mulit-LAD MPI simulation """ import numpy as np import glob import neworder # define some global variables describing where the starting population and the parameters of the dynamics come from initial_populations = glob.glob("examples/people_multi/data/ssm_*_MSOA11_ppp_2011.cs...
30.881356
150
0.751921
d7d5f7aa6c2993b4d6d4530b59b459170fa38a3a
2,451
py
Python
openarticlegauge/view/issue.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
1
2016-04-07T18:29:27.000Z
2016-04-07T18:29:27.000Z
openarticlegauge/view/issue.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
11
2015-01-06T15:53:09.000Z
2022-03-01T01:46:14.000Z
openarticlegauge/view/issue.py
CottageLabs/OpenArticleGauge
58d29b4209a7b59041d61326ffe1cf03f98f3cff
[ "BSD-3-Clause" ]
null
null
null
# present and accept dispute processing from flask import Blueprint, request, make_response, render_template, flash, redirect from openarticlegauge.core import app import openarticlegauge.util as util import openarticlegauge.models as models blueprint = Blueprint('issue', __name__)
31.423077
133
0.572827
d7d6977e92b32a6c300621013c13d82efe31ea62
3,700
py
Python
lucky_number.py
sankalpa-udawaththa/Python-game-lucky-number
7c7b402f88bc5ce2acb8a77f7cd5450bc05f2590
[ "MIT" ]
null
null
null
lucky_number.py
sankalpa-udawaththa/Python-game-lucky-number
7c7b402f88bc5ce2acb8a77f7cd5450bc05f2590
[ "MIT" ]
null
null
null
lucky_number.py
sankalpa-udawaththa/Python-game-lucky-number
7c7b402f88bc5ce2acb8a77f7cd5450bc05f2590
[ "MIT" ]
null
null
null
import random secret = random.randint(0,100000) guess_count = 0 guess_limit = 3 name = input("Enter Your Name: ") print(f"Hello, {name.upper()} welcome") print(" | This is your MAGIC CODE [NFHSFXYW1234" + str(secret) + "5678910WRYUCN] |") print(" | ...
37.755102
119
0.176216
d7d6a3b1326a40ebd9018af61c19a1860d81c976
9,195
py
Python
tutorials/auction/smartpy/smartpy_generated/nft_wallet/Dutch_pure.py
tqtezos/ticket-tutorials
37ea1c489173941b6605c2a850f2d33a59c53256
[ "MIT" ]
7
2020-12-01T20:52:12.000Z
2021-08-09T18:26:12.000Z
tutorials/auction/smartpy/smartpy_generated/nft_wallet/Dutch_pure.py
tqtezos/ticket-tutorials
37ea1c489173941b6605c2a850f2d33a59c53256
[ "MIT" ]
1
2021-04-20T12:05:12.000Z
2021-04-20T12:05:12.000Z
tutorials/auction/smartpy/smartpy_generated/nft_wallet/Dutch_pure.py
tqtezos/ticket-tutorials
37ea1c489173941b6605c2a850f2d33a59c53256
[ "MIT" ]
1
2021-02-27T16:33:27.000Z
2021-02-27T16:33:27.000Z
import smartpy as sp AUCTION_PARAMS_TYPE = sp.TRecord(opening_price = sp.TNat, reserve_price = sp.TNat, start_time = sp.TTimestamp, round_time = sp.TInt, ticket = sp.TTicket(sp.TNat)) METADATA_TYPE = sp.TMap(sp.TString, sp.TBytes) TOKEN_METADATA_TYPE = sp.TBigMap(sp.TNat, sp.T...
40.328947
129
0.641979
d7d6f3292bc828516848b10b41f3ffe87678ff9d
4,839
py
Python
src/input_data_generation/Data_Generation.py
jwkim98/SocioCraft
7e6aa9ff38cca7694fe6a5e408825636616ae1b3
[ "MIT" ]
null
null
null
src/input_data_generation/Data_Generation.py
jwkim98/SocioCraft
7e6aa9ff38cca7694fe6a5e408825636616ae1b3
[ "MIT" ]
6
2019-11-20T13:29:29.000Z
2019-12-19T17:57:21.000Z
src/input_data_generation/Data_Generation.py
jwkim98/SocialSim
7e6aa9ff38cca7694fe6a5e408825636616ae1b3
[ "MIT" ]
null
null
null
# Data Generation file Group data # Group Group Group import csv import numpy as np looptime=3 #Group number=[100,100,100] # Group number2=[100,100,100] # Group strengthlimit=100 # Strength mean=[0,0,0] # Group Gaussian Distribution Mean money=5000 ...
38.102362
168
0.613763
d7d7eb91cc6291ffc2e3931f28156e9ccd13a035
1,826
py
Python
inaworld/tokens.py
epfahl/inaworld
886bd1c0ce143eb09d5fe3c479e0ed0e796bf836
[ "MIT" ]
null
null
null
inaworld/tokens.py
epfahl/inaworld
886bd1c0ce143eb09d5fe3c479e0ed0e796bf836
[ "MIT" ]
null
null
null
inaworld/tokens.py
epfahl/inaworld
886bd1c0ce143eb09d5fe3c479e0ed0e796bf836
[ "MIT" ]
null
null
null
"""Tokenize a document. *** NLTK tokenization and this module have been deprecated in favor of a sklearn-based solution. However, NLTK may offer more options for tokenization, stemming, etc., this module is retained for future reference. """ import re import nltk import toolz as tz re_not_alpha = re.compile('[^a-zA...
25.71831
79
0.624863
d7d889701d322c85cba5e27beaf93698e762c786
2,483
py
Python
tests/server_state_item_test.py
whitphx/streamlit-server-state
12e0d07e4863ea33529c1685c764c9a4214df8e2
[ "MIT" ]
20
2021-07-11T14:47:50.000Z
2022-02-08T07:44:03.000Z
tests/server_state_item_test.py
whitphx/streamlit-server-state
12e0d07e4863ea33529c1685c764c9a4214df8e2
[ "MIT" ]
31
2021-07-23T15:21:27.000Z
2022-03-30T15:19:17.000Z
tests/server_state_item_test.py
whitphx/streamlit-server-state
12e0d07e4863ea33529c1685c764c9a4214df8e2
[ "MIT" ]
1
2022-01-03T02:01:24.000Z
2022-01-03T02:01:24.000Z
from unittest.mock import ANY, Mock, patch import pytest from streamlit_server_state.server_state_item import ServerStateItem
24.343137
85
0.755135
d7d93021ccae0a77677be8252a5390c6ed0ed049
686
py
Python
sympycore/heads/arithmetic.py
radovankavicky/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
96
2015-01-25T05:59:56.000Z
2021-12-29T14:05:22.000Z
sympycore/heads/arithmetic.py
1zinnur9/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
3
2015-12-17T19:25:46.000Z
2018-06-19T07:05:20.000Z
sympycore/heads/arithmetic.py
1zinnur9/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
36
2016-01-31T15:22:01.000Z
2021-03-29T07:03:07.000Z
#obsolete, each head should be defined in a separate file __all__ = ['FLOORDIV', 'MOD'] from .base import NaryHead MOD = ModHead() FLOORDIV = FloordivHead()
18.540541
59
0.653061
d7d94e78e81c338291612ee9c829d5e728b8d936
68
py
Python
boxuegu/apps/courses/views.py
libin-c/bxg
c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23
[ "MIT" ]
1
2019-06-13T10:08:25.000Z
2019-06-13T10:08:25.000Z
boxuegu/apps/courses/views.py
libin-c/bxg
c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23
[ "MIT" ]
null
null
null
boxuegu/apps/courses/views.py
libin-c/bxg
c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23
[ "MIT" ]
null
null
null
from django.views import View
13.6
29
0.764706
d7da6c76e88c3141152b6b83c5b2260da1ff5ebc
168
py
Python
classification/admin/__init__.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
classification/admin/__init__.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
classification/admin/__init__.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
from classification.admin.classification_admin import * from classification.admin.clinvar_export_admin import * from classification.admin.condition_text_admin import *
42
55
0.875
d7dcce491e877298e10f20725e26c61897450ea2
17,656
py
Python
scripts/patch-uld-elf.py
cutty/uld-fdpic
f035bf5f24068eeaeac9dea497cbaef536849637
[ "MIT" ]
8
2019-03-14T17:33:05.000Z
2022-01-11T09:52:18.000Z
scripts/patch-uld-elf.py
Cutty/uld-fdpic
f035bf5f24068eeaeac9dea497cbaef536849637
[ "MIT" ]
null
null
null
scripts/patch-uld-elf.py
Cutty/uld-fdpic
f035bf5f24068eeaeac9dea497cbaef536849637
[ "MIT" ]
3
2019-05-18T08:36:38.000Z
2021-02-22T10:12:38.000Z
#!/usr/bin/env python # Copyright (c) 2016, 2017 Joe Vernaci # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mo...
31.755396
79
0.621715
d7ddf28312cf505e16bdb958ec521e74d90b4d5b
898
py
Python
glycowork/tests/test_hierarchyfilter.py
Old-Shatterhand/glycowork
544fde03dd38cf95fb97792e050d7ff68f5637b1
[ "MIT" ]
22
2021-04-22T23:53:26.000Z
2022-03-21T00:36:32.000Z
glycowork/tests/test_hierarchyfilter.py
Old-Shatterhand/glycowork
544fde03dd38cf95fb97792e050d7ff68f5637b1
[ "MIT" ]
3
2021-04-23T13:01:07.000Z
2022-03-16T19:13:12.000Z
glycowork/tests/test_hierarchyfilter.py
Old-Shatterhand/glycowork
544fde03dd38cf95fb97792e050d7ff68f5637b1
[ "MIT" ]
2
2021-07-06T14:13:40.000Z
2021-12-15T15:12:37.000Z
import glycowork from glycowork.glycan_data.loader import df_species from glycowork.ml.train_test_split import * train_x, val_x, train_y, val_y, id_val, class_list, class_converter = hierarchy_filter(df_species, rank = 'Kingdom') p...
56.125
112
0.406459
d7decdd0887c890cdfcc81772e768a8da0fcad8b
1,374
py
Python
scripts/greaseweazle/tools/seek.py
pkorpine/Greaseweazle
0c016dbf4cd35dcbc12b9e97834c0286026f76b5
[ "Unlicense" ]
null
null
null
scripts/greaseweazle/tools/seek.py
pkorpine/Greaseweazle
0c016dbf4cd35dcbc12b9e97834c0286026f76b5
[ "Unlicense" ]
null
null
null
scripts/greaseweazle/tools/seek.py
pkorpine/Greaseweazle
0c016dbf4cd35dcbc12b9e97834c0286026f76b5
[ "Unlicense" ]
null
null
null
# greaseweazle/tools/seek.py # # Greaseweazle control script: Seek to specified cylinder. # # Written & released by Keir Fraser <keir.xen@gmail.com> # # This is free and unencumbered software released into the public domain. # See the file COPYING for more details, or visit <http://unlicense.org>. description = "Seek ...
27.48
73
0.687045
d7dfa172aeeb64d0717b70994ce79034e4b91fe6
424
py
Python
find_duplicate_7kyu/find_the_duplicate.py
philipwerner/code-katas
3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712
[ "MIT" ]
null
null
null
find_duplicate_7kyu/find_the_duplicate.py
philipwerner/code-katas
3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712
[ "MIT" ]
null
null
null
find_duplicate_7kyu/find_the_duplicate.py
philipwerner/code-katas
3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712
[ "MIT" ]
null
null
null
"""Kata: Find the Duplicated Number in a Consecutive Unsorted List - Finds and returns the duplicated number from the list #1 Best Practices Solution by SquishyStrawberry def find_dup(arr): return (i for i in arr if arr.count(i) > 1).next() """ def find_dup(arr): """This will find the duplicated int in the ...
28.266667
87
0.683962
d7dfcf7248542aa01e4dc5de7a80c637f4e680b5
2,998
py
Python
text_generator.py
agvergara/RNN_Text_Generator
c1bcae06085b2ce8ec6f94ba9378c74a9c834c93
[ "Apache-2.0" ]
null
null
null
text_generator.py
agvergara/RNN_Text_Generator
c1bcae06085b2ce8ec6f94ba9378c74a9c834c93
[ "Apache-2.0" ]
null
null
null
text_generator.py
agvergara/RNN_Text_Generator
c1bcae06085b2ce8ec6f94ba9378c74a9c834c93
[ "Apache-2.0" ]
null
null
null
#coding:cp1252 """ @author: Antonio Gomez Vergara Generates text using word embeddings (still in process of study how word embeddings works) """ import sys import text_utils from rnn_class import TextGeneratorModel MIN_WORD_FREQ = 10 SEED = "Nenita hello" SEQUENCE_LEN = len(SEED) STRIDE = 1 BATCH_SIZE...
42.828571
185
0.740494
d7e19de3f7cb4cc70ee65050649024f1a0772784
429
py
Python
PivotExamples.py
KSim818/sandpit
30a13e75db7c3c8d0ac84593db251e19144abac2
[ "Apache-2.0" ]
null
null
null
PivotExamples.py
KSim818/sandpit
30a13e75db7c3c8d0ac84593db251e19144abac2
[ "Apache-2.0" ]
null
null
null
PivotExamples.py
KSim818/sandpit
30a13e75db7c3c8d0ac84593db251e19144abac2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 18 16:14:01 2019 @author: KatieSi """ # https://jakevdp.github.io/PythonDataScienceHandbook/03.09-pivot-tables.html import numpy as np import pandas as pd import seaborn as sns titanic = sns.load_dataset('titanic') titanic.head() titanic.groupby(['sex', 'class'])['survi...
25.235294
77
0.708625
d7e340552052f5945e9ff96d2780fc1f63de1b7c
23,777
py
Python
pydex/utils/trellis_plotter.py
megansimwei/pydex
a10f3078e2e9396e1e035b7d08d22f10e540cfd4
[ "MIT" ]
null
null
null
pydex/utils/trellis_plotter.py
megansimwei/pydex
a10f3078e2e9396e1e035b7d08d22f10e540cfd4
[ "MIT" ]
null
null
null
pydex/utils/trellis_plotter.py
megansimwei/pydex
a10f3078e2e9396e1e035b7d08d22f10e540cfd4
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt import numpy as np if __name__ == "__main__": # def fun(x): # return x[0] + x[1] + x[2] + x[3] # def fun(x): # return x[0] ** 3 + x[1] ** 3 + x[2] ** 3 + x[3] ** 3 # def fun(x): # return np.sin(x[0]) + np.sin(x[1]) + np.sin(x[2]) + np.sin(x[...
40.644444
102
0.415906
d7e3b405d8a70706809a3a43f3a1d5801c3fe2c8
1,866
py
Python
ros_mqtt_bridge/ros_to_mqtt.py
CPFL/ros_mqtt_bridge
21cd3fd718b11efe17a9bdabaac212a93048c82b
[ "Apache-2.0" ]
5
2018-09-28T08:10:28.000Z
2022-01-23T12:58:17.000Z
ros_mqtt_bridge/ros_to_mqtt.py
CPFL/ros_mqtt_bridge
21cd3fd718b11efe17a9bdabaac212a93048c82b
[ "Apache-2.0" ]
1
2018-04-10T03:00:47.000Z
2018-04-10T03:00:47.000Z
ros_mqtt_bridge/ros_to_mqtt.py
CPFL/ros_mqtt_bridge
21cd3fd718b11efe17a9bdabaac212a93048c82b
[ "Apache-2.0" ]
3
2019-04-01T05:11:17.000Z
2021-09-15T14:08:57.000Z
#!/usr/bin/env python # coding: utf-8 import yaml import json import rospy import paho.mqtt.client as mqtt from ros_mqtt_bridge.args_setters import ArgsSetters
34.555556
98
0.614148
d7e4e36801cb32ad61d2a64ea35c1d50ecc72249
13,999
py
Python
mmderain/models/backbones/rlnet.py
biubiubiiu/derain-toolbox
1669138d1aaa72c986d70d03f9cde7dbbbb70fa1
[ "Apache-2.0" ]
4
2022-02-22T13:20:15.000Z
2022-03-23T03:30:15.000Z
mmderain/models/backbones/rlnet.py
biubiubiiu/derain-toolbox
1669138d1aaa72c986d70d03f9cde7dbbbb70fa1
[ "Apache-2.0" ]
null
null
null
mmderain/models/backbones/rlnet.py
biubiubiiu/derain-toolbox
1669138d1aaa72c986d70d03f9cde7dbbbb70fa1
[ "Apache-2.0" ]
1
2022-03-22T14:10:37.000Z
2022-03-22T14:10:37.000Z
from functools import partial from typing import List, Optional, Sequence, Tuple import torch import torch.nn.functional as F from torch import nn from mmderain.models.common import sizeof from mmderain.models.registry import BACKBONES from mmderain.models.layers import SELayer_Modified
35.085213
100
0.591114
d7e5a49c03c6113e3e09dbacc624a1673c95d301
1,336
py
Python
10/lottery.py
sukio-1024/codeitPy
43f4c6d5205eab9cb4780ceb8799b04ce7b10acb
[ "MIT" ]
null
null
null
10/lottery.py
sukio-1024/codeitPy
43f4c6d5205eab9cb4780ceb8799b04ce7b10acb
[ "MIT" ]
null
null
null
10/lottery.py
sukio-1024/codeitPy
43f4c6d5205eab9cb4780ceb8799b04ce7b10acb
[ "MIT" ]
null
null
null
from random import randint # 1 - 45 # 7 # 6 1 # : [1, 7, 13, 23, 31, 41, 15] # #
22.644068
67
0.589072
d7e7049f9cceb5d987f7f1050440f62419a1e6b8
1,614
py
Python
pyreach/tools/reach.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
13
2021-09-01T01:10:22.000Z
2022-03-05T10:01:52.000Z
pyreach/tools/reach.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
null
null
null
pyreach/tools/reach.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
6
2021-09-20T21:17:53.000Z
2022-03-14T18:42:48.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.938776
79
0.739777
d7e72c05c821b5b2aa9289c98ad93b19e168816c
1,487
py
Python
issue_order/migrations/0005_auto_20170211_0033.py
jiejiang/courier
6fdeaf041c77dba0f97e206adb7b0cded9674d3d
[ "Apache-2.0" ]
null
null
null
issue_order/migrations/0005_auto_20170211_0033.py
jiejiang/courier
6fdeaf041c77dba0f97e206adb7b0cded9674d3d
[ "Apache-2.0" ]
13
2020-02-12T02:56:24.000Z
2022-01-13T01:23:08.000Z
issue_order/migrations/0005_auto_20170211_0033.py
jiejiang/courier
6fdeaf041c77dba0f97e206adb7b0cded9674d3d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-02-11 00:33 from __future__ import unicode_literals from django.db import migrations, models
36.268293
193
0.615333
d7e74a16bd1d49e08dbc231924a1101d9a8cb72e
1,181
py
Python
backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
64
2019-12-30T11:24:03.000Z
2021-06-24T01:04:56.000Z
backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
465
2018-06-13T21:43:43.000Z
2022-01-04T23:33:56.000Z
backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
72
2018-12-02T19:47:03.000Z
2022-01-04T22:54:49.000Z
# Generated by Django 3.0.7 on 2020-06-18 19:21 from django.db import migrations, models import django.db.models.deletion
31.078947
175
0.589331
d7e8137c5791af611e110bf8ad7f195a10e8a8ad
776
py
Python
classes/dns.py
double-beep/SmokeDetector
2d90dd23bbe15536868b699e79d4f0551a60f092
[ "Apache-2.0", "MIT" ]
464
2015-01-03T05:57:08.000Z
2022-03-23T05:42:39.000Z
classes/dns.py
double-beep/SmokeDetector
2d90dd23bbe15536868b699e79d4f0551a60f092
[ "Apache-2.0", "MIT" ]
6,210
2015-01-03T05:37:36.000Z
2022-03-31T09:31:45.000Z
classes/dns.py
double-beep/SmokeDetector
2d90dd23bbe15536868b699e79d4f0551a60f092
[ "Apache-2.0", "MIT" ]
322
2015-01-14T05:13:06.000Z
2022-03-28T01:18:31.000Z
import dns import dns.resolver import dns.rdatatype
25.866667
71
0.594072
d7e86d3e4f86411bb690784d2bf229730c979562
8,039
py
Python
messaging/kombu_brighter/kombu_messaging.py
iancooper/RpcIsEvil
aca8d506691791d7f24fcb561fcca92a54dc3058
[ "MIT" ]
null
null
null
messaging/kombu_brighter/kombu_messaging.py
iancooper/RpcIsEvil
aca8d506691791d7f24fcb561fcca92a54dc3058
[ "MIT" ]
null
null
null
messaging/kombu_brighter/kombu_messaging.py
iancooper/RpcIsEvil
aca8d506691791d7f24fcb561fcca92a54dc3058
[ "MIT" ]
2
2020-10-08T21:08:14.000Z
2021-03-24T11:00:05.000Z
"""" File : kombu_messaging.py Author : ian Created : 09-28-2016 Last Modified By : ian Last Modified On : 09-28-2016 *********************************************************************** The MIT License (MIT) Copyright 2016 Ian Cooper <ian_hammond_cooper@yahoo.co.uk> Permission is hereby ...
40.396985
129
0.65941
d7e9f1211de6068417b958ad35db8e04d66e800a
2,185
py
Python
evaluation/lcnn/postprocess.py
mlpc-ucsd/LETR
6022fbd9df65569f4a82b1ac065bee8f26fc4ca6
[ "Apache-2.0" ]
90
2021-04-16T05:06:05.000Z
2022-03-30T03:03:47.000Z
evaluation/lcnn/postprocess.py
mlpc-ucsd/LETR
6022fbd9df65569f4a82b1ac065bee8f26fc4ca6
[ "Apache-2.0" ]
11
2021-05-06T21:02:33.000Z
2022-03-22T09:28:39.000Z
evaluation/lcnn/postprocess.py
mlpc-ucsd/LETR
6022fbd9df65569f4a82b1ac065bee8f26fc4ca6
[ "Apache-2.0" ]
14
2021-05-07T14:31:43.000Z
2022-03-18T01:32:27.000Z
import numpy as np
28.012821
73
0.430664
d7ea13a7ea555e525798ba44cfdbaf22effff83f
505
py
Python
core-python/Core_Python/com/LambdaWithFilterMapReduce.py
theumang100/tutorials-1
497f54c2adb022c316530319a168fca1c007d4b1
[ "MIT" ]
9
2020-04-23T05:24:19.000Z
2022-02-17T16:37:51.000Z
core-python/Core_Python/com/LambdaWithFilterMapReduce.py
theumang100/tutorials-1
497f54c2adb022c316530319a168fca1c007d4b1
[ "MIT" ]
5
2020-10-01T05:08:37.000Z
2020-10-12T03:18:10.000Z
core-python/Core_Python/com/LambdaWithFilterMapReduce.py
theumang100/tutorials-1
497f54c2adb022c316530319a168fca1c007d4b1
[ "MIT" ]
9
2020-04-28T14:06:41.000Z
2021-10-19T18:32:28.000Z
from functools import reduce from math import fsum n = int(input("How many number you want to enter for even and odd numbers ? : ")) lst = [] for i in range(n): j = int(input("Enter any positive number : ")) lst.append(j) evens = list(filter(lambda i: i % 2 == 0, lst)) print("Number of even numbers from list ...
31.5625
88
0.677228
d7eae4be235cae46ed85305fac6878bbc9f96d3d
3,315
py
Python
prov_interop/tests/test_comparator.py
softwaresaved/provtoolsuite-interop-test-harness
1d795802b26999897d5b3136a8245022fa13cce3
[ "MIT" ]
null
null
null
prov_interop/tests/test_comparator.py
softwaresaved/provtoolsuite-interop-test-harness
1d795802b26999897d5b3136a8245022fa13cce3
[ "MIT" ]
null
null
null
prov_interop/tests/test_comparator.py
softwaresaved/provtoolsuite-interop-test-harness
1d795802b26999897d5b3136a8245022fa13cce3
[ "MIT" ]
1
2021-12-17T10:00:11.000Z
2021-12-17T10:00:11.000Z
"""Unit tests for :mod:`prov_interop.comparator`. """ # Copyright (c) 2015 University of Southampton # # 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...
37.247191
70
0.75083
d7eb837a01bcf4d82ba4037dbb7897de0570733c
26
py
Python
tests/auctionbets/test_hello_world.py
sam-bailey/auctionbets
237f2c4d1cb2e3ba2e3194aab35ec85b7bd565f4
[ "MIT" ]
null
null
null
tests/auctionbets/test_hello_world.py
sam-bailey/auctionbets
237f2c4d1cb2e3ba2e3194aab35ec85b7bd565f4
[ "MIT" ]
4
2021-04-11T15:06:50.000Z
2021-04-11T19:11:43.000Z
tests/melvin/test_hello_world.py
sam-bailey/melvin
562bd17d84d78f54eb93b77d6aa8c72556a0a31f
[ "MIT" ]
null
null
null
print("Test hello world")
13
25
0.730769
d7ebca64e3e1b4cb30d3b721f70f2e23502dcb8a
3,564
py
Python
monai/_extensions/loader.py
tatuanb/monai_V1
41e492b61c78bb3c303f38b03fe9fdc74a3c2e96
[ "Apache-2.0" ]
2,971
2019-10-16T23:53:16.000Z
2022-03-31T20:58:24.000Z
monai/_extensions/loader.py
catherine1996cn/MONAI
ff9bbfa82763de46cbac75553e340633e3d84ecb
[ "Apache-2.0" ]
2,851
2020-01-10T16:23:44.000Z
2022-03-31T22:14:53.000Z
monai/_extensions/loader.py
catherine1996cn/MONAI
ff9bbfa82763de46cbac75553e340633e3d84ecb
[ "Apache-2.0" ]
614
2020-01-14T19:18:01.000Z
2022-03-31T14:06:14.000Z
# Copyright 2020 - 2021 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in wri...
39.164835
120
0.693603
d7ec3af0754886496ab74d63932b32e5dda81ec2
547
py
Python
resources/__init__.py
tiralinka/amazon_fires
bda8cb2a6910be17e9cbbfb4f214a2b019efd145
[ "MIT" ]
1
2021-03-08T02:40:00.000Z
2021-03-08T02:40:00.000Z
resources/__init__.py
tiralinka/amazon_fires
bda8cb2a6910be17e9cbbfb4f214a2b019efd145
[ "MIT" ]
null
null
null
resources/__init__.py
tiralinka/amazon_fires
bda8cb2a6910be17e9cbbfb4f214a2b019efd145
[ "MIT" ]
2
2021-01-17T13:51:31.000Z
2021-05-27T22:22:49.000Z
""" This package contains modules built specifically for the project in question. Below are decribed the modules and packages used in the notebooks of this project. Modules ----------- polynomials: | This module groups functions and classes for generating polynomials | whether fitting data or directly ortogonal ...
28.789474
87
0.778793
d7f03c5a45f729dea40c721a8160dc62f97f8e12
25,671
py
Python
src/squad/common.py
nptdat/qanet
d092b5484347f2f3167d162cb56eeada5c5a109e
[ "MIT" ]
12
2018-12-13T16:06:26.000Z
2020-12-07T11:39:10.000Z
src/squad/common.py
nptdat/qanet
d092b5484347f2f3167d162cb56eeada5c5a109e
[ "MIT" ]
null
null
null
src/squad/common.py
nptdat/qanet
d092b5484347f2f3167d162cb56eeada5c5a109e
[ "MIT" ]
2
2019-01-10T08:42:16.000Z
2020-08-12T07:32:20.000Z
import os from typing import List, Optional import pickle import numpy as np from utilities import augment_long_text, tokenize, tokenize_long_text, to_chars, align from config import Config as cf PAD = 0 # TODO: choose appropriate index for these special chars UNK = 1 DEFAULT = {'PAD': PAD, 'UNK': UNK} DEFAULT_C = {''...
41.271704
151
0.603794
d7f060c23ded2d452cc244af1abc7de16616e4f3
1,332
py
Python
test/test_mean_functions.py
cics-nd/gptorch
80c62a227c466bb7fa29e11263e94c41f96ff93f
[ "MIT" ]
28
2018-11-05T03:01:18.000Z
2021-04-02T18:11:05.000Z
test/test_mean_functions.py
cics-nd/gptorch
80c62a227c466bb7fa29e11263e94c41f96ff93f
[ "MIT" ]
7
2019-06-04T21:43:40.000Z
2021-11-04T04:19:26.000Z
test/test_mean_functions.py
cics-nd/gptorch
80c62a227c466bb7fa29e11263e94c41f96ff93f
[ "MIT" ]
8
2019-04-03T12:28:05.000Z
2021-12-23T10:15:34.000Z
# File: test_mean_functions.py # File Created: Saturday, 13th July 2019 3:51:40 pm # Author: Steven Atkinson (steven@atkinson.mn) import pytest import torch from gptorch import mean_functions
29.6
87
0.608859
d7f2887e18f1782d6580198e20f7cacc72ac9027
292
py
Python
elasticine/adapter.py
Drizzt1991/plasticine
be61baa88f53bdfa666d068a14f17ccc0cfe4d02
[ "MIT" ]
null
null
null
elasticine/adapter.py
Drizzt1991/plasticine
be61baa88f53bdfa666d068a14f17ccc0cfe4d02
[ "MIT" ]
null
null
null
elasticine/adapter.py
Drizzt1991/plasticine
be61baa88f53bdfa666d068a14f17ccc0cfe4d02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from elasticsearch import Elasticsearch
22.461538
73
0.660959
d7f2e97f589c36d477cdcfb9e7bf210c38f12e78
2,146
py
Python
cosmos/admin/createproject.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
1
2018-10-12T15:12:15.000Z
2018-10-12T15:12:15.000Z
cosmos/admin/createproject.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
null
null
null
cosmos/admin/createproject.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
null
null
null
""" Copyright (C) 2014 Maruf Maniruzzaman Website: http://cosmosframework.com Author: Maruf Maniruzzaman License :: OSI Approved :: MIT License """ import os import subprocess from cosmos.admin.samples import barebonedef, simpledef, angulardef, angularbasicdef, adminpaneldef if __name__ == "__main__": path ...
37.649123
147
0.613234
d7f300fca751082084b5f11135e6ffc4d5eded17
1,930
py
Python
tests/commands/mc-1.14/test_loot.py
Le0Developer/mcast
bdabd897e399ff17c734b9e02d3e1e5099674a1c
[ "MIT" ]
2
2021-12-28T14:10:13.000Z
2022-01-12T16:59:20.000Z
tests/commands/mc-1.14/test_loot.py
Le0Developer/mcast
bdabd897e399ff17c734b9e02d3e1e5099674a1c
[ "MIT" ]
11
2021-01-18T09:00:23.000Z
2021-01-29T09:29:04.000Z
tests/commands/mc-1.14/test_loot.py
Le0Developer/mcast
bdabd897e399ff17c734b9e02d3e1e5099674a1c
[ "MIT" ]
null
null
null
from mcfunction.versions.mc_1_14.loot import loot, ParsedLootCommand from mcfunction.nodes import EntityNode, PositionNode
31.129032
79
0.681347
d7f3e41ebb74525f88d4a1361289b542d0b673ce
2,475
py
Python
torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py
andrewmillspaugh/glow
d407e6171d3cacaaf64b2aae459f1c43e8ca077f
[ "Apache-2.0" ]
1
2021-06-24T14:50:19.000Z
2021-06-24T14:50:19.000Z
torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py
andrewmillspaugh/glow
d407e6171d3cacaaf64b2aae459f1c43e8ca077f
[ "Apache-2.0" ]
null
null
null
torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py
andrewmillspaugh/glow
d407e6171d3cacaaf64b2aae459f1c43e8ca077f
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import unittest import torch import torch.nn as nn from tests.utils import jitVsGlow from torch.quantization import ( DeQuantStub, QConfig, QuantStub, convert, fuse_modules, observer, prepare, ) my_qconfig...
31.730769
87
0.595556
d7f42c2ee4d4b43ecf45f119dc31feffe6b465d4
3,878
py
Python
tests/ext/test_paginator.py
Descent098/hyde
7f415402cc3e007a746eb2b5bc102281fdb415bd
[ "MIT" ]
804
2015-01-03T22:52:38.000Z
2022-02-19T08:47:54.000Z
tests/ext/test_paginator.py
Descent098/hyde
7f415402cc3e007a746eb2b5bc102281fdb415bd
[ "MIT" ]
86
2015-01-16T16:56:43.000Z
2021-10-05T05:25:25.000Z
tests/ext/test_paginator.py
Descent098/hyde
7f415402cc3e007a746eb2b5bc102281fdb415bd
[ "MIT" ]
161
2015-01-06T18:52:17.000Z
2022-02-04T21:21:54.000Z
# -*- coding: utf-8 -*- """ Use nose `$ pip install nose` `$ nosetests` """ from textwrap import dedent from hyde.generator import Generator from hyde.site import Site from fswrap import File TEST_SITE = File(__file__).parent.parent.child_folder('_test')
30.535433
68
0.623259
d7f93ee532a3eebe25752a79442fb37dbe81093d
2,162
py
Python
config.py
JackToaster/Reassuring-Parable-Generator
50a86793dfe81337c457a2ee373cfeb71af98c4a
[ "MIT" ]
47
2017-06-12T03:51:15.000Z
2021-06-15T04:59:55.000Z
config.py
bigDonJuan/Reassuring-Parable-Generator
50a86793dfe81337c457a2ee373cfeb71af98c4a
[ "MIT" ]
2
2017-07-11T18:56:06.000Z
2017-07-26T02:44:39.000Z
config.py
bigDonJuan/Reassuring-Parable-Generator
50a86793dfe81337c457a2ee373cfeb71af98c4a
[ "MIT" ]
5
2017-06-12T07:17:40.000Z
2021-03-14T00:11:50.000Z
import configparser as parser import random
30.450704
86
0.587882
d7f94eb1f89f732db0b9df4a91ff2049a0a89f89
4,326
py
Python
doc/source/EXAMPLES/mu_allsky_reproj.py
kapteyn-astro/kapteyn
f12332cfd567c7c0da40628dcfc7b297971ee636
[ "BSD-3-Clause" ]
3
2016-04-28T08:55:33.000Z
2018-07-23T18:35:58.000Z
doc/source/EXAMPLES/mu_allsky_reproj.py
kapteyn-astro/kapteyn
f12332cfd567c7c0da40628dcfc7b297971ee636
[ "BSD-3-Clause" ]
2
2020-07-23T12:28:37.000Z
2021-07-13T18:26:06.000Z
doc/source/EXAMPLES/mu_allsky_reproj.py
kapteyn-astro/kapteyn
f12332cfd567c7c0da40628dcfc7b297971ee636
[ "BSD-3-Clause" ]
3
2017-05-03T14:01:08.000Z
2020-07-23T12:23:28.000Z
import numpy from kapteyn import maputils from matplotlib.pyplot import show, figure import csv # Read some poitions from file in Comma Separated Values format # Some initializations blankcol = "#334455" # Represent undefined values by this color epsilon = 0.0000000001 figsize = (9,7) ...
41.596154
112
0.652566
d7f94f629fff6c0ac118aadeea502e8373fe6d7b
11,303
py
Python
libs/Signals.py
lionheart/TimeTracker-Linux
64405d53fd12d2593ef4879b867ff38a4d5b9ca9
[ "MIT" ]
12
2015-02-06T19:06:49.000Z
2019-09-24T17:58:17.000Z
libs/Signals.py
lionheart/TimeTracker-Linux
64405d53fd12d2593ef4879b867ff38a4d5b9ca9
[ "MIT" ]
null
null
null
libs/Signals.py
lionheart/TimeTracker-Linux
64405d53fd12d2593ef4879b867ff38a4d5b9ca9
[ "MIT" ]
6
2015-11-22T01:58:31.000Z
2019-11-04T22:56:38.000Z
import sys import gtk from datetime import datetime import gobject from threading import Thread
37.427152
153
0.654605
d7f9aad3d7bc607d82f1ebb3a981da2c6ca55952
21,622
py
Python
tests/app/main/views/test_feedback.py
alphagov-mirror/notifications-admin
04d051df6b85cf596a7d6d0f28474b04673e420a
[ "MIT" ]
null
null
null
tests/app/main/views/test_feedback.py
alphagov-mirror/notifications-admin
04d051df6b85cf596a7d6d0f28474b04673e420a
[ "MIT" ]
null
null
null
tests/app/main/views/test_feedback.py
alphagov-mirror/notifications-admin
04d051df6b85cf596a7d6d0f28474b04673e420a
[ "MIT" ]
null
null
null
from functools import partial from unittest.mock import ANY, PropertyMock import pytest from bs4 import BeautifulSoup, element from flask import url_for from freezegun import freeze_time from app.main.views.feedback import in_business_hours from app.models.feedback import ( GENERAL_TICKET_TYPE, PROBLEM_TICKET...
31.021521
117
0.668671
d7fb0bf23e6532c9112d4c611274898b7e7bac1e
3,022
py
Python
models/model.py
lyjeff/dogs-vs-cats
727c4b299ff38aa04f9e5928e8696c0afcb6f6bf
[ "MIT" ]
null
null
null
models/model.py
lyjeff/dogs-vs-cats
727c4b299ff38aa04f9e5928e8696c0afcb6f6bf
[ "MIT" ]
null
null
null
models/model.py
lyjeff/dogs-vs-cats
727c4b299ff38aa04f9e5928e8696c0afcb6f6bf
[ "MIT" ]
null
null
null
import sys import torch.nn as nn from torchsummary import summary from torchvision.models import vgg19, resnet50, densenet161, googlenet, inception_v3 from .MyCNN import MyCNN if __name__ == '__main__': # model_list= ['VGG19', 'VGG19_2', 'ResNet', 'MyCNN', 'Densenet', 'GoogleNet', 'inceptionv3'] model...
24.370968
114
0.654203
d7fc48fb5d168909d619b0248ed17c5cf0a539aa
63
py
Python
adventofcode/2020/25/crack_key/__init__.py
bneradt/toy
982e80ec98f4e951f7275e5f22cb0197f8f86c08
[ "Apache-2.0" ]
null
null
null
adventofcode/2020/25/crack_key/__init__.py
bneradt/toy
982e80ec98f4e951f7275e5f22cb0197f8f86c08
[ "Apache-2.0" ]
null
null
null
adventofcode/2020/25/crack_key/__init__.py
bneradt/toy
982e80ec98f4e951f7275e5f22cb0197f8f86c08
[ "Apache-2.0" ]
null
null
null
from .crack_key import derive_loop_size, derive_encryption_key
31.5
62
0.888889
d7fc56b54647de1ec4723b9fa66999b5bea809a7
2,324
py
Python
guitarHarmony/scale.py
fuyuan-li/Guitar-Harmony
8cd836782bb19cbf39ce4a4722ea52d7988b2cc4
[ "MIT" ]
null
null
null
guitarHarmony/scale.py
fuyuan-li/Guitar-Harmony
8cd836782bb19cbf39ce4a4722ea52d7988b2cc4
[ "MIT" ]
null
null
null
guitarHarmony/scale.py
fuyuan-li/Guitar-Harmony
8cd836782bb19cbf39ce4a4722ea52d7988b2cc4
[ "MIT" ]
null
null
null
from .interval import Interval from .note import Note
36.3125
118
0.493115
d7fff513272ef6ea7c292003102cdb722d219305
1,549
py
Python
TextAdventure.py
glors131/Portfolio1
64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb
[ "MIT" ]
null
null
null
TextAdventure.py
glors131/Portfolio1
64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb
[ "MIT" ]
null
null
null
TextAdventure.py
glors131/Portfolio1
64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb
[ "MIT" ]
null
null
null
start = '''You wake up one morning and find yourself in a big crisis. Trouble has arised and your worst fears have come true. Zoom is out to destroy the world for good. However, a castrophe has happened and now the love of your life is in danger. Which do you decide to save today?''' print(start) done = False ...
39.717949
99
0.671401
cc00205c58c037f18c599c68cbd7da80776abb99
3,141
py
Python
catkin_workspace/src/project_weather_x/scripts/weather_server.py
NarendraPatwardhan/HuskyWeatherCast
1ffadca23368a497ce7d3003806b548307bb7596
[ "MIT" ]
null
null
null
catkin_workspace/src/project_weather_x/scripts/weather_server.py
NarendraPatwardhan/HuskyWeatherCast
1ffadca23368a497ce7d3003806b548307bb7596
[ "MIT" ]
null
null
null
catkin_workspace/src/project_weather_x/scripts/weather_server.py
NarendraPatwardhan/HuskyWeatherCast
1ffadca23368a497ce7d3003806b548307bb7596
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division from project_weather_x.srv import Weather,WeatherResponse import os import rospy import numpy as np import urllib2 import cv2 import json if __name__ == "__main__": weather_server()
41.88
121
0.69914
cc00441179a1e29fdd2344705a8b2aea6af01f3f
2,261
py
Python
api/views.py
jacerong/normalesp
fd5d675fb1ccc974b40280ae9d18bafb8be39677
[ "MIT" ]
2
2017-07-12T11:37:18.000Z
2017-10-12T20:27:02.000Z
api/views.py
jacerong/normalesp
fd5d675fb1ccc974b40280ae9d18bafb8be39677
[ "MIT" ]
null
null
null
api/views.py
jacerong/normalesp
fd5d675fb1ccc974b40280ae9d18bafb8be39677
[ "MIT" ]
2
2018-06-10T01:09:24.000Z
2021-04-29T16:30:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os, re, sys import pickle from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response CURRENT_PATH = os.path.dirname(os.path.abspath(__fi...
34.257576
79
0.646617
cc0180fa1725a1c40ecec04f320fe9877adad635
654
py
Python
main.py
Answeroid/fb-harvester
74ebab2345540888ffc2e3b873069fc363218e9c
[ "Apache-2.0" ]
null
null
null
main.py
Answeroid/fb-harvester
74ebab2345540888ffc2e3b873069fc363218e9c
[ "Apache-2.0" ]
null
null
null
main.py
Answeroid/fb-harvester
74ebab2345540888ffc2e3b873069fc363218e9c
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from fb_auth import auth from logger import Logger if __name__ == '__main__': main()
27.25
96
0.721713
cc02b47da67c564590731ad9d826d475fb336807
4,022
py
Python
src/dag_simulation.py
D-Stacks/kaspad-py-explorer
75b885ab2f10bafa4f1e86b6e801033c4ae1aabd
[ "MIT" ]
6
2022-01-24T16:58:22.000Z
2022-03-14T17:10:29.000Z
src/dag_simulation.py
D-Stacks/kaspad-py-explorer
75b885ab2f10bafa4f1e86b6e801033c4ae1aabd
[ "MIT" ]
null
null
null
src/dag_simulation.py
D-Stacks/kaspad-py-explorer
75b885ab2f10bafa4f1e86b6e801033c4ae1aabd
[ "MIT" ]
1
2022-03-13T18:57:55.000Z
2022-03-13T18:57:55.000Z
import uuid import random import os import math import numpy as np import simpy import matplotlib.pyplot as plt from simulation.ghostdag import block from simulation.ghostdag.dag import select_ghostdag_k, DAG from simulation.fakes import FakeDAG from simulation.channel import Hub, Channel, PlanarTopology from simulat...
27.737931
110
0.702884
cc03f2dbb8df3eafa255b00b9aa7871fbde5777c
15,140
py
Python
web/kwmo/kwmo/controllers/skurl_teambox.py
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
web/kwmo/kwmo/controllers/skurl_teambox.py
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
web/kwmo/kwmo/controllers/skurl_teambox.py
tmbx/kas
0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc
[ "BSD-3-Clause" ]
null
null
null
from kwmo.controllers.abstract_teambox import * import time from kwmo.lib.kwmo_kcd_client import KcdClient from kwmo.lib.config import get_cached_kcd_external_conf_object from kfs_lib import * from kwmo.lib.base import init_session from kwmo.lib.kwmolib import * from kwmo.model.user import User from kwmo.model.kfs_n...
37.755611
120
0.611757
cc048c5fb136986da892240b2448b0adce46347e
1,310
py
Python
src/modules/agents/n_rnn_agent.py
Sud0x67/mrmix
4f4784e421c768509bd007e21b4455b56edc7cd2
[ "Apache-2.0" ]
4
2022-03-17T05:01:30.000Z
2022-03-17T05:09:17.000Z
src/modules/agents/n_rnn_agent.py
Sud0x67/mrmix
4f4784e421c768509bd007e21b4455b56edc7cd2
[ "Apache-2.0" ]
null
null
null
src/modules/agents/n_rnn_agent.py
Sud0x67/mrmix
4f4784e421c768509bd007e21b4455b56edc7cd2
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F import torch as th import numpy as np import torch.nn.init as init
36.388889
87
0.629771
cc05b7b2af248ade11dd6dd58ed1ebc18eeafea1
3,971
py
Python
netsav/server/server.py
Turgon37/netsav
082ed2e938e006f15820e95f920c632f0ce952a4
[ "MIT" ]
null
null
null
netsav/server/server.py
Turgon37/netsav
082ed2e938e006f15820e95f920c632f0ce952a4
[ "MIT" ]
null
null
null
netsav/server/server.py
Turgon37/netsav
082ed2e938e006f15820e95f920c632f0ce952a4
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- # This file is a part of netsav # # Copyright (c) 2014-2015 Pierre GINDRAUD # # 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...
31.023438
80
0.657517
cc05df24c5983f52047b132f8c3884d5ead3eb09
16,921
py
Python
veros/setups/global_flexible/global_flexible.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
115
2019-11-23T02:31:30.000Z
2022-03-29T12:58:30.000Z
veros/setups/global_flexible/global_flexible.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
207
2019-11-21T13:21:22.000Z
2022-03-31T23:36:09.000Z
veros/setups/global_flexible/global_flexible.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
21
2020-01-28T13:13:39.000Z
2022-02-02T13:46:33.000Z
#!/usr/bin/env python import os import h5netcdf import scipy.ndimage from veros import veros_routine, veros_kernel, KernelOutput, VerosSetup, runtime_settings as rs, runtime_state as rst from veros.variables import Variable, allocate from veros.core.utilities import enforce_boundaries from veros.core.operators import...
40.577938
120
0.598428
cc05fe3911cd4a15db68fbad7e204898aea18d54
2,000
py
Python
gamma-correction/gamma_correction.py
svinkapeppa/image_analysis
1b19f4646e784cac30a9fdabc8404fd5e6057996
[ "MIT" ]
null
null
null
gamma-correction/gamma_correction.py
svinkapeppa/image_analysis
1b19f4646e784cac30a9fdabc8404fd5e6057996
[ "MIT" ]
null
null
null
gamma-correction/gamma_correction.py
svinkapeppa/image_analysis
1b19f4646e784cac30a9fdabc8404fd5e6057996
[ "MIT" ]
null
null
null
import argparse import os import cv2 import numpy as np if __name__ == '__main__': parser = argparse.ArgumentParser(description='Perform gamma correction.') parser.add_argument('source_path', metavar='source_path', type=str, help='Path to the original image.') parser.add_argument...
39.215686
91
0.675
cc06737fd80122fed31e5f3c512bcb4a1a2e717e
2,154
py
Python
src/cirrus_ngs/deprecated/dnaSeq/WGSPipelineManager.py
miko-798/cirrus-ngs
2c005f0fe29e298652ed2164e08ada75e908229b
[ "MIT" ]
1
2018-03-31T18:20:27.000Z
2018-03-31T18:20:27.000Z
src/cirrus_ngs/deprecated/dnaSeq/WGSPipelineManager.py
miko-798/cirrus-ngs
2c005f0fe29e298652ed2164e08ada75e908229b
[ "MIT" ]
null
null
null
src/cirrus_ngs/deprecated/dnaSeq/WGSPipelineManager.py
miko-798/cirrus-ngs
2c005f0fe29e298652ed2164e08ada75e908229b
[ "MIT" ]
null
null
null
__author__ = 'Guorong Xu<g1xu@ucsd.edu>' import os from util import YamlFileMaker from util import QstatParser from cfnCluster import ConnectionManager import sys workspace = "/shared/workspace/Pipelines/" #log_dir = "/shared/workspace/data_archive/DNASeq/{}/logs" log_dir = "/shared/workspace/logs/DNASeq/{}" ## exec...
35.311475
115
0.724234
cc0b0aa90c189510f88d632e9c48035e5079064b
960
py
Python
code/12_paketierung/intents/functions/location/intent_location.py
padmalcom/AISpeechAssistant
b7501a23a8f513acb5043f3c7bb06df129bdc2cc
[ "Apache-2.0" ]
1
2021-09-08T09:21:16.000Z
2021-09-08T09:21:16.000Z
code/12_paketierung/intents/functions/location/intent_location.py
padmalcom/AISpeechAssistant
b7501a23a8f513acb5043f3c7bb06df129bdc2cc
[ "Apache-2.0" ]
null
null
null
code/12_paketierung/intents/functions/location/intent_location.py
padmalcom/AISpeechAssistant
b7501a23a8f513acb5043f3c7bb06df129bdc2cc
[ "Apache-2.0" ]
2
2022-02-06T09:54:40.000Z
2022-03-01T07:52:51.000Z
from loguru import logger from chatbot import register_call import global_variables import random import os import yaml import geocoder import constants
30.967742
109
0.760417
cc0ba0fc63266122471cb93b1a794001da14190a
531
py
Python
sagemaker/ssedata.py
cleveranjos/Rapid-ML-Gateway
10a14abfce3351791331642c47eddfbf622e76d2
[ "MIT" ]
147
2017-06-26T11:25:12.000Z
2022-03-21T22:59:25.000Z
sagemaker/ssedata.py
cleveranjos/Rapid-ML-Gateway
10a14abfce3351791331642c47eddfbf622e76d2
[ "MIT" ]
28
2017-06-30T14:00:36.000Z
2021-03-08T14:13:57.000Z
sagemaker/ssedata.py
cleveranjos/Rapid-ML-Gateway
10a14abfce3351791331642c47eddfbf622e76d2
[ "MIT" ]
123
2017-06-27T14:08:18.000Z
2022-01-05T06:26:31.000Z
from enum import Enum
15.617647
47
0.585687
cc0d3e51514d98fa6f88a3ee098b80505c67d4d5
10,188
py
Python
ferminet/utils/system.py
shishaochen/ferminet
319cfd2a19c243a287e6e252ef590329fdbd15ea
[ "Apache-2.0" ]
469
2020-10-19T16:40:06.000Z
2022-03-31T01:43:19.000Z
ferminet/utils/system.py
shishaochen/ferminet
319cfd2a19c243a287e6e252ef590329fdbd15ea
[ "Apache-2.0" ]
35
2020-11-20T04:31:59.000Z
2022-03-28T08:34:27.000Z
ferminet/utils/system.py
shishaochen/ferminet
319cfd2a19c243a287e6e252ef590329fdbd15ea
[ "Apache-2.0" ]
86
2020-10-19T19:57:59.000Z
2022-03-30T07:35:17.000Z
# Lint as: python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # #...
37.594096
80
0.641441
cc0fa341d500758a4666f87a2715835852c484f0
12,526
py
Python
vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
{'application':{'type':'Application', 'name':'codeEditor', 'backgrounds': [ {'type':'Background', 'name':'bgCodeEditor', 'title':'Code Editor R PythonCard Application', 'size':(400, 300), 'statusBar':1, 'visible':0, 'style':['resizeable'], ...
35.284507
228
0.345042
cc126dbbfecd1ff026b9c6b831a847190b8423eb
911
py
Python
unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
null
null
null
unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
2
2021-11-01T23:19:42.000Z
2021-11-22T23:41:39.000Z
unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
2
2021-11-18T13:14:22.000Z
2022-03-16T07:52:57.000Z
from reinvent_scoring.scoring.diversity_filters.curriculum_learning.update_diversity_filter_dto import \ UpdateDiversityFilterDTO from unittest_reinvent.diversity_filter_tests.test_murcko_scaffold_base import BaseMurckoScaffoldFilter from unittest_reinvent.diversity_filter_tests.fixtures import tanimoto_scaffold_fi...
45.55
104
0.815587
cc14238d3a5df01ff014ec40e1bf90f7a196fccb
18,170
py
Python
python/examples/kaitai/msgpack.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
1
2021-04-05T15:01:23.000Z
2021-04-05T15:01:23.000Z
python/examples/kaitai/msgpack.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
python/examples/kaitai/msgpack.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
1
2021-06-10T04:27:19.000Z
2021-06-10T04:27:19.000Z
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version from .kaitaistruct import __version__ as ks_version, KaitaiStruct, KaitaiStream, BytesIO import collections if parse_version(ks_version) < parse_version('0.7'): raise Excepti...
38.907923
256
0.616346
cc14824a67115e3294372203e71ff2b7a1d285c1
807
py
Python
awx/main/tests/unit/test_signals.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
11,396
2017-09-07T04:56:02.000Z
2022-03-31T13:56:17.000Z
awx/main/tests/unit/test_signals.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
11,046
2017-09-07T09:30:46.000Z
2022-03-31T20:28:01.000Z
awx/main/tests/unit/test_signals.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
3,592
2017-09-07T04:14:31.000Z
2022-03-31T23:53:09.000Z
from awx.main import signals
42.473684
78
0.754647
cc17e63865e94c50206dc38b7367c698252eecb5
23
py
Python
FileUtils/__init__.py
cognitiveqe/cqepyutils
7d83f2bbe667294802c2ca9f20a42e1fa3e635d5
[ "MIT" ]
null
null
null
FileUtils/__init__.py
cognitiveqe/cqepyutils
7d83f2bbe667294802c2ca9f20a42e1fa3e635d5
[ "MIT" ]
null
null
null
FileUtils/__init__.py
cognitiveqe/cqepyutils
7d83f2bbe667294802c2ca9f20a42e1fa3e635d5
[ "MIT" ]
null
null
null
__all__ = ['FileUtils']
23
23
0.695652
cc1c1df156994d9392bcac044186c4c4a494ce33
7,617
py
Python
src/LoadData.py
josepquintana/HackUPC-2019
ce962daf71464d3c12280a46b4691a21d3ca1bfa
[ "MIT" ]
null
null
null
src/LoadData.py
josepquintana/HackUPC-2019
ce962daf71464d3c12280a46b4691a21d3ca1bfa
[ "MIT" ]
null
null
null
src/LoadData.py
josepquintana/HackUPC-2019
ce962daf71464d3c12280a46b4691a21d3ca1bfa
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from pathlib import Path from sklearn.preprocessing import MinMaxScaler from sklearn.model_selection import train_test_split
46.163636
118
0.595641
cc1e9331027ec43231a6a77d60167ad68f144c01
471
py
Python
src/main/python/bayou/experiments/predictMethods/buildQueryJSONs/cleanup.py
rohan2606/bayou
eca7a6628aa5942aeb4b57f684013c7e15ccb171
[ "Apache-2.0" ]
1
2018-02-19T21:48:06.000Z
2018-02-19T21:48:06.000Z
src/main/python/bayou/experiments/predictMethods/buildQueryJSONs/cleanup.py
rohan2606/bayou
eca7a6628aa5942aeb4b57f684013c7e15ccb171
[ "Apache-2.0" ]
null
null
null
src/main/python/bayou/experiments/predictMethods/buildQueryJSONs/cleanup.py
rohan2606/bayou
eca7a6628aa5942aeb4b57f684013c7e15ccb171
[ "Apache-2.0" ]
1
2019-02-07T20:26:36.000Z
2019-02-07T20:26:36.000Z
import os import shutil import sys
19.625
56
0.605096
cc206b35fef0c258a968de43d46a4569a21a39b6
1,577
py
Python
videoanalyst/model/builder.py
JIANG-CX/data_labeling
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
[ "MIT" ]
1
2021-05-24T10:08:51.000Z
2021-05-24T10:08:51.000Z
videoanalyst/model/builder.py
JIANG-CX/data_labeling
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
[ "MIT" ]
null
null
null
videoanalyst/model/builder.py
JIANG-CX/data_labeling
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* from typing import Dict from yacs.config import CfgNode from .backbone import builder as backbone_builder from .loss import builder as loss_builder from .task_head import builder as head_builder from .task_model import builder as task_builder def build_model( task: str, cfg: C...
25.435484
77
0.615726
cc20da7407be0989d712096316aafb2ddf48ad9c
8,221
py
Python
tx1_pcie/demo/tx1_pcie/site_scons/xst_utils.py
CospanDesign/nysa-tx1-pcie-platform
d1b6148c6e00cae84759c9e0d56858354a901780
[ "MIT" ]
15
2015-08-31T20:50:39.000Z
2022-03-13T08:56:39.000Z
tx1_pcie/demo/tx1_pcie/site_scons/xst_utils.py
CospanDesign/nysa-tx1-pcie-platform
d1b6148c6e00cae84759c9e0d56858354a901780
[ "MIT" ]
5
2015-05-02T16:48:57.000Z
2017-06-15T16:25:34.000Z
tx1_pcie/demo/tx1_pcie/site_scons/xst_utils.py
CospanDesign/nysa-tx1-pcie-platform
d1b6148c6e00cae84759c9e0d56858354a901780
[ "MIT" ]
6
2016-09-02T16:02:13.000Z
2021-06-29T22:29:45.000Z
#Distributed under the MIT licesnse. #Copyright (c) 2013 Cospan Design (dave.mccoy@cospandesign.com) #Permission is hereby granted, free of charge, to any person obtaining a copy of #this software and associated documentation files (the "Software"), to deal in #the Software without restriction, including without limit...
29.256228
99
0.665612
cc213e43355eccd688ab41131dff02e635716ed2
209
py
Python
samples/python/13.core-bot/envs/chat_bot_02/Lib/site-packages/datatypes_date_time/timex_relative_convert.py
luzeunice/BotBuilder-Samples
b62be4e8863125a567902b736b7b74313d9d4f28
[ "MIT" ]
null
null
null
samples/python/13.core-bot/envs/chat_bot_02/Lib/site-packages/datatypes_date_time/timex_relative_convert.py
luzeunice/BotBuilder-Samples
b62be4e8863125a567902b736b7b74313d9d4f28
[ "MIT" ]
null
null
null
samples/python/13.core-bot/envs/chat_bot_02/Lib/site-packages/datatypes_date_time/timex_relative_convert.py
luzeunice/BotBuilder-Samples
b62be4e8863125a567902b736b7b74313d9d4f28
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License.
23.222222
59
0.746411
cc216b40493d6634149864a1b4ffd4dfaabc801a
9,740
py
Python
src/levitas/lib/daemonize.py
tobi-weber/levitas
b14fb4135839611ace652b9f43cbe5a7fa5e3b66
[ "Apache-2.0" ]
1
2018-02-27T00:28:29.000Z
2018-02-27T00:28:29.000Z
src/levitas/lib/daemonize.py
tobi-weber/levitas
b14fb4135839611ace652b9f43cbe5a7fa5e3b66
[ "Apache-2.0" ]
null
null
null
src/levitas/lib/daemonize.py
tobi-weber/levitas
b14fb4135839611ace652b9f43cbe5a7fa5e3b66
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2010-2014 Tobias Weber <tobi-weber@gmx.de> # # 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 ...
32.575251
88
0.530698
cc22117e8552bbc6f7598294280399755ea7e496
1,255
py
Python
bootstrapvz/common/fs/virtualharddisk.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
bootstrapvz/common/fs/virtualharddisk.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
bootstrapvz/common/fs/virtualharddisk.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
from .qemuvolume import QEMUVolume from ..tools import log_check_call import math
44.821429
163
0.658964
cc22c0eacdbe6c82e058120ed038bae92274d066
2,180
py
Python
tests/test_flight_path.py
flyinactor91/AVWX-Engine
0d3ce2c6e962d2a3ec9db711caf9d1c94658fa80
[ "MIT" ]
30
2015-09-08T20:38:41.000Z
2019-03-10T07:10:47.000Z
tests/test_flight_path.py
sthagen/avwx-engine
af235b9d26e5495f04076ed5499cf8cd131d4efc
[ "MIT" ]
5
2015-08-12T15:50:07.000Z
2019-04-16T00:42:12.000Z
tests/test_flight_path.py
sthagen/avwx-engine
af235b9d26e5495f04076ed5499cf8cd131d4efc
[ "MIT" ]
11
2016-01-17T10:10:29.000Z
2019-01-13T17:55:36.000Z
""" Flight path tests """ from typing import List, Union from avwx import flight_path from avwx.structs import Coord FLIGHT_PATHS = ( ( [(12.34, -12.34, "12.34,-12.34"), (-43.21, 43.21, "-43.21,43.21")], [(12.34, -12.34, "12.34,-12.34"), (-43.21, 43.21, "-43.21,43.21")], ), ( [(12....
29.459459
82
0.444037
cc2324d77ef33a73ea326b4da126a5dc8ddd8995
312
py
Python
reports/api/urls.py
elishaking/i-witness
09fe9f6db04fb64440c306e714a5233db31db23e
[ "Apache-2.0" ]
null
null
null
reports/api/urls.py
elishaking/i-witness
09fe9f6db04fb64440c306e714a5233db31db23e
[ "Apache-2.0" ]
2
2021-06-08T20:53:14.000Z
2021-06-10T22:31:47.000Z
reports/api/urls.py
elishaking/i-witness
09fe9f6db04fb64440c306e714a5233db31db23e
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ # report route url(r'^create/$', views.ReportCreateAPIView.as_view(), name='create'), url(r'^$', views.ReportListAPIView.as_view(), name='list'), url(r'^(?P<pk>\d+)$', views.ReportRetrieveAPIView.as_view(), name='detail'), ]
28.363636
80
0.663462
cc254320a120806976fb2027ee1ac70ba2ebda77
42
py
Python
GitSearch.py
inishchith/GithubTools
6b346d063bb727045407498d6710ee2680ad4d8f
[ "MIT" ]
1
2017-05-23T11:23:09.000Z
2017-05-23T11:23:09.000Z
GitSearch.py
inishchith/GithubTools
6b346d063bb727045407498d6710ee2680ad4d8f
[ "MIT" ]
null
null
null
GitSearch.py
inishchith/GithubTools
6b346d063bb727045407498d6710ee2680ad4d8f
[ "MIT" ]
null
null
null
# Find file contents via various criteria.
42
42
0.809524
cc2803656376a925b69dd8c627bef259b6c0a2d2
666
py
Python
apysc/_event/stop_propagation_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
apysc/_event/stop_propagation_interface.py
simon-ritchie/apysc
61d0078e5f3b702eaacceedfbe6e5cafe48f8033
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
apysc/_event/stop_propagation_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
"""Class implementation for the stop_propagation interface. """ from apysc._type.variable_name_interface import VariableNameInterface
31.714286
72
0.630631
cc284745b925e21a5f5e32898b37c6a8ab358a00
21,312
py
Python
src/falconpy/custom_ioa.py
mccbryan3/falconpy
ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f
[ "Unlicense" ]
null
null
null
src/falconpy/custom_ioa.py
mccbryan3/falconpy
ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f
[ "Unlicense" ]
null
null
null
src/falconpy/custom_ioa.py
mccbryan3/falconpy
ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f
[ "Unlicense" ]
null
null
null
""" _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | |: 1 | |::.. ...
50.742857
119
0.555602
cc28f5fd9c4c6567c22450f12618546e4bf5cda0
233
py
Python
Algorithms/Implementation/Utopian_Tree.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
1
2017-12-02T14:23:44.000Z
2017-12-02T14:23:44.000Z
Algorithms/Implementation/Utopian_Tree.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
Algorithms/Implementation/Utopian_Tree.py
gauthamkrishna-g/HackerRank
472d7a56fc1c1c4f8f03fcabc09d08da4000efde
[ "MIT" ]
null
null
null
#!/bin/python3 h = 0 t = int(input().strip()) for a0 in range(t): n = int(input().strip()) if n%2 == 1: h = 2 ** (int(n/2) + 2) - 2 elif n%2 == 0: h = 2 ** (int(n/2) + 1) - 1 print(h)
23.3
36
0.381974