hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
487c49f921ee4340fdfc140e8ff73bccf0d40cf6
3,273
py
Python
test/broken_test_log.py
Brimizer/python-ant
2b99693b4754156d401a0bd90e02357e8358c1f5
[ "MIT" ]
null
null
null
test/broken_test_log.py
Brimizer/python-ant
2b99693b4754156d401a0bd90e02357e8358c1f5
[ "MIT" ]
null
null
null
test/broken_test_log.py
Brimizer/python-ant
2b99693b4754156d401a0bd90e02357e8358c1f5
[ "MIT" ]
1
2019-01-11T22:22:06.000Z
2019-01-11T22:22:06.000Z
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2011, Martín Raúl Villalba # # 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 So...
33.397959
78
0.633364
1,890
0.577099
0
0
0
0
0
0
1,419
0.433282
487d11f426857e94a16bf2d204d4f9c9755beb01
3,181
py
Python
python/GafferSceneUI/LightToCameraUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
561
2016-10-18T04:30:48.000Z
2022-03-30T06:52:04.000Z
python/GafferSceneUI/LightToCameraUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
1,828
2016-10-14T19:01:46.000Z
2022-03-30T16:07:19.000Z
python/GafferSceneUI/LightToCameraUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
120
2016-10-18T15:19:13.000Z
2021-12-20T16:28:23.000Z
########################################################################## # # Copyright (c) 2016, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
33.840426
155
0.690663
0
0
0
0
0
0
0
0
2,647
0.832128
487fc233ae954bd5e3c1f681b3650b436f4025ac
2,678
py
Python
eccProg.py
ganey/hm-gwmfr
c931113185a222d6c94c6a2679d39027de6f192f
[ "MIT" ]
1
2021-06-18T02:57:19.000Z
2021-06-18T02:57:19.000Z
eccProg.py
ganey/hm-gwmfr
c931113185a222d6c94c6a2679d39027de6f192f
[ "MIT" ]
9
2021-03-04T10:41:52.000Z
2021-10-18T15:14:37.000Z
eccProg.py
ganey/hm-gwmfr
c931113185a222d6c94c6a2679d39027de6f192f
[ "MIT" ]
4
2021-02-24T10:03:31.000Z
2021-07-09T17:33:59.000Z
#!/usr/bin/env python3 from time import sleep import logging import os import subprocess print("Nebra ECC Tool") preTestFail = 0 afterTestFail = 0 ECC_SUCCESSFUL_TOUCH_FILEPATH = "/var/data/gwmfr_ecc_provisioned" logging.basicConfig(level=os.environ.get("LOGLEVEL", "DEBUG")) def record_successful_provision(): ...
33.898734
121
0.68596
0
0
0
0
0
0
0
0
1,116
0.416729
4880ecda66e3c2c409be46833975599cd4502de6
641
py
Python
doc/tutorial/getargs.py
OliverTED/doit
a6f75f312390aba352c3f00680cd32609323dbc2
[ "MIT" ]
null
null
null
doc/tutorial/getargs.py
OliverTED/doit
a6f75f312390aba352c3f00680cd32609323dbc2
[ "MIT" ]
1
2018-10-02T19:28:08.000Z
2018-10-02T19:28:08.000Z
doc/tutorial/getargs.py
smheidrich/doit
1f9c3c755c96508ca2b1b2668f102f9d2da9c614
[ "MIT" ]
null
null
null
DOIT_CONFIG = {'default_tasks': ['use_cmd', 'use_python']} def task_compute(): def comp(): return {'x':5,'y':10, 'z': 20} return {'actions': [(comp,)]} def task_use_cmd(): return {'actions': ['echo x=%(x)s, z=%(z)s'], 'getargs': {'x': ('compute', 'x'), 'z': ('compute...
24.653846
58
0.452418
0
0
0
0
0
0
0
0
223
0.347894
48823dc4e90bc1cf4bd23d8ad54e5dbd5c6870e3
4,022
py
Python
examples/run_unlinkable.py
danesjenovdan/reference_implementation
8374c45dd05a2e279bd5e53800aa237f64684a2b
[ "Apache-2.0" ]
1
2020-11-09T21:07:00.000Z
2020-11-09T21:07:00.000Z
examples/run_unlinkable.py
ac-ctrl/reference_implementation
e07f10447eaab9853e8f45a5d06e98741e265f5f
[ "Apache-2.0" ]
null
null
null
examples/run_unlinkable.py
ac-ctrl/reference_implementation
e07f10447eaab9853e8f45a5d06e98741e265f5f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Simple example/demo of the unlinkable DP-3T design This demo simulates some interactions between two phones, represented by the contact tracing modules, and then runs contact tracing. """ __copyright__ = """ Copyright 2020 EPFL Licensed under the Apache License, Version 2.0 (the "...
30.014925
85
0.680507
0
0
0
0
0
0
0
0
1,922
0.477872
4883b0040e8dc5ec47ef273298b6d359bf3bcacc
2,409
py
Python
EasyRecycle/tests/unittests/core/views/test_BecomeCommercialAPIView.py
YuriyLisovskiy/EasyRecycle
49f1b84931145a3e95224e411d22ed7701e5bfe0
[ "MIT" ]
null
null
null
EasyRecycle/tests/unittests/core/views/test_BecomeCommercialAPIView.py
YuriyLisovskiy/EasyRecycle
49f1b84931145a3e95224e411d22ed7701e5bfe0
[ "MIT" ]
null
null
null
EasyRecycle/tests/unittests/core/views/test_BecomeCommercialAPIView.py
YuriyLisovskiy/EasyRecycle
49f1b84931145a3e95224e411d22ed7701e5bfe0
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework import status from rest_framework.test import force_authenticate from rest_framework_simplejwt.state import User from core.views import DeactivateSelfAPIView, BecomeCommercialAPIView from tests.unittests.common import APIFactoryTestCase class BecomeCommercialAPITes...
42.263158
86
0.71565
2,116
0.878373
0
0
0
0
0
0
264
0.109589
48847182743877e2207fafdce5ef0b412ca3a606
55,929
py
Python
colour/colorimetry/tests/test_spectrum.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/colorimetry/tests/test_spectrum.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/colorimetry/tests/test_spectrum.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
"""Defines the unit tests for the :mod:`colour.colorimetry.spectrum` module.""" import colour import numpy as np import unittest import scipy from distutils.version import LooseVersion from colour.algebra import CubicSplineInterpolator from colour.colorimetry.spectrum import SPECTRAL_SHAPE_DEFAULT from colour.colorim...
27.687624
87
0.63248
23,032
0.411808
0
0
0
0
0
0
6,791
0.121422
4884cbedf429b58f568f4a96e1328fccb2ba0bb3
5,483
py
Python
experiments/src_exp/data_experimentation/test_clean_store_delete_playground.py
earny-joe/CvDisinfo-Detect
722b07ef2820759fce8e917ffba6654ac5611c23
[ "MIT" ]
4
2020-04-27T04:45:53.000Z
2022-03-28T10:50:07.000Z
experiments/src_exp/data_experimentation/test_clean_store_delete_playground.py
earny-joe/CvDisinfo-Detect
722b07ef2820759fce8e917ffba6654ac5611c23
[ "MIT" ]
16
2020-04-12T19:09:10.000Z
2022-03-12T00:38:18.000Z
experiments/src_exp/data_experimentation/test_clean_store_delete_playground.py
earny-joe/CvDisinfo-Detect
722b07ef2820759fce8e917ffba6654ac5611c23
[ "MIT" ]
1
2020-07-19T23:15:05.000Z
2020-07-19T23:15:05.000Z
# Comment import pandas as pd import re from google.cloud import storage from pathlib import Path def load_data(filename, chunksize=10000): good_columns = [ 'created_at', 'entities', 'favorite_count', 'full_text', 'id_str', 'in_reply_to_screen_name', 'in_rep...
31.331429
79
0.61718
0
0
0
0
0
0
0
0
1,739
0.317162
4885063d81ad224f010848be20c3a4db6e1c984c
18,988
py
Python
codes/correl.py
KurmasanaWT/community
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
[ "MIT" ]
null
null
null
codes/correl.py
KurmasanaWT/community
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
[ "MIT" ]
null
null
null
codes/correl.py
KurmasanaWT/community
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
[ "MIT" ]
null
null
null
from dash import dcc, html import dash_bootstrap_components as dbc from dash.dependencies import Input, Output, State import numpy as np import pandas as pd import plotly.io as pio import plotly.graph_objects as go from plotly.subplots import make_subplots import yfinance as yf import math from sklearn.linear_model imp...
39.394191
186
0.555825
0
0
0
0
14,354
0.753412
0
0
6,155
0.323063
488664091cf5f88c9226ceceac51ef1864450390
1,459
py
Python
custom_components/blitzortung/geohash_utils.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
163
2020-08-01T12:19:46.000Z
2022-03-28T09:04:57.000Z
custom_components/blitzortung/geohash_utils.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
81
2020-08-04T00:28:46.000Z
2022-03-29T15:48:51.000Z
custom_components/blitzortung/geohash_utils.py
Nag94/HomeAssistantConfig
d5f806e05be8d92bf487c58322d20cd9b08c6b98
[ "Unlicense" ]
28
2020-08-02T12:02:24.000Z
2022-03-22T00:07:34.000Z
import math from collections import namedtuple from . import geohash Box = namedtuple("Box", ["s", "w", "n", "e"]) def geohash_bbox(gh): ret = geohash.bbox(gh) return Box(ret["s"], ret["w"], ret["n"], ret["e"]) def bbox(lat, lon, radius): lat_delta = radius * 360 / 40000 lon_delta = lat_delta / ma...
24.728814
87
0.607265
0
0
0
0
0
0
0
0
29
0.019877
4887385245fd69a9bed6f6ead371a6a688979596
7,398
py
Python
deepmask/models/DeepMask.py
TJUMMG/SiamDMU
728ba1333b8d600a8b238a7d29901a01b653c33d
[ "Apache-2.0" ]
3
2021-08-25T01:51:04.000Z
2022-03-04T06:30:32.000Z
deepmask/models/DeepMask.py
TJUMMG/SiamDMU
728ba1333b8d600a8b238a7d29901a01b653c33d
[ "Apache-2.0" ]
null
null
null
deepmask/models/DeepMask.py
TJUMMG/SiamDMU
728ba1333b8d600a8b238a7d29901a01b653c33d
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torchvision from collections import namedtuple Config = namedtuple('Config', ['iSz', 'oSz', 'gSz']) default_config = Config(iSz=160, oSz=56, gSz=112) class Reshape(nn.Module): def __init__(self, oSz): super(Reshape, self).__init__() self.oSz = oSz de...
40.42623
98
0.577994
4,967
0.671398
0
0
0
0
0
0
831
0.112328
488892bb03ecb663538dd964ad7c41d6e64946b1
363
py
Python
phi.py
filiptronicek/constants
404b6dbff33cff006d8f38ff08f6a4c2eaa19cdf
[ "MIT" ]
null
null
null
phi.py
filiptronicek/constants
404b6dbff33cff006d8f38ff08f6a4c2eaa19cdf
[ "MIT" ]
null
null
null
phi.py
filiptronicek/constants
404b6dbff33cff006d8f38ff08f6a4c2eaa19cdf
[ "MIT" ]
null
null
null
nums = [0,1] def calcFi(): n1 = nums[-2] n2 = nums[-1] sM = n1 + n2 phi = sM/n2 nums.append(sM) return (phi) for i in range(45): if i % 15 == 0 or i == 44: phi = calcFi() print(phi) if i == 44: with open("outputs/phi.txt", "w") as f: f...
17.285714
51
0.429752
0
0
0
0
0
0
0
0
20
0.055096
48891373f826c5ea6da77e9ee603e89703e2f555
3,657
py
Python
var_gp/datasets.py
uber-research/var-gp
1fc3935a84ff58ac529361c53c98e01338244062
[ "Apache-2.0" ]
11
2020-07-07T12:31:46.000Z
2021-04-15T13:38:35.000Z
var_gp/datasets.py
thangbui/var-gp
c445bb5f3b961d179c6741227200329a89517d91
[ "Apache-2.0" ]
1
2021-02-27T20:46:27.000Z
2021-04-22T16:48:10.000Z
var_gp/datasets.py
uber-research/var-gp
1fc3935a84ff58ac529361c53c98e01338244062
[ "Apache-2.0" ]
4
2020-07-06T20:25:34.000Z
2020-08-19T15:23:40.000Z
import os import glob import torch import numpy as np # from PIL import Image, UnidentifiedImageError from torch.utils.data import Dataset from torchvision.datasets import MNIST class ToyDataset(Dataset): def __init__(self, N_K=50, K=4, X=None, Y=None): super().__init__() if X is not None: self.data,...
26.309353
95
0.618266
3,470
0.948865
0
0
89
0.024337
0
0
363
0.099262
488967f137108794225619fe7bf8270b7eb07b12
6,834
py
Python
apps/ouvertime_record/views.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
null
null
null
apps/ouvertime_record/views.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
3
2021-01-22T06:05:42.000Z
2021-02-16T10:06:36.000Z
apps/ouvertime_record/views.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
null
null
null
from django.shortcuts import render, HttpResponse from django.views.generic.list import ListView from django.views.generic.edit import UpdateView, DeleteView, CreateView from . models import OuverTimeRecord from django.contrib.auth.models import User from django.urls import reverse_lazy from django.views import View im...
29.205128
87
0.655692
3,474
0.508192
0
0
0
0
0
0
1,590
0.232592
488992b28e85b2d366e7bc829af9dec94065afc7
1,256
py
Python
second_HW/second_hw_2.py
alex123012/Bioinf_HW
c2689715a8579b2ddccbf5dd1f4aed7dd4a52baa
[ "MIT" ]
null
null
null
second_HW/second_hw_2.py
alex123012/Bioinf_HW
c2689715a8579b2ddccbf5dd1f4aed7dd4a52baa
[ "MIT" ]
null
null
null
second_HW/second_hw_2.py
alex123012/Bioinf_HW
c2689715a8579b2ddccbf5dd1f4aed7dd4a52baa
[ "MIT" ]
1
2021-04-12T11:29:27.000Z
2021-04-12T11:29:27.000Z
import unittest as ut import time class test_magick(ut.TestCase): def test_us(self): list_r = list(range(0, 100)) for i in list_r: with self.subTest(case=i): self.assertEqual(magick(i), i) def magick(x=None, start=0, stop=100): yes = ['да', 'д', 'yes', 'y', 'ye']...
20.933333
90
0.535032
202
0.154081
0
0
0
0
0
0
197
0.150267
6f7d0aa4d2bf1ce8c8c464a58fa65d15faebfee4
4,593
py
Python
research/vrgripper/episode_to_transitions.py
Xtuden-com/tensor2robot
a3674958a046de711e37445d39afd4e529d8dd09
[ "Apache-2.0" ]
1
2021-10-18T01:27:04.000Z
2021-10-18T01:27:04.000Z
research/vrgripper/episode_to_transitions.py
Xtuden-com/tensor2robot
a3674958a046de711e37445d39afd4e529d8dd09
[ "Apache-2.0" ]
null
null
null
research/vrgripper/episode_to_transitions.py
Xtuden-com/tensor2robot
a3674958a046de711e37445d39afd4e529d8dd09
[ "Apache-2.0" ]
1
2020-09-21T08:29:02.000Z
2020-09-21T08:29:02.000Z
# coding=utf-8 # Copyright 2020 The Tensor2Robot Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
34.533835
80
0.735249
0
0
0
0
3,429
0.746571
0
0
1,646
0.358371
6f7dbf265364f7b257659f2bfab6a7eebd22f8b8
44,533
py
Python
flopy/plot/map.py
mwtoews/flopy
e566845172380e3eae06981ca180923d2362ee56
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/plot/map.py
mwtoews/flopy
e566845172380e3eae06981ca180923d2362ee56
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/plot/map.py
mwtoews/flopy
e566845172380e3eae06981ca180923d2362ee56
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
import numpy as np from ..discretization import StructuredGrid, UnstructuredGrid from ..utils import geometry try: import matplotlib.pyplot as plt import matplotlib.colors from matplotlib.collections import PathCollection, LineCollection from matplotlib.path import Path except (ImportError, ModuleNotFo...
33.110037
79
0.545663
44,078
0.989783
0
0
134
0.003009
0
0
20,906
0.46945
6f7e5bc7a0c9e42e5042391f78e81e9e318258c0
9,342
py
Python
pacu/modules/rds__explore_snapshots/main.py
damienjburks/pacu
5853f9668a7d78945c40d403bf88a47101ba2b3d
[ "BSD-3-Clause" ]
1
2021-12-22T22:39:49.000Z
2021-12-22T22:39:49.000Z
pacu/modules/rds__explore_snapshots/main.py
damienjburks/pacu
5853f9668a7d78945c40d403bf88a47101ba2b3d
[ "BSD-3-Clause" ]
null
null
null
pacu/modules/rds__explore_snapshots/main.py
damienjburks/pacu
5853f9668a7d78945c40d403bf88a47101ba2b3d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse from pathlib import Path import json import random import string from botocore.exceptions import ClientError module_info = { "name": "rds__explore_snapshots", "author": "Alexander Morgenstern [email protected]", "category": "EXFIL", "one...
34.988764
515
0.650717
0
0
0
0
0
0
0
0
2,771
0.296617
6f7fca20b708629aa57b407552bb18e0a01540bc
9,846
py
Python
mechroutines/trans/_routines/lj.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
mechroutines/trans/_routines/lj.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
mechroutines/trans/_routines/lj.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
""" Executes the automation part of 1DMin """ import statistics import autofile from autorun import run_script from mechroutines.trans._routines import _geom as geom from mechroutines.trans._routines import _gather as gather from mechroutines.trans.runner import lj as lj_runner from mechlib import filesys from mechlib...
36.065934
79
0.683628
0
0
0
0
0
0
0
0
2,521
0.256043
6f801ba5e156e09ae80a405057d4699d1492e731
7,182
py
Python
barry/convert.py
jyotiska/barry
53f3b3f8c070cbc5b2d9dcadebe9f776d170b6ed
[ "MIT" ]
null
null
null
barry/convert.py
jyotiska/barry
53f3b3f8c070cbc5b2d9dcadebe9f776d170b6ed
[ "MIT" ]
null
null
null
barry/convert.py
jyotiska/barry
53f3b3f8c070cbc5b2d9dcadebe9f776d170b6ed
[ "MIT" ]
null
null
null
from exceptions import BarryFileException, BarryConversionException, BarryExportException, BarryDFException import pandas as pd import requests from StringIO import StringIO def detect_file_extension(filename): """Extract and return the extension of a file given a filename. Args: filename (str): name...
31.362445
107
0.657059
0
0
0
0
0
0
0
0
4,006
0.557783
6f812a049e2bbe774645e522bf2bfebedf410de7
451
py
Python
flaskerize/schematics/flask-api/files/{{ name }}.template/commands/seed_command.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
1
2020-11-29T13:00:48.000Z
2020-11-29T13:00:48.000Z
flaskerize/schematics/flask-api/files/{{ name }}.template/commands/seed_command.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
null
null
null
flaskerize/schematics/flask-api/files/{{ name }}.template/commands/seed_command.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
null
null
null
from flask_script import Command from app import db class SeedCommand(Command): """ Seed the DB.""" def run(self): if ( input( "Are you sure you want to drop all tables and recreate? (y/N)\n" ).lower() == "y" ): print("Dropping tables...") ...
22.55
80
0.501109
395
0.875831
0
0
0
0
0
0
131
0.290466
6f83b0761d99f7aecd9538ff15dd5acb4d03288c
118
py
Python
com/aptitute_tests/RSL.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
com/aptitute_tests/RSL.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
com/aptitute_tests/RSL.py
theeksha101/problem_solving
431c4ff224035bb98ad67ead963860329dd4c9ff
[ "MIT" ]
null
null
null
a = [2, 4, 5, 7, 8, 9] sum = 0 for i in range(len(a) - 1): if a[i] % 2 == 0: sum = sum + a[i] print(sum)
14.75
27
0.415254
0
0
0
0
0
0
0
0
0
0
6f8670b2eab9bbcfcba5a2bac0b023bbc676fc76
8,724
py
Python
plivo/rest/client.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
null
null
null
plivo/rest/client.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
10
2020-10-19T06:47:45.000Z
2021-06-25T15:41:34.000Z
plivo/rest/client.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Core client, used for all API requests. """ import os import platform from collections import namedtuple from plivo.base import ResponseObject from plivo.exceptions import (AuthenticationError, InvalidRequestError, PlivoRestError, PlivoServerError, ...
38.09607
79
0.568432
6,822
0.781981
0
0
0
0
0
0
1,262
0.144658
6f86c0ab72e5425a1aa9524504a9484391892c01
4,301
py
Python
Project2/part3/part3controller.py
tyrenyabe/CSE461
8a0ae4b4a3f41d659ff784488037583c638d8c43
[ "MIT" ]
null
null
null
Project2/part3/part3controller.py
tyrenyabe/CSE461
8a0ae4b4a3f41d659ff784488037583c638d8c43
[ "MIT" ]
null
null
null
Project2/part3/part3controller.py
tyrenyabe/CSE461
8a0ae4b4a3f41d659ff784488037583c638d8c43
[ "MIT" ]
null
null
null
# Part 3 of UWCSE's Project 3 # # based on Lab Final from UCSC's Networking Class # which is based on of_tutorial by James McCauley from pox.core import core import pox.openflow.libopenflow_01 as of from pox.lib.addresses import IPAddr, IPAddr6, EthAddr log = core.getLogger() #statically allocate a routing table for...
29.662069
86
0.670077
3,457
0.803767
0
0
0
0
0
0
1,397
0.324808
6f86e19366559629464f6c94fe703e3f9d6154c1
956
py
Python
lessons/terminal.report.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
lessons/terminal.report.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
lessons/terminal.report.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
#students exams data entries for terminal report card print("Westside Educational Complex--End Of second Terminal Report--Class-KKJA--Name:Theodora Obaa Yaa Gyarbeng") while True: student_score = float(input ("Enter the student score:")) if student_score >= 1.0 and student_score <= 39.9: print("stud...
39.833333
113
0.654812
0
0
0
0
0
0
0
0
391
0.408996
6f8acfd21a05c8bfceaaf10a028a424c71fb2404
201
py
Python
Python/ex_semanal.py
ArikBartzadok/beecrowd-challenges
ddb0453d1caa75c87c4b3ed6a40309ab99da77f2
[ "MIT" ]
null
null
null
Python/ex_semanal.py
ArikBartzadok/beecrowd-challenges
ddb0453d1caa75c87c4b3ed6a40309ab99da77f2
[ "MIT" ]
null
null
null
Python/ex_semanal.py
ArikBartzadok/beecrowd-challenges
ddb0453d1caa75c87c4b3ed6a40309ab99da77f2
[ "MIT" ]
null
null
null
n = int(input()) l = [] c = 0 for i in range(0,n): p = input() print('c -> ', c) if p in l: c += 1 l.append(p) print("Falta(m) {} pomekon(s).".format(151 - (n-c)))
12.5625
52
0.41791
0
0
0
0
0
0
0
0
32
0.159204
6f8bf885df7a7d6ca45c1dc88e7c1c7b2dc8f976
551
py
Python
util/templatetags/custom_tags.py
dvcolgan/ludumdare27
15387d1313de488ee7503189614d42245e6ae56b
[ "MIT" ]
null
null
null
util/templatetags/custom_tags.py
dvcolgan/ludumdare27
15387d1313de488ee7503189614d42245e6ae56b
[ "MIT" ]
null
null
null
util/templatetags/custom_tags.py
dvcolgan/ludumdare27
15387d1313de488ee7503189614d42245e6ae56b
[ "MIT" ]
null
null
null
from django import template from django.conf import settings from django.utils.safestring import mark_safe register = template.Library() @register.simple_tag def setting(name): return getattr(settings, name, "") #@register.filter #def format_difference(value): # number = int(value) # if number > 0: # ...
26.238095
83
0.662432
0
0
0
0
78
0.141561
0
0
324
0.588022
6f8c3e1625cd1f82b18d5c123f61e8f119682b0c
507
py
Python
Day1/day1.py
leblancpj/AoC21
12ceb0fa56245ca803708c042dc72bdefb38e298
[ "MIT" ]
null
null
null
Day1/day1.py
leblancpj/AoC21
12ceb0fa56245ca803708c042dc72bdefb38e298
[ "MIT" ]
null
null
null
Day1/day1.py
leblancpj/AoC21
12ceb0fa56245ca803708c042dc72bdefb38e298
[ "MIT" ]
null
null
null
# Given a series of input numbers, count the number of times # the values increase from one to the next. import pandas as pd # Part 1 sample = pd.read_csv(".\Day1\sample.txt", header=None, squeeze=True) input = pd.read_csv(".\Day1\input.txt", header=None, squeeze=True) #print(type(input)) ans = input.diff(1).apply(l...
28.166667
69
0.706114
0
0
0
0
0
0
0
0
200
0.394477
6f8ebcc85be160184b266c276cc0f3687216d3eb
206
py
Python
KivyTest.py
ethanmac9/GeneralTools
96d2cd38b2b5f012113c92b751cd6fdfa8e1f1df
[ "MIT" ]
1
2016-09-24T17:38:06.000Z
2016-09-24T17:38:06.000Z
KivyTest.py
ethanmac9/GeneralTools
96d2cd38b2b5f012113c92b751cd6fdfa8e1f1df
[ "MIT" ]
null
null
null
KivyTest.py
ethanmac9/GeneralTools
96d2cd38b2b5f012113c92b751cd6fdfa8e1f1df
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.uix.boxlayout import BoxLayout kivy.require('1.9.0') class GUITestApp(App): def build(self): return BoxLayout() glApp = GUITestApp() glApp.run()
17.166667
40
0.713592
70
0.339806
0
0
0
0
0
0
7
0.033981
6f8edf6b803563f114318f388210647b9924420a
11,263
py
Python
avalanche/evaluation/metrics/gpu_usage.py
aishikhar/avalanche
39c361aba1663795ed33f093ab2e15cc5792026e
[ "MIT" ]
1
2021-08-11T19:43:38.000Z
2021-08-11T19:43:38.000Z
avalanche/evaluation/metrics/gpu_usage.py
aishikhar/avalanche
39c361aba1663795ed33f093ab2e15cc5792026e
[ "MIT" ]
null
null
null
avalanche/evaluation/metrics/gpu_usage.py
aishikhar/avalanche
39c361aba1663795ed33f093ab2e15cc5792026e
[ "MIT" ]
1
2021-04-09T08:10:27.000Z
2021-04-09T08:10:27.000Z
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
29.717678
80
0.589097
8,760
0.777768
0
0
0
0
0
0
4,598
0.408239
6f8f1cd00d467ef37a750fa1bf46d98ba2fd1d86
988
py
Python
901-1000/971.flip-binary-tree-to-match-preorder-traversal.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
901-1000/971.flip-binary-tree-to-match-preorder-traversal.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
901-1000/971.flip-binary-tree-to-match-preorder-traversal.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=971 lang=python3 # # [971] Flip Binary Tree To Match Preorder Traversal # # @lc code=start # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right from collect...
25.333333
78
0.526316
645
0.652834
0
0
0
0
0
0
295
0.298583
6f8f8270104be3d27614c913a1c738aa92c207d4
5,799
py
Python
hydraulics/ifcb/classifier.py
axiom-data-science/hydraulics
15031d9694cfe1e552c260079ff60a9faa101ba2
[ "MIT" ]
1
2021-09-14T23:07:24.000Z
2021-09-14T23:07:24.000Z
hydraulics/ifcb/classifier.py
axiom-data-science/hydraulics
15031d9694cfe1e552c260079ff60a9faa101ba2
[ "MIT" ]
null
null
null
hydraulics/ifcb/classifier.py
axiom-data-science/hydraulics
15031d9694cfe1e552c260079ff60a9faa101ba2
[ "MIT" ]
null
null
null
import base64 import datetime import io import json import os import requests from collections import namedtuple from urllib.parse import urlparse import faust import numpy as np import keras_preprocessing.image as keras_img from avro import schema from confluent_kafka import avro from confluent_kafka.avro import Avr...
31.862637
113
0.682876
0
0
0
0
1,704
0.293844
1,680
0.289705
1,490
0.256941
6f8fb26b38bd837cc1990577bdd9ed4c340e3f51
1,296
py
Python
upcfcardsearch/c260.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
upcfcardsearch/c260.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
upcfcardsearch/c260.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord.utils import get class c260(commands.Cog, name="c260"): def __init__(self, bot: commands.Bot): self.bot = bot @commands.command(name='Yikilth_Lair_of_the_Abyssals', aliases=['c260', 'Abyssal_11']) async def example_embed(self, ctx): ...
56.347826
442
0.706019
1,159
0.89429
0
0
1,049
0.809414
958
0.739198
631
0.486883
6f904b06f4d8b0199476081eeaa6c6a6c588158e
98
py
Python
test_cookiecutter_ali92hm/__main__.py
ali92hm/test-cookiecutter
5fbfef57e7ea8ae8b826958cb1db21812cc8467e
[ "ISC" ]
null
null
null
test_cookiecutter_ali92hm/__main__.py
ali92hm/test-cookiecutter
5fbfef57e7ea8ae8b826958cb1db21812cc8467e
[ "ISC" ]
null
null
null
test_cookiecutter_ali92hm/__main__.py
ali92hm/test-cookiecutter
5fbfef57e7ea8ae8b826958cb1db21812cc8467e
[ "ISC" ]
null
null
null
from .cli import entrypoint if __name__ == "__main__": # pragma: no cover entrypoint.main()
19.6
46
0.693878
0
0
0
0
0
0
0
0
28
0.285714
6f9177f95c9276da027118820c1944dc489b0063
137
py
Python
backend/elasticsurgery/views/__init__.py
EDITD/ElasticSurgery
458571d48541d1ddbbfeb20e04703592e5f869e0
[ "MIT" ]
null
null
null
backend/elasticsurgery/views/__init__.py
EDITD/ElasticSurgery
458571d48541d1ddbbfeb20e04703592e5f869e0
[ "MIT" ]
27
2019-09-25T14:19:44.000Z
2022-02-12T21:39:17.000Z
backend/elasticsurgery/views/__init__.py
EDITD/ElasticSurgery
458571d48541d1ddbbfeb20e04703592e5f869e0
[ "MIT" ]
null
null
null
from flask import jsonify from ..app import app @app.route('/ping', methods=('GET',)) def get_ping(): return jsonify(ping='pong')
15.222222
37
0.671533
0
0
0
0
85
0.620438
0
0
18
0.131387
6f91ab094e27b4b2253d62e62b30b9f0a9a83bbc
1,726
py
Python
amftrack/notebooks/analysis/data_info.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
1
2021-06-10T02:51:53.000Z
2021-06-10T02:51:53.000Z
amftrack/notebooks/analysis/data_info.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
null
null
null
amftrack/notebooks/analysis/data_info.py
Cocopyth/MscThesis
60162bc779a3a668e7447b60bb9a4b2a616b8093
[ "MIT" ]
null
null
null
inst_25 = [(35,0,15),(29,0,20),(9,0,11),(9,13,35),(3,0,19),(37,0,8),(11,0,30),(19,0,25),(13,0,25),(39,0,18)] inst_bait = [(10,0,10), (14,0,11), (33,0,26),(4,2,18),(4,20,30),(39,117,137),(12,5,21),(28,0,14),(32,5,14),(32,15,44),(36,0,9),(40,0,14),(2,1,15),(2,17,35),(5,160,168),(11,158,164),(13,116,131)] inst_30 = [] ...
143.833333
656
0.551564
0
0
0
0
0
0
0
0
207
0.11993
6f92f4f38b2cf0fe2438ae66792a5537b2e53d3f
30
py
Python
version.py
iridiumcow/OoT-Randomizer
3a5d2bebb2131e593f6611bd5c062ddd6fdac8ff
[ "MIT" ]
null
null
null
version.py
iridiumcow/OoT-Randomizer
3a5d2bebb2131e593f6611bd5c062ddd6fdac8ff
[ "MIT" ]
null
null
null
version.py
iridiumcow/OoT-Randomizer
3a5d2bebb2131e593f6611bd5c062ddd6fdac8ff
[ "MIT" ]
null
null
null
__version__ = '5.2.158 f.LUM'
15
29
0.666667
0
0
0
0
0
0
0
0
15
0.5
6f93e22cf26c9a478c3691514ddab933b92e050e
280
py
Python
scripts/test_process_traj.py
hyyh28/trajectory-transformer
4a369b6d1c950c76d1792cf004644fa13040319c
[ "MIT" ]
null
null
null
scripts/test_process_traj.py
hyyh28/trajectory-transformer
4a369b6d1c950c76d1792cf004644fa13040319c
[ "MIT" ]
null
null
null
scripts/test_process_traj.py
hyyh28/trajectory-transformer
4a369b6d1c950c76d1792cf004644fa13040319c
[ "MIT" ]
null
null
null
import numpy as np import pickle expert_file = 'maze_expert.npy' imitation_agent_file = 'maze_agent.npy' with open(imitation_agent_file, 'rb') as handle: agent_data = pickle.load(handle) with open(expert_file, 'rb') as handle: expert_data = pickle.load(handle) print("OK")
31.111111
48
0.757143
0
0
0
0
0
0
0
0
45
0.160714
6f949785191c10e7a989c8350cfc26a75e30b461
3,967
py
Python
test/test_strings.py
harthur/celestial-snips-app
5dfb86002e0d109c16c8d01ee77b0e909c263270
[ "MIT" ]
1
2021-11-23T02:44:14.000Z
2021-11-23T02:44:14.000Z
test/test_strings.py
harthur/celestial-snips-app
5dfb86002e0d109c16c8d01ee77b0e909c263270
[ "MIT" ]
null
null
null
test/test_strings.py
harthur/celestial-snips-app
5dfb86002e0d109c16c8d01ee77b0e909c263270
[ "MIT" ]
null
null
null
import unittest from celestial import Celestial from strings import CelestialStrings from datetime import datetime import pytest import math class TestCelestial(unittest.TestCase): """Testing the CelestialStrings class for generating celestial answers for TTS to read aloud""" def setUp(self): ... ...
34.198276
125
0.633224
3,822
0.963448
0
0
0
0
0
0
772
0.194605
6f960fdd0b967c14a7efcefaab212681557a8931
3,290
py
Python
hiburn/config.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
8
2020-04-06T08:47:26.000Z
2021-02-23T17:10:12.000Z
hiburn/config.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
2
2020-05-14T16:59:33.000Z
2021-06-19T23:48:35.000Z
hiburn/config.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
2
2020-05-02T22:49:01.000Z
2020-05-12T02:39:26.000Z
import copy import json import logging from . import utils # ------------------------------------------------------------------------------------------------- def _update_config_by_args(config, args, prefix=""): for k, v in config.items(): arg_name = prefix + k.replace("-", "_") if isinstance(v,...
38.255814
99
0.50152
0
0
0
0
0
0
0
0
857
0.260486
6f9664a20f8e76c49fc5cef19c2bbf5957b352e2
746
py
Python
examples/4_randomized_timing.py
jonikula/pyosmo
ab2ec1d97dd3e0faf5e2b62ac7bcfc1042e60575
[ "MIT" ]
null
null
null
examples/4_randomized_timing.py
jonikula/pyosmo
ab2ec1d97dd3e0faf5e2b62ac7bcfc1042e60575
[ "MIT" ]
null
null
null
examples/4_randomized_timing.py
jonikula/pyosmo
ab2ec1d97dd3e0faf5e2b62ac7bcfc1042e60575
[ "MIT" ]
null
null
null
from osmo import Osmo import random import time class PositiveCalculator: @staticmethod def guard_something(): return True @staticmethod def step_something(): print("1. inside step") # Random wait can be added inside test step wait_ms = random.randint(200, 1000) ...
22.606061
64
0.630027
643
0.86193
0
0
601
0.80563
0
0
182
0.243968
6f985fc4f5c199385b03c83c5b2b06f32b9bac8b
3,475
py
Python
ec2/physbam/utils.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
20
2017-07-03T19:09:09.000Z
2021-09-10T02:53:56.000Z
ec2/physbam/utils.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
null
null
null
ec2/physbam/utils.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
9
2017-09-17T02:05:06.000Z
2020-01-31T00:12:01.000Z
#!/usr/bin/env python # Author: Omid Mashayekhi <[email protected]> import sys import os import subprocess import config sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) import ec2 temp_file_name = '_temp_file_' def copy_binary_file_to_hosts(ip_addresses): for ip in ip_addresse...
26.937984
97
0.636835
0
0
0
0
0
0
0
0
933
0.268489
6f9bfb5d1846d96697c801d792f6539b53696861
75
py
Python
Lista5/Lista5ex1.py
hugo-paiva/IntroducaoCienciasDaComputacao
a563f2fd5b773acbffaf4c858b86423b1130ae1f
[ "MIT" ]
null
null
null
Lista5/Lista5ex1.py
hugo-paiva/IntroducaoCienciasDaComputacao
a563f2fd5b773acbffaf4c858b86423b1130ae1f
[ "MIT" ]
null
null
null
Lista5/Lista5ex1.py
hugo-paiva/IntroducaoCienciasDaComputacao
a563f2fd5b773acbffaf4c858b86423b1130ae1f
[ "MIT" ]
null
null
null
frase = input().split() for palavra in frase: print(palavra[2], end='')
25
29
0.64
0
0
0
0
0
0
0
0
2
0.026667
6f9d6fb07fd37fbb906d2b22ed6f41821f271822
198
py
Python
ishashad.py
albusdemens/Twitter-mining-project
67a2bd651459568bb74d64dde9cd76fc7925fd32
[ "MIT" ]
null
null
null
ishashad.py
albusdemens/Twitter-mining-project
67a2bd651459568bb74d64dde9cd76fc7925fd32
[ "MIT" ]
null
null
null
ishashad.py
albusdemens/Twitter-mining-project
67a2bd651459568bb74d64dde9cd76fc7925fd32
[ "MIT" ]
null
null
null
#To run the code, write #from ishashad import ishashad #then ishashad(number) def ishashad(n): if n % sum(map(int,str(n))) == 0: print("True") else: print("False") return
18
37
0.60101
0
0
0
0
0
0
0
0
88
0.444444
6f9e12faf187ffa4348ad42a554949db236c4d07
2,393
py
Python
tests/utils/test_utils.py
OpenLMIS-Angola/superset-patchup
b20a56b274fb4b2f5f765e5d91c290a28bccf635
[ "Apache-2.0" ]
null
null
null
tests/utils/test_utils.py
OpenLMIS-Angola/superset-patchup
b20a56b274fb4b2f5f765e5d91c290a28bccf635
[ "Apache-2.0" ]
null
null
null
tests/utils/test_utils.py
OpenLMIS-Angola/superset-patchup
b20a56b274fb4b2f5f765e5d91c290a28bccf635
[ "Apache-2.0" ]
null
null
null
""" This module tests utils """ from unittest.mock import patch, MagicMock from superset_patchup.utils import get_complex_env_var, is_safe_url, is_valid_provider from superset_patchup.oauth import CustomSecurityManager class TestUtils: """ Class to test the utils module """ @patch("superset_patchup....
34.681159
86
0.662766
2,170
0.906812
0
0
1,640
0.685332
0
0
1,017
0.42499
6f9e8adaed53c25080171ad9a2dca161824d3a7c
14,215
py
Python
xitorch/_tests/test_integrate.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
xitorch/_tests/test_integrate.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
xitorch/_tests/test_integrate.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
import random import torch import numpy as np from torch.autograd import gradcheck, gradgradcheck import xitorch as xt from xitorch.integrate import quad, solve_ivp, mcquad, SQuad from xitorch._tests.utils import device_dtype_float_test ################################## quadrature ############################...
35.987342
116
0.578825
2,724
0.191629
0
0
10,673
0.750827
0
0
1,483
0.104326
6fa1472d7ffbd2b29874a36ce2b115c7eb0c4881
120
py
Python
biothings-hub/files/nde-hub/hub/dataload/sources/figshare/dumper.py
NIAID-Data-Ecosystem/nde-crawlers
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
[ "Apache-2.0" ]
null
null
null
biothings-hub/files/nde-hub/hub/dataload/sources/figshare/dumper.py
NIAID-Data-Ecosystem/nde-crawlers
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
[ "Apache-2.0" ]
null
null
null
biothings-hub/files/nde-hub/hub/dataload/sources/figshare/dumper.py
NIAID-Data-Ecosystem/nde-crawlers
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
[ "Apache-2.0" ]
null
null
null
from hub.dataload.nde import NDEFileSystemDumper class FigshareDumper(NDEFileSystemDumper): SRC_NAME = "figshare"
20
48
0.808333
68
0.566667
0
0
0
0
0
0
10
0.083333
6fa203b91e4061ab9a5aeb13af78a9c24d505f2c
785
py
Python
faiss_utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
22
2019-01-13T12:56:56.000Z
2020-11-03T01:39:20.000Z
faiss_utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
null
null
null
faiss_utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
5
2019-04-01T09:19:55.000Z
2020-05-26T14:38:06.000Z
# -*- coding: utf-8 -*- """ File Name: faiss_utils Description : faiss工具类 Author : mick.yi date: 2019/1/4 """ import faiss import numpy as np def get_index(dimension): sub_index = faiss.IndexFlatL2(dimension) index = faiss.IndexIDMap(sub_index) return index ...
21.216216
47
0.602548
0
0
0
0
0
0
0
0
315
0.387454
6fa21afd208bf7323dcf7c8f05508069120736b0
475
py
Python
relogio.py
Glightman/project_jogo_POO
c5557871f7e4a2a264c03180581cb2a6b1dec1b9
[ "MIT" ]
1
2021-05-29T23:43:36.000Z
2021-05-29T23:43:36.000Z
relogio.py
Glightman/project_jogo_POO
c5557871f7e4a2a264c03180581cb2a6b1dec1b9
[ "MIT" ]
null
null
null
relogio.py
Glightman/project_jogo_POO
c5557871f7e4a2a264c03180581cb2a6b1dec1b9
[ "MIT" ]
2
2021-06-01T01:36:01.000Z
2021-06-01T01:36:59.000Z
class Relogio: def __init__(self): self.horas = 6 self.minutos = 0 self.dia = 1 def __str__(self): return f"{self.horas:02d}:{self.minutos:02d} do dia {self.dia:02d}" def avancaTempo(self, minutos): self.minutos += minutos while(self.minutos >= 60):...
23.75
75
0.492632
472
0.993684
0
0
0
0
0
0
60
0.126316
6fa2447d022693958e9639f974d13fb89a57e078
3,201
py
Python
custom/logistics/api.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2017-02-10T03:14:51.000Z
2017-02-10T03:14:51.000Z
custom/logistics/api.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
custom/logistics/api.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
import requests from custom.api.utils import EndpointMixin class MigrationException(Exception): pass class LogisticsEndpoint(EndpointMixin): models_map = {} def __init__(self, base_uri, username, password): self.base_uri = base_uri.rstrip('/') self.username = username self.passw...
41.038462
108
0.650109
3,136
0.979694
193
0.060294
0
0
0
0
319
0.099656
6fa2c35d5d796a2e58e703cd256e4f54f2acff9f
432
py
Python
users/migrations/0004_auto_20191028_2154.py
icnmtrx/classified
c9515352e046293dacd66ba28cb32ae378edf832
[ "MIT" ]
null
null
null
users/migrations/0004_auto_20191028_2154.py
icnmtrx/classified
c9515352e046293dacd66ba28cb32ae378edf832
[ "MIT" ]
2
2021-06-08T20:56:16.000Z
2021-09-08T01:41:42.000Z
users/migrations/0004_auto_20191028_2154.py
icnmtrx/classified
c9515352e046293dacd66ba28cb32ae378edf832
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-28 21:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20191028_1802'), ] operations = [ migrations.AlterField( model_name='profile', name='registered_a...
22.736842
90
0.62963
339
0.784722
0
0
0
0
0
0
120
0.277778
6fa38b8004759e97015cce47bf001559adb56f2e
3,426
py
Python
functionaltests/api/v2/test_pool.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
functionaltests/api/v2/test_pool.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
functionaltests/api/v2/test_pool.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <[email protected]> # # 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/lice...
36.83871
75
0.700525
2,553
0.745184
0
0
0
0
0
0
790
0.23059
6fa4cb77b9686bd974f4ba0799278420d18f452c
1,928
py
Python
fewshot/models/basic_model_VAT_ENT.py
AhmedAyad89/Consitent-Prototypical-Networks-Semi-Supervised-Few-Shot-Learning
b0b805733ee6c42cee5ddd9eace94edd29f6120d
[ "MIT" ]
22
2019-03-13T02:19:17.000Z
2021-08-06T03:13:00.000Z
fewshot/models/basic_model_VAT_ENT.py
mattochal/Consitent-Prototypical-Networks-Semi-Supervised-Few-Shot-Learning
b0b805733ee6c42cee5ddd9eace94edd29f6120d
[ "MIT" ]
1
2019-07-27T14:33:02.000Z
2020-06-01T11:03:20.000Z
fewshot/models/basic_model_VAT_ENT.py
mattochal/Consitent-Prototypical-Networks-Semi-Supervised-Few-Shot-Learning
b0b805733ee6c42cee5ddd9eace94edd29f6120d
[ "MIT" ]
5
2019-03-07T06:18:51.000Z
2019-10-22T05:33:23.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import tensorflow as tf from fewshot.models.kmeans_utils import compute_logits from fewshot.models.model import Model from fewshot.models.refine_model import RefineModel from fewshot.models...
33.824561
116
0.769191
1,222
0.633817
0
0
1,254
0.650415
0
0
147
0.076245
6fa4dc608c43d4d875d4dbb6404a617e1898a215
169
py
Python
FileStorage/utils/__init__.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
1
2020-07-15T10:02:40.000Z
2020-07-15T10:02:40.000Z
FileStorage/utils/__init__.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
null
null
null
FileStorage/utils/__init__.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
null
null
null
""" @Author : xiaotao @Email : [email protected] @Lost modifid : 2020/4/24 10:02 @Filename : __init__.py.py @Description : @Software : PyCharm """
21.125
32
0.609467
0
0
0
0
0
0
0
0
169
1
6fa61d901e4c25cb458862fd5a69f1d44a079c88
3,864
py
Python
molsysmt/tools/items.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
molsysmt/tools/items.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
molsysmt/tools/items.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
import numpy as np import re as re from molsysmt._private_tools.lists_and_tuples import is_list_or_tuple def compatibles_for_a_single_molecular_system(items): from molsysmt.basic.get_form import get_form from molsysmt.basic.get import get from molsysmt.forms import dict_has output = True if not ...
26.465753
93
0.626812
0
0
0
0
0
0
0
0
207
0.053571
6fa63eda0afd91d2591e9bd285c10c6a046d2252
5,021
py
Python
runner/monitor.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
null
null
null
runner/monitor.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
null
null
null
runner/monitor.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
1
2021-05-11T05:09:30.000Z
2021-05-11T05:09:30.000Z
#!/usr/bin/env python3 import argparse import subprocess as sp import select import sys import time import yaml if __name__ == '__main__': """ We can daemonize our connections to our remote machines, list the FL processes on remote machines, or kill FL processes on remote machines. We can either pass a s...
44.04386
146
0.54292
0
0
0
0
0
0
0
0
1,974
0.393149
6fa6d9568fc3d20a8fc6e092cfbe18e8adeb1122
134
py
Python
brian2sampledevice/__init__.py
brian-team/brian2sampledevice
d4b4e932aff35b3350e22039b05fcb022623e5fc
[ "MIT" ]
null
null
null
brian2sampledevice/__init__.py
brian-team/brian2sampledevice
d4b4e932aff35b3350e22039b05fcb022623e5fc
[ "MIT" ]
null
null
null
brian2sampledevice/__init__.py
brian-team/brian2sampledevice
d4b4e932aff35b3350e22039b05fcb022623e5fc
[ "MIT" ]
null
null
null
from .device import SampleDevice from .codeobject import SampleDeviceCodeObject __all__ = ['SampleDevice', 'SampleDeviceCodeObject']
26.8
52
0.828358
0
0
0
0
0
0
0
0
38
0.283582
6fa6de489d3ecbdc05135c1a882460c438344d63
149
py
Python
tests/node_test.py
allenai/beaker-py
99c8d7f6e9938807ca5405964ef35633a19e8d68
[ "Apache-2.0" ]
null
null
null
tests/node_test.py
allenai/beaker-py
99c8d7f6e9938807ca5405964ef35633a19e8d68
[ "Apache-2.0" ]
20
2021-12-16T13:23:07.000Z
2022-03-31T16:40:02.000Z
tests/node_test.py
allenai/beaker-py
99c8d7f6e9938807ca5405964ef35633a19e8d68
[ "Apache-2.0" ]
null
null
null
from beaker import Beaker def test_node_get(client: Beaker, beaker_node_id: str): assert client.node.get(beaker_node_id).limits.gpu_count == 8
24.833333
64
0.778523
0
0
0
0
0
0
0
0
0
0
6fa73ff97a0db35ad4fb506ba2a01779a69e92b2
5,984
py
Python
crawling/data_crawler_set.py
CLUG-kr/cau_hashkeyword
f2b747ce8c5705ea58fd94d2a1d10110d6f4f511
[ "MIT" ]
5
2019-01-20T06:12:47.000Z
2019-06-27T13:29:26.000Z
crawling/data_crawler_set.py
AllyHyeseongKim/cau_hashkeyword
1050dbc74d28765aec6e5870d6f3dae325f5caad
[ "MIT" ]
4
2019-01-10T14:58:45.000Z
2019-05-16T05:02:53.000Z
crawling/data_crawler_set.py
AllyHyeseongKim/cau_hashkeyword
1050dbc74d28765aec6e5870d6f3dae325f5caad
[ "MIT" ]
1
2019-02-20T09:11:54.000Z
2019-02-20T09:11:54.000Z
# coding: utf-8 # In[2]: import firebase_admin from firebase_admin import credentials from firebase_admin import db # Fetch the service account key JSON file contents cred = credentials.Certificate('/Users/Solomon/Desktop/cau-hashkeyword-serviceAccountKey.json') # Initialize the app with a service account, granti...
30.070352
156
0.723429
0
0
0
0
0
0
0
0
2,482
0.392349
6fa85d4b0b5bfa6ac386b4e088bb46a5cbd9b94a
614
py
Python
compose.py
luyao777/speech-robot
a00c9ac554b7b7a86af4a57d33acb50bbdc17822
[ "Apache-2.0" ]
null
null
null
compose.py
luyao777/speech-robot
a00c9ac554b7b7a86af4a57d33acb50bbdc17822
[ "Apache-2.0" ]
null
null
null
compose.py
luyao777/speech-robot
a00c9ac554b7b7a86af4a57d33acb50bbdc17822
[ "Apache-2.0" ]
null
null
null
#coding: utf-8 from aip import AipSpeech from config import DefaultConfig as opt class composer(): def __init__(self): pass def compose(self,text ='你好'): #百度后台获取的秘�? APP_ID = opt.baidu_app_id API_KEY = opt.baidu_api_key SECRET_KEY =opt.baidu_secret_key client = ...
26.695652
55
0.583062
551
0.866352
0
0
0
0
0
0
74
0.116352
6fa87cb16c669518081acc3c339dbfde1687dc05
8,754
py
Python
tests/test_input_output.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
1
2020-11-20T17:17:50.000Z
2020-11-20T17:17:50.000Z
tests/test_input_output.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
12
2020-11-19T05:22:13.000Z
2020-12-15T03:50:33.000Z
tests/test_input_output.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
null
null
null
import unittest import os import pathlib import h5py from desc.input_reader import InputReader from desc.equilibrium_io import hdf5Writer, hdf5Reader from desc.configuration import Configuration, Equilibrium #from desc.input_output import read_input #class TestIO(unittest.TestCase): # """tests for input/output fun...
37.09322
79
0.629312
8,199
0.9366
0
0
0
0
0
0
1,957
0.223555
6fa98703634598fbfefb544679b794421049f04d
880
py
Python
backend/vcdat/test_end_to_end.py
CDAT/vcdat
0d257da607bd2ed064917922af29247c6c0aaae1
[ "BSD-3-Clause" ]
4
2018-03-29T01:51:37.000Z
2019-09-11T14:07:34.000Z
backend/vcdat/test_end_to_end.py
CDAT/vcdat
0d257da607bd2ed064917922af29247c6c0aaae1
[ "BSD-3-Clause" ]
101
2018-03-20T16:58:20.000Z
2019-11-25T19:26:52.000Z
backend/vcdat/test_end_to_end.py
CDAT/vcdat
0d257da607bd2ed064917922af29247c6c0aaae1
[ "BSD-3-Clause" ]
1
2018-10-22T20:50:25.000Z
2018-10-22T20:50:25.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC import pytest # Declare Fixtures # -------------------------------------------------------------------- @pytest.fixture() def driver(): driver = webdriver.Chrome() d...
26.666667
78
0.621591
0
0
144
0.163636
515
0.585227
0
0
309
0.351136
6fa9d472e775eb87721d162cdd4f797206aefbc8
264
py
Python
scripts/makeToast.py
zgrannan/Technical-Theatre-Assistant
8928e5f4f179f75f92035e898d102dd55f32e3f3
[ "MIT" ]
3
2017-01-05T20:02:23.000Z
2017-10-02T19:55:58.000Z
scripts/makeToast.py
zgrannan/Technical-Theatre-Assistant
8928e5f4f179f75f92035e898d102dd55f32e3f3
[ "MIT" ]
1
2016-05-17T20:20:19.000Z
2016-05-17T20:20:28.000Z
scripts/makeToast.py
zgrannan/Technical-Theatre-Assistant
8928e5f4f179f75f92035e898d102dd55f32e3f3
[ "MIT" ]
null
null
null
#makes a toast with the given string ID from sys import argv def make_toast (string_id): return "Toast.makeText(getBaseContext(), getString(R.string." + string_id + "), Toast.LENGTH_SHORT).show();" if ( argv[0] == "makeToast.py" ): print make_toast(argv[1])
24
109
0.708333
0
0
0
0
0
0
0
0
139
0.526515
6fab9608b18da127d6b2008d803781b981e8468d
334
py
Python
crisiscleanup/calls/migrations/0011_merge_20180122_2308.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
crisiscleanup/calls/migrations/0011_merge_20180122_2308.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
crisiscleanup/calls/migrations/0011_merge_20180122_2308.py
CrisisCleanup/wcicp-call-service
0a00e092625e2a48c9807737a4b72e343e1ab0b9
[ "Apache-1.1" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-01-22 23:08 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('calls', '0010_auto_20180119_2117'), ('calls', '0007_auto_20180122_2157'), ] operati...
19.647059
48
0.658683
184
0.550898
0
0
0
0
0
0
135
0.404192
6faccc1a6a5c598d0d380be6821bb6343c6e2509
572
py
Python
test/market_feature_1/test_nose_plugin.py
StefanRatzke/nose-market-features
e63b2367b77e860c919d3a33612a3ba6ff632f5f
[ "Apache-2.0" ]
5
2015-01-12T10:04:15.000Z
2018-12-20T13:49:47.000Z
test/market_feature_1/test_nose_plugin.py
StefanRatzke/nose-market-features
e63b2367b77e860c919d3a33612a3ba6ff632f5f
[ "Apache-2.0" ]
16
2015-10-06T12:35:20.000Z
2019-04-01T15:05:17.000Z
test/market_feature_1/test_nose_plugin.py
StefanRatzke/nose-market-features
e63b2367b77e860c919d3a33612a3ba6ff632f5f
[ "Apache-2.0" ]
2
2015-03-02T09:49:11.000Z
2019-03-26T15:27:41.000Z
from unittest import skip import unittest2 from nose.plugins.attrib import attr from nose.tools import assert_equals @attr('test_nose_plugin') class TestNosePlugin(unittest2.TestCase): def setUp(self): pass def tearDown(self): pass def test_one(self): """first test, simulation p...
21.185185
49
0.653846
425
0.743007
0
0
451
0.788462
0
0
141
0.246503
6fad4b2d42f41ae40846094b93b5343afe778c0f
2,359
py
Python
charmcraft/manifest.py
aznashwan/charmcraft
9310ddaf800307b7ff96438173766309f7cb616f
[ "Apache-2.0" ]
32
2020-05-21T09:19:52.000Z
2022-03-31T17:05:59.000Z
charmcraft/manifest.py
aznashwan/charmcraft
9310ddaf800307b7ff96438173766309f7cb616f
[ "Apache-2.0" ]
417
2020-05-11T14:06:02.000Z
2022-03-31T16:15:59.000Z
charmcraft/manifest.py
aznashwan/charmcraft
9310ddaf800307b7ff96438173766309f7cb616f
[ "Apache-2.0" ]
44
2020-05-27T09:33:42.000Z
2022-03-30T14:34:03.000Z
# Copyright 2020-2021 Canonical Ltd. # # 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...
31.039474
75
0.693514
0
0
0
0
0
0
0
0
1,325
0.561679
6fae14b3638b39a8b273b347bee6855c94403d97
5,034
py
Python
ricnn/RICNN.py
jiangruoqiao/RICNN_RepeatGongCheng-sPaper
6e8ee6955f6c1c60aa5c32e341664fe350902482
[ "Apache-2.0" ]
33
2018-12-02T12:15:39.000Z
2021-12-06T14:10:32.000Z
ricnn/RICNN.py
jiangruoqiao/RICNN_RepeatGongCheng-sPaper
6e8ee6955f6c1c60aa5c32e341664fe350902482
[ "Apache-2.0" ]
5
2019-02-10T20:04:00.000Z
2021-07-03T12:52:20.000Z
ricnn/RICNN.py
jiangruoqiao/RICNN_RepeatGongCheng-sPaper
6e8ee6955f6c1c60aa5c32e341664fe350902482
[ "Apache-2.0" ]
9
2018-12-02T12:39:51.000Z
2020-05-07T08:30:38.000Z
#ecoding:utf-8 import DatasetLoader import RICNNModel import tensorflow as tf import sys import numpy as np import regularization as re import os import trainLoader os.environ["CUDA_VISIBLE_DEVICES"] = "1" TRAIN_FILENAME = '/media/liuqi/Files/dataset/test_mnist_ricnn_raw_100.h5' TEST_FILENAME = '/media/liuqi/Files/da...
43.025641
106
0.585419
0
0
0
0
0
0
0
0
567
0.112634
6fae2120fe92d529be7069156c9a883d0d04d5b4
820
py
Python
mcot/core/_scripts/gcoord/split.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
mcot/core/_scripts/gcoord/split.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
mcot/core/_scripts/gcoord/split.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Extract radial, sulcal, and gyral orientations from gyral coordinate NIFTI file""" def main(): import argparse parser = argparse.ArgumentParser("Extract radial, sulcal, and gyral dyads from a coord NIFTI file") parser.add_argument('coord', help='name of the coord file') parse...
45.555556
110
0.704878
0
0
0
0
0
0
0
0
470
0.573171
6faf92769295dcd3722767bcf2f74a8c180b6d9e
3,558
py
Python
src/pyshark/packet/fields.py
Lovemma/pyshark
06d00edacf75aa4a9abd77e0c8cab8de33ea27fb
[ "MIT" ]
10
2018-09-13T15:50:43.000Z
2021-01-30T19:55:36.000Z
src/pyshark/packet/fields.py
Lovemma/pyshark
06d00edacf75aa4a9abd77e0c8cab8de33ea27fb
[ "MIT" ]
1
2019-09-09T14:15:34.000Z
2019-09-09T14:15:34.000Z
src/pyshark/packet/fields.py
Lovemma/pyshark
06d00edacf75aa4a9abd77e0c8cab8de33ea27fb
[ "MIT" ]
9
2018-07-24T09:32:55.000Z
2021-01-22T21:23:06.000Z
import binascii from pyshark.packet.common import Pickleable, SlotsPickleable class LayerField(SlotsPickleable): """ Holds all data about a field of a layer, both its actual value and its name and nice representation. """ # Note: We use this object with slots and not just a dict because # it's mu...
29.65
124
0.603991
3,474
0.976391
0
0
1,407
0.395447
0
0
1,302
0.365936
6faffdb266238fb5626bfa67ef31c69f49889449
1,264
py
Python
tasks/swipe_card.py
devBezel/among_us_tasker
dd13c13a7d2d776143522ccfa27696d69524707b
[ "MIT" ]
null
null
null
tasks/swipe_card.py
devBezel/among_us_tasker
dd13c13a7d2d776143522ccfa27696d69524707b
[ "MIT" ]
null
null
null
tasks/swipe_card.py
devBezel/among_us_tasker
dd13c13a7d2d776143522ccfa27696d69524707b
[ "MIT" ]
null
null
null
import pyautogui import time import datetime class SwipeCard: def __init__(self): self.resolution = pyautogui.size() def resolve_task(self): try: hide_card_position = pyautogui.center( pyautogui.locateOnScreen(f"assets/tasks/swipe_card/main.png", ...
29.395349
79
0.557753
1,219
0.962875
0
0
0
0
0
0
145
0.114534
6fb000a6fd5b519a73bbb7413dd210206c96960d
370
py
Python
python/geeksforgeeks/arrays/rearrengment/reverse_a_string.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/geeksforgeeks/arrays/rearrengment/reverse_a_string.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
python/geeksforgeeks/arrays/rearrengment/reverse_a_string.py
othonreyes/code_problems
6e65b26120b0b9d6e5ac7342a4d964696b7bd5bf
[ "MIT" ]
null
null
null
# https://www.geeksforgeeks.org/write-a-program-to-reverse-an-array-or-string/ # Time: O(n) # Space: 1 def reverseByMiddles(arr): n = len(arr) limit = n//2 for i in range(limit): temp = arr[i] arr[i] = arr[(n-1)-i] arr[(n-1)-i] = temp return arr arr = [1,2,3] result = reverseByMiddles(arr) print(r...
18.5
78
0.627027
0
0
0
0
0
0
0
0
100
0.27027
6fb0bb046f2c82f4fc248ab9913d7e957fa16a08
1,397
py
Python
test_service.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-derek-repka
c724a2b921fdb1e6ba1200b477a4add291941107
[ "MIT" ]
null
null
null
test_service.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-derek-repka
c724a2b921fdb1e6ba1200b477a4add291941107
[ "MIT" ]
4
2018-10-09T17:16:38.000Z
2021-06-10T20:56:30.000Z
test_service.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-derek-repka
c724a2b921fdb1e6ba1200b477a4add291941107
[ "MIT" ]
null
null
null
from service import Service from unittest import TestCase from mock import patch import sys class TestService(TestCase): @patch('service.Service.bad_random', return_value=10) def test_bad_random(self, bad_random): self.assertEqual(bad_random(), 10) @patch('service.Service.bad_random', return_value=10) def test_...
27.94
58
0.740873
1,301
0.931281
0
0
1,013
0.725125
0
0
84
0.060129
6fb2b10f3d4883634b84a549a2f3de0c0993ed24
1,512
py
Python
libweasyl/libweasyl/alembic/versions/eff79a07a88d_use_timestamp_column_for_latest_.py
akash143143/weasyl
be42a2313e657e97c4a48432379e37b6a3d4a4af
[ "Apache-2.0" ]
111
2016-05-18T04:18:18.000Z
2021-11-03T02:05:19.000Z
libweasyl/libweasyl/alembic/versions/eff79a07a88d_use_timestamp_column_for_latest_.py
akash143143/weasyl
be42a2313e657e97c4a48432379e37b6a3d4a4af
[ "Apache-2.0" ]
1,103
2016-05-29T05:17:53.000Z
2022-03-31T18:12:40.000Z
libweasyl/libweasyl/alembic/versions/eff79a07a88d_use_timestamp_column_for_latest_.py
TheWug/weasyl
a568a542cc58c11e30621fb672c701531d4306a8
[ "Apache-2.0" ]
47
2016-05-29T20:48:37.000Z
2021-11-12T09:40:40.000Z
"""Use TIMESTAMP column for latest submission Revision ID: eff79a07a88d Revises: 83e6b2a46191 Create Date: 2017-01-08 22:20:43.814375 """ # revision identifiers, used by Alembic. revision = 'eff79a07a88d' down_revision = '83e6b2a46191' from alembic import op # lgtm[py/unused-import] import sqlalchemy as sa # lgt...
30.857143
130
0.707011
0
0
0
0
0
0
0
0
765
0.505952
6fb43ce461d11d32148db76a6319e68f78bca70e
3,499
py
Python
MBTA/step1_group.py
404nofound/MBTA_Python
eb5c1bb3fe5f2640dc42949402955c0f73e1c8b1
[ "Apache-2.0" ]
1
2019-04-15T04:39:13.000Z
2019-04-15T04:39:13.000Z
MBTA/step1_group.py
404nofound/MBTA_Python
eb5c1bb3fe5f2640dc42949402955c0f73e1c8b1
[ "Apache-2.0" ]
null
null
null
MBTA/step1_group.py
404nofound/MBTA_Python
eb5c1bb3fe5f2640dc42949402955c0f73e1c8b1
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import os # Function, divided all data into groups by time period, like [1AM-3AM; 3AM-5Am ...] def binning(column, points, labels=None, month=0, stop=0): ''' Notes: The Row Data from MBTA webiste The Time format is from 3:00 to 27:00, means 3:00 AM today to ne...
38.877778
121
0.656759
0
0
0
0
0
0
0
0
2,027
0.579308
6fb582e0d7d4fa8f242a226b9d6f0299b62ae75d
1,574
py
Python
tests/dags/test_job_operator_jinja.py
Fahadsaadullahkhan/KubernetesJobOperator
d96f9498667f937503d1e45142060904674f823f
[ "MIT" ]
null
null
null
tests/dags/test_job_operator_jinja.py
Fahadsaadullahkhan/KubernetesJobOperator
d96f9498667f937503d1e45142060904674f823f
[ "MIT" ]
null
null
null
tests/dags/test_job_operator_jinja.py
Fahadsaadullahkhan/KubernetesJobOperator
d96f9498667f937503d1e45142060904674f823f
[ "MIT" ]
null
null
null
from utils import default_args from datetime import timedelta from airflow import DAG from airflow_kubernetes_job_operator import ( KubernetesJobOperator, JobRunnerDeletePolicy, KubernetesLegacyJobOperator, ) dag = DAG( "kub-job-op-test-jinja", default_args=default_args, description="Test base ...
22.169014
60
0.653113
0
0
0
0
0
0
0
0
779
0.494917
6fb591a1133b9da158581aa46d45eeabf6264943
6,458
py
Python
spacecapsule/executor.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
7
2022-02-18T03:14:43.000Z
2022-03-16T08:38:55.000Z
spacecapsule/executor.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
6
2022-03-10T12:16:59.000Z
2022-03-18T01:19:00.000Z
spacecapsule/executor.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
3
2022-02-17T08:40:33.000Z
2022-03-29T01:38:46.000Z
import json import jsonpath import paramiko from spacecapsule.history import store_experiment, rollback_command from subprocess import Popen, PIPE from spacecapsule.k8s import prepare_api, copy_tar_file_to_namespaced_pod, executor_command_inside_namespaced_pod from spacecapsule.template import chaosblade_prepare_scr...
48.19403
120
0.722979
0
0
0
0
0
0
0
0
795
0.122799
6fb7c5d5fb34e77d36095b18c408e6edbe184b8f
2,952
py
Python
experiments/2d_shallowwater/gen.py
flabowski/POD-UQNN
1c81be432e69d24ae894828f42918fbc1fe54bc1
[ "MIT" ]
15
2020-05-29T11:42:14.000Z
2022-03-20T03:53:44.000Z
experiments/2d_shallowwater/gen.py
flabowski/POD-UQNN
1c81be432e69d24ae894828f42918fbc1fe54bc1
[ "MIT" ]
null
null
null
experiments/2d_shallowwater/gen.py
flabowski/POD-UQNN
1c81be432e69d24ae894828f42918fbc1fe54bc1
[ "MIT" ]
11
2020-06-09T01:16:22.000Z
2021-04-27T08:53:02.000Z
"""POD-NN modeling for 1D, unsteady Burger Equation.""" #%% Imports import sys import os import pickle import numpy as np sys.path.append(os.path.join("..", "..")) from poduqnn.podnnmodel import PodnnModel from poduqnn.mesh import read_multi_space_sol_input_mesh from poduqnn.handling import clean_dir, split_dataset f...
50.033898
910
0.618225
0
0
0
0
0
0
0
0
1,230
0.416667
6fb84b781b83af75ecf875a208c9ad2d89873dec
13,981
py
Python
template_container_human/labels/slice_7.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_7.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_7.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
coordinates_01EE00 = ((121, 126), (121, 132), (121, 134), (121, 135), (121, 137), (121, 138), (121, 139), (121, 140), (121, 141), (122, 114), (122, 115), (122, 116), (122, 117), (122, 119), (122, 125), (122, 127), (122, 128), (122, 142), (123, 110), (123, 111), (123, 112), (123, 113), (123, 120), (123, 124), (123, 12...
582.541667
865
0.500036
0
0
0
0
0
0
0
0
0
0
6fb8b1b58b2f38e1b4575b537fc9d0698a19d441
565
py
Python
day1/ex4.py
dsky1990/python_30days
3a9d8a29bd32979be1f4ef01be44999073dab5c4
[ "MIT" ]
1
2018-10-20T14:45:31.000Z
2018-10-20T14:45:31.000Z
day1/ex4.py
dsky1990/python_30days
3a9d8a29bd32979be1f4ef01be44999073dab5c4
[ "MIT" ]
null
null
null
day1/ex4.py
dsky1990/python_30days
3a9d8a29bd32979be1f4ef01be44999073dab5c4
[ "MIT" ]
null
null
null
cars = 100 space_in_a_car = 4.0 drivers = 30 passengers = 90 cars_not_driven = cars -drivers cars_driven = drivers carpool_carpacity = cars_driven * space_in_a_car average_passengers_per_car = passengers / cars_driven print("There are", cars, "cars available") print("There are only", drivers, "drivers available") prin...
37.666667
79
0.771681
0
0
0
0
0
0
0
0
196
0.346903
6fb8b2f2709c0ffde62b6fe00c0e82cc6d0aeb7e
6,599
py
Python
faculty_xval/bin/jobs_cross_validation_executor.py
facultyai/faculty-xval
73468b6c7b2be1a21728ac01f0fe16e7c20110a0
[ "Apache-2.0" ]
4
2019-04-10T17:57:29.000Z
2019-04-17T16:13:49.000Z
faculty_xval/bin/jobs_cross_validation_executor.py
facultyai/faculty-xval
73468b6c7b2be1a21728ac01f0fe16e7c20110a0
[ "Apache-2.0" ]
4
2019-04-12T08:26:24.000Z
2019-04-20T06:21:09.000Z
faculty_xval/bin/jobs_cross_validation_executor.py
facultyai/faculty-xval
73468b6c7b2be1a21728ac01f0fe16e7c20110a0
[ "Apache-2.0" ]
1
2021-04-04T10:48:14.000Z
2021-04-04T10:48:14.000Z
import json import logging import os import click import numpy as np from keras import backend as K from keras.models import load_model as keras_load from sklearn.base import clone as sklearn_clone from sklearn.externals import joblib from faculty_xval.utilities import keras_clone_and_compile LOGGER = logging.getLo...
29.859729
86
0.641612
0
0
0
0
2,417
0.366268
0
0
3,381
0.51235
6fb91a03150c13b0761acd74d5215ec8826d01b1
2,262
py
Python
Solution.py
TheMLGuy/Simple-Web-Scraper
4b4a27e7af3c0cf7bbe5aea4036f52487666dd85
[ "Apache-2.0" ]
null
null
null
Solution.py
TheMLGuy/Simple-Web-Scraper
4b4a27e7af3c0cf7bbe5aea4036f52487666dd85
[ "Apache-2.0" ]
null
null
null
Solution.py
TheMLGuy/Simple-Web-Scraper
4b4a27e7af3c0cf7bbe5aea4036f52487666dd85
[ "Apache-2.0" ]
1
2021-02-06T15:47:04.000Z
2021-02-06T15:47:04.000Z
from bs4 import BeautifulSoup import requests import math import time start_url='https://www.macys.com' domain='https://www.macys.com' ''' get soup ''' def get_soup(url): # get contents from url content='' while content=='': try: content = requests.get(url, ...
29.763158
188
0.59107
0
0
0
0
0
0
0
0
758
0.335102
6fb98dc934dbec999a997933b56e8bd368d485a6
1,243
py
Python
contactnetwork/urls.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
21
2016-01-20T09:33:14.000Z
2021-12-20T19:19:45.000Z
contactnetwork/urls.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
75
2016-02-26T16:29:58.000Z
2022-03-21T12:35:13.000Z
contactnetwork/urls.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
77
2016-01-22T08:44:26.000Z
2022-02-01T15:54:56.000Z
from django.conf.urls import url from contactnetwork import views # from django.views.generic import TemplateView urlpatterns = [ url(r'^clusteringdata$', views.ClusteringData, name='clusteringdata'), url(r'^clustering$', views.Clustering, name='clustering'), url(r'^structure_clustering$', views.Clusterin...
51.791667
87
0.722446
0
0
0
0
0
0
0
0
565
0.454545
6fb9c69f0b059e1e502f8dc0059898eb346e1f36
320
py
Python
app.py
jero2rome/HelloWorld-Python
67a4b600415e4c0011e4598efea874d0b49abd79
[ "MIT" ]
null
null
null
app.py
jero2rome/HelloWorld-Python
67a4b600415e4c0011e4598efea874d0b49abd79
[ "MIT" ]
null
null
null
app.py
jero2rome/HelloWorld-Python
67a4b600415e4c0011e4598efea874d0b49abd79
[ "MIT" ]
null
null
null
course = "Python Programming" print(course.upper()) print(course.lower()) print(course.title()) course = " Python Programming" print(course) print(course.strip()) print(course.find("Pro")) print(course.find("pro")) print(course.replace("P", "-")) print("Programming" in course) print("Programming" not in course)
18.823529
34
0.709375
0
0
0
0
0
0
0
0
86
0.26875
6fbc9ebec03dc29c3a7fc5b24ded057f188d61a0
1,401
py
Python
FPN_Backend/api_utility/validators.py
DeeMATT/friendly-invention
c308168b088ad8e65ab6eddcdba22552a9c6987a
[ "MIT" ]
null
null
null
FPN_Backend/api_utility/validators.py
DeeMATT/friendly-invention
c308168b088ad8e65ab6eddcdba22552a9c6987a
[ "MIT" ]
null
null
null
FPN_Backend/api_utility/validators.py
DeeMATT/friendly-invention
c308168b088ad8e65ab6eddcdba22552a9c6987a
[ "MIT" ]
null
null
null
import re from data_transformer.views import stringIsInteger def validateEmailFormat(email): emailPattern = r'^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$' if(re.search(emailPattern, email)): return True return False def validatePhoneFormat(phone): if not stringIsInteger(phon...
24.155172
87
0.635974
0
0
0
0
0
0
0
0
283
0.201999
6fbe42378fbc286f445856d3f64bebf5d1265f7a
1,173
py
Python
app/model.py
hfikry92/fast-api-auth-starter
4d90980da7084961f8f25591aea587509e790f80
[ "MIT" ]
43
2020-12-14T18:19:15.000Z
2022-03-30T05:57:43.000Z
app/model.py
hfikry92/fast-api-auth-starter
4d90980da7084961f8f25591aea587509e790f80
[ "MIT" ]
3
2021-02-19T09:56:35.000Z
2022-03-30T13:26:50.000Z
app/model.py
hfikry92/fast-api-auth-starter
4d90980da7084961f8f25591aea587509e790f80
[ "MIT" ]
16
2020-12-14T02:49:35.000Z
2022-02-15T10:39:39.000Z
from pydantic import BaseModel, Field, EmailStr class PostSchema(BaseModel): id: int = Field(default=None) title: str = Field(...) content: str = Field(...) class Config: schema_extra = { "example": { "title": "Securing FastAPI applications with JWT.", ...
27.27907
191
0.535379
1,117
0.952259
0
0
0
0
0
0
388
0.330776
6fbf3fd6784e5fc825699ad96db6d0683069d114
188
py
Python
griffin_powermate/__init__.py
alex-ong/griffin-powermate
59f53647de2fd025b27552c37e22e4c8c176aba6
[ "MIT" ]
11
2015-07-06T03:48:00.000Z
2022-03-08T15:45:02.000Z
griffin_powermate/__init__.py
alex-ong/griffin-powermate
59f53647de2fd025b27552c37e22e4c8c176aba6
[ "MIT" ]
2
2018-03-30T17:11:53.000Z
2018-03-31T10:49:22.000Z
griffin_powermate/__init__.py
alex-ong/griffin-powermate
59f53647de2fd025b27552c37e22e4c8c176aba6
[ "MIT" ]
6
2015-07-10T23:12:38.000Z
2021-07-05T05:17:22.000Z
__version__ = '1.0.2' __author__ = 'Christian Musa <[email protected]>' __url__ = 'https://github.com/crash7/griffin-powermate' __all__ = [] from griffin_powermate import *
31.333333
59
0.718085
0
0
0
0
0
0
0
0
94
0.5
6fc09d38fc6e352436484c44be3ed1f477d458b5
109
py
Python
servermn/core/__init__.py
masterhung0112/servermn
d518f2fa394bb3e22c29e74802357c2aa054f392
[ "Unlicense" ]
null
null
null
servermn/core/__init__.py
masterhung0112/servermn
d518f2fa394bb3e22c29e74802357c2aa054f392
[ "Unlicense" ]
null
null
null
servermn/core/__init__.py
masterhung0112/servermn
d518f2fa394bb3e22c29e74802357c2aa054f392
[ "Unlicense" ]
null
null
null
def init(): # Set locale environment # Set config # Set user and group # init logger pass
18.166667
28
0.59633
0
0
0
0
0
0
0
0
69
0.633028
6fc12a48d65fbf13cb0aa456154ff1b694f2a2ec
3,142
py
Python
flink/test_flink.py
chekanskiy/bi-dataproc-initialization-actions
8682ca537153f50ab58dc081a9d222ec61f8aa8e
[ "Apache-2.0" ]
1
2020-10-28T01:19:16.000Z
2020-10-28T01:19:16.000Z
flink/test_flink.py
chekanskiy/bi-dataproc-initialization-actions
8682ca537153f50ab58dc081a9d222ec61f8aa8e
[ "Apache-2.0" ]
null
null
null
flink/test_flink.py
chekanskiy/bi-dataproc-initialization-actions
8682ca537153f50ab58dc081a9d222ec61f8aa8e
[ "Apache-2.0" ]
null
null
null
import unittest from parameterized import parameterized import os from integration_tests.dataproc_test_case import DataprocTestCase METADATA = 'flink-start-yarn-session=false' class FlinkTestCase(DataprocTestCase): COMPONENT = 'flink' INIT_ACTION = 'gs://dataproc-initialization-actions/flink/flink.sh' T...
37.404762
109
0.559198
2,912
0.926798
0
0
1,819
0.578931
0
0
556
0.176957
6fc1e91d9ee7bd81df3b499400e72d6a896fdb9d
4,017
py
Python
regression/testplan/firmware_small.py
sld-columbia/nvdla-sw
79538ba1b52b040a4a4645f630e457fa01839e90
[ "Apache-2.0" ]
407
2017-10-25T14:24:25.000Z
2022-03-31T08:02:01.000Z
regression/testplan/firmware_small.py
sld-columbia/nvdla-sw
79538ba1b52b040a4a4645f630e457fa01839e90
[ "Apache-2.0" ]
227
2017-11-02T07:15:38.000Z
2022-01-19T02:29:51.000Z
regression/testplan/firmware_small.py
sld-columbia/nvdla-sw
79538ba1b52b040a4a4645f630e457fa01839e90
[ "Apache-2.0" ]
199
2017-10-26T07:26:40.000Z
2022-03-27T20:02:13.000Z
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
42.284211
179
0.707742
181
0.045059
0
0
0
0
0
0
2,611
0.649988
6fc2f27600b643c88618b8d387f08bcf982ed303
790
py
Python
peaksql/datasets/narrowpeak.py
vanheeringen-lab/PeakSQL
b9290394605273b3a92815a8662fe22406254bfc
[ "MIT" ]
null
null
null
peaksql/datasets/narrowpeak.py
vanheeringen-lab/PeakSQL
b9290394605273b3a92815a8662fe22406254bfc
[ "MIT" ]
17
2020-02-22T19:05:00.000Z
2020-05-20T10:15:01.000Z
peaksql/datasets/narrowpeak.py
vanheeringen-lab/PeakSQL
b9290394605273b3a92815a8662fe22406254bfc
[ "MIT" ]
4
2020-02-28T12:47:18.000Z
2020-03-06T13:00:20.000Z
import numpy as np from typing import List, Tuple from .base import _DataSet class NarrowPeakDataSet(_DataSet): """ The NarrowPeakDataSet expects that narrowPeak files have been added to the DataBase. """ SELECT_LABEL = ( " Bed.ChromosomeId, Bed.ConditionId, BedVirtual_{assembly}.ChromStart,...
29.259259
88
0.653165
709
0.897468
0
0
0
0
0
0
180
0.227848
6fc517dc6f5fe11349e844166e7ed87944abff49
2,654
py
Python
strip_ansi_escape_codes.py
neilrjones/DevOps-Python-tools
12646de550ba296cf26e4a058e9a1cc1cc723c8f
[ "MIT" ]
1
2022-02-22T00:20:00.000Z
2022-02-22T00:20:00.000Z
strip_ansi_escape_codes.py
neilrjones/DevOps-Python-tools
12646de550ba296cf26e4a058e9a1cc1cc723c8f
[ "MIT" ]
null
null
null
strip_ansi_escape_codes.py
neilrjones/DevOps-Python-tools
12646de550ba296cf26e4a058e9a1cc1cc723c8f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2018-09-09 23:06:06 +0100 (Sun, 09 Sep 2018) # # https://github.com/harisekhon/devops-python-tools # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and opt...
31.223529
119
0.637905
1,100
0.414469
0
0
0
0
0
0
1,198
0.451394
6fc58731a5e67b957a08a7b99ed3506623297e19
301
py
Python
vk_bot/mods/other/counting.py
triangle1984/GLaDOS
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
3
2019-12-12T05:48:34.000Z
2020-12-07T19:23:41.000Z
vk_bot/mods/other/counting.py
anar66/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
1
2019-11-15T14:28:49.000Z
2019-11-15T14:28:49.000Z
vk_bot/mods/other/counting.py
triangle1984/vk-bot
39dea7bf8043e791ef079ea1ac6616f95d5b5312
[ "BSD-3-Clause" ]
5
2019-11-20T14:20:30.000Z
2022-02-05T10:37:01.000Z
from vk_bot.core.modules.basicplug import BasicPlug import time class Counting(BasicPlug): command = ("отсчет",) doc = "Отсчет от 1 до 3" def main(self): for x in range(3, -1, -1): if x == 0: return self.sendmsg(x) time.sleep(1)
25.083333
51
0.538206
252
0.794953
0
0
0
0
0
0
42
0.132492
6fc63d77d8ed73c401918b676d06084cc00b6c87
954
py
Python
wind-oci-marketplace/setup.py
LaudateCorpus1/wind
d10dbc6baa98acab4927ff2b7a880b4727185582
[ "UPL-1.0", "Apache-2.0" ]
1
2022-02-07T15:56:24.000Z
2022-02-07T15:56:24.000Z
wind-oci-marketplace/setup.py
LaudateCorpus1/wind
d10dbc6baa98acab4927ff2b7a880b4727185582
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
wind-oci-marketplace/setup.py
LaudateCorpus1/wind
d10dbc6baa98acab4927ff2b7a880b4727185582
[ "UPL-1.0", "Apache-2.0" ]
1
2022-02-18T01:23:46.000Z
2022-02-18T01:23:46.000Z
## Copyright © 2021, Oracle and/or its affiliates. ## Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. #!/usr/bin/env python from setuptools import setup setup(name='wind-marketplace-library', version="1.0.0", description='Robot Framework test librar...
31.8
105
0.634172
0
0
0
0
0
0
0
0
540
0.565445
6fc8616e9f969ac9e3ee973ff4f5b06bdc7a38e6
17
py
Python
pointcloud2raster/__version__.py
NorthArrowResearch/pointcloud2raster
419d82c9a62947e0258e308d2812f745df09794d
[ "MIT" ]
null
null
null
pointcloud2raster/__version__.py
NorthArrowResearch/pointcloud2raster
419d82c9a62947e0258e308d2812f745df09794d
[ "MIT" ]
null
null
null
pointcloud2raster/__version__.py
NorthArrowResearch/pointcloud2raster
419d82c9a62947e0258e308d2812f745df09794d
[ "MIT" ]
null
null
null
__version__="0.3"
17
17
0.764706
0
0
0
0
0
0
0
0
5
0.294118
6fc8809070d19daecb0e75b0cf66f5240983ed79
1,392
py
Python
api/views.py
oil-rope/oil-and-rope
6d59c87d4809f120417a90c1624952085486bb06
[ "MIT" ]
8
2019-08-27T20:08:22.000Z
2021-07-23T22:49:47.000Z
api/views.py
oil-rope/oil-and-rope
6d59c87d4809f120417a90c1624952085486bb06
[ "MIT" ]
73
2020-03-11T18:07:29.000Z
2022-03-28T18:07:47.000Z
api/views.py
oil-rope/oil-and-rope
6d59c87d4809f120417a90c1624952085486bb06
[ "MIT" ]
4
2020-02-22T19:44:17.000Z
2022-03-08T09:42:45.000Z
from django.http import JsonResponse from django.shortcuts import reverse from django.urls import NoReverseMatch from django.views import View from rest_framework import __version__ as drf_version from rest_framework.exceptions import ValidationError from rest_framework.permissions import AllowAny from rest_framework.r...
27.294118
56
0.66954
962
0.691092
0
0
0
0
0
0
155
0.111351
6fc9a185be50739efc8e58ecf9750c6070063f42
1,525
py
Python
5_AIOps/Mlflow.py
stormsinbrewing/Covid-19-Predictor
36bd768be8ac4aa81de86fe7f6bb592a7a711856
[ "MIT" ]
3
2021-05-22T02:03:57.000Z
2021-05-23T07:45:01.000Z
5_AIOps/Mlflow.py
stormsinbrewing/Covid-19-Predictor
36bd768be8ac4aa81de86fe7f6bb592a7a711856
[ "MIT" ]
null
null
null
5_AIOps/Mlflow.py
stormsinbrewing/Covid-19-Predictor
36bd768be8ac4aa81de86fe7f6bb592a7a711856
[ "MIT" ]
null
null
null
from verta import Client import pickle import mlflow import mlflow.sklearn from mlflow.tracking import MlflowClient import os def downloadArtifact(proj,exp_name,exp_run, serialization): client = Client("http://localhost:3000") proj = client.set_project(proj) expt = client.set_experiment(exp_name) run ...
36.309524
182
0.72459
0
0
0
0
0
0
0
0
633
0.415082
6fc9dcd451ff1e384504442cc9b3cb27f7b5e6af
3,832
py
Python
src/arclink/apps/misc/dump_db.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
94
2015-02-04T13:57:34.000Z
2021-11-01T15:10:06.000Z
src/arclink/apps/misc/dump_db.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
233
2015-01-28T15:16:46.000Z
2021-08-23T11:31:37.000Z
src/arclink/apps/misc/dump_db.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
95
2015-02-13T15:53:30.000Z
2021-11-02T14:54:54.000Z
#!/usr/bin/env python #***************************************************************************** # dump_db.py # # Dump inventory database in XML format # # (c) 2006 Andres Heinloo, GFZ Potsdam # (c) 2007 Mathias Hoffmann, GFZ Potsdam # # This program is free software; you can redistribute it and/or modify it # und...
33.034483
111
0.592119
2,684
0.700418
0
0
0
0
0
0
897
0.234081
6fca5a30c5488af2b1fdbc0fc7967e56d0f30371
619
py
Python
ypricemagic/magic.py
cartercarlson/ypricemagic
f17fec155db7fb44ee624cd6e75193f17c6238cf
[ "MIT" ]
1
2022-03-28T16:07:07.000Z
2022-03-28T16:07:07.000Z
ypricemagic/magic.py
cartercarlson/ypricemagic
f17fec155db7fb44ee624cd6e75193f17c6238cf
[ "MIT" ]
null
null
null
ypricemagic/magic.py
cartercarlson/ypricemagic
f17fec155db7fb44ee624cd6e75193f17c6238cf
[ "MIT" ]
null
null
null
import logging from typing import Optional from y import magic from y.datatypes import UsdPrice from y.typing import AnyAddressType, Block logger = logging.getLogger(__name__) def get_price(token: AnyAddressType, block: Optional[Block] = None) -> UsdPrice: logger.warn('ypricemagic is in the process of being mig...
36.411765
85
0.704362
0
0
0
0
0
0
0
0
248
0.400646
6fcab68471b1398dafce699d3dbe1a96583efdf6
4,248
py
Python
zerver/tests/test_realm_playgrounds.py
moazzammoriani/zulip
ca506f71dc8b733827a6bf532b107291b4839e55
[ "Apache-2.0" ]
3
2021-09-12T05:05:28.000Z
2021-12-30T09:45:20.000Z
zerver/tests/test_realm_playgrounds.py
moazzammoriani/zulip
ca506f71dc8b733827a6bf532b107291b4839e55
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_realm_playgrounds.py
moazzammoriani/zulip
ca506f71dc8b733827a6bf532b107291b4839e55
[ "Apache-2.0" ]
null
null
null
from zerver.lib.actions import do_add_realm_playground from zerver.lib.test_classes import ZulipTestCase from zerver.models import RealmPlayground, get_realm class RealmPlaygroundTests(ZulipTestCase): def test_create_one_playground_entry(self) -> None: iago = self.example_user("iago") payload = {...
38.27027
96
0.62194
4,087
0.9621
0
0
0
0
0
0
1,333
0.313795
6fcb558a97ebc6e7f0af8053d4b5eef0ee0f741f
2,733
py
Python
seisflows/plugins/optimize/NLCG.py
niyiyu2316/seisflows
f861f1bf59b24854e7ca6a0dfc383f2dcd396969
[ "BSD-2-Clause" ]
1
2021-12-01T07:37:57.000Z
2021-12-01T07:37:57.000Z
seisflows/plugins/optimize/NLCG.py
niyiyu/seisflows
f861f1bf59b24854e7ca6a0dfc383f2dcd396969
[ "BSD-2-Clause" ]
null
null
null
seisflows/plugins/optimize/NLCG.py
niyiyu/seisflows
f861f1bf59b24854e7ca6a0dfc383f2dcd396969
[ "BSD-2-Clause" ]
null
null
null
# # This is Seisflows # # See LICENCE file # # ############################################################################### # Import system modules import os # Import Numpy import numpy as np # Local imports from seisflows.tools import unix from seisflows.tools.math import dot from seisflows.tools.tools import lo...
24.621622
79
0.559458
1,861
0.680937
0
0
0
0
0
0
569
0.208196