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
1d08ffcc3348bfa440b3477262067290d3893191
3,043
py
Python
wyggles/wyggle/dna.py
kfields/wyggles-arcade
f9cfafa15247e09f21aa06c2fe2f2ca1347b672a
[ "MIT" ]
1
2020-03-15T23:10:12.000Z
2020-03-15T23:10:12.000Z
wyggles/wyggle/dna.py
kfields/wyggles-arcade
f9cfafa15247e09f21aa06c2fe2f2ca1347b672a
[ "MIT" ]
null
null
null
wyggles/wyggle/dna.py
kfields/wyggles-arcade
f9cfafa15247e09f21aa06c2fe2f2ca1347b672a
[ "MIT" ]
null
null
null
import math import random from PIL import Image import cairo from wyggles import Dna PI = math.pi RADIUS = 32 WIDTH = RADIUS HEIGHT = RADIUS
27.917431
94
0.550772
1d09f4af7ac6dd139ab8ee8934a37f14f97144a4
17,847
py
Python
scripts/trajectories.py
Miedema/MCNetwork
daab1fe5880c47695c6e21124f99aa6b2589aba1
[ "Apache-2.0" ]
null
null
null
scripts/trajectories.py
Miedema/MCNetwork
daab1fe5880c47695c6e21124f99aa6b2589aba1
[ "Apache-2.0" ]
null
null
null
scripts/trajectories.py
Miedema/MCNetwork
daab1fe5880c47695c6e21124f99aa6b2589aba1
[ "Apache-2.0" ]
1
2021-10-05T14:34:30.000Z
2021-10-05T14:34:30.000Z
#!/usr/bin/python3 from tools import * from sys import argv from os.path import join import h5py import matplotlib.pylab as plt from matplotlib.patches import Wedge import numpy as np if len(argv) > 1: pathToSimFolder = argv[1] else: pathToSimFolder = "../data/" parameters, electrodes = readParameters(pathT...
36.646817
197
0.428083
1d0a47a3797d1d7c500c16f2bd41153122397e81
1,187
py
Python
rest_framework_sav/views.py
JamesRitchie/django-rest-framework-session-endpoint
a968129be88a1981d9904c3679e5fdd9490e890d
[ "BSD-2-Clause" ]
21
2015-03-04T09:25:47.000Z
2019-11-08T14:19:24.000Z
rest_framework_sav/views.py
JamesRitchie/django-rest-framework-session-endpoint
a968129be88a1981d9904c3679e5fdd9490e890d
[ "BSD-2-Clause" ]
1
2015-03-04T09:26:17.000Z
2015-03-11T13:10:20.000Z
rest_framework_sav/views.py
JamesRitchie/django-rest-framework-session-endpoint
a968129be88a1981d9904c3679e5fdd9490e890d
[ "BSD-2-Clause" ]
1
2020-05-17T04:16:27.000Z
2020-05-17T04:16:27.000Z
"""Views for Django Rest Framework Session Endpoint extension.""" from django.contrib.auth import login, logout from rest_framework import parsers, renderers from rest_framework.authtoken.serializers import AuthTokenSerializer from rest_framework.response import Response from rest_framework.views import APIView se...
30.435897
68
0.711879
1d0ef63ab672909bfeb78546b4b689de11692b51
4,348
py
Python
app.py
thesadru/genshinstats-api
0b0d3b62ee29e4617b74c2fa033c3488cf77fec0
[ "MIT" ]
7
2021-02-09T11:34:38.000Z
2021-07-27T10:39:30.000Z
app.py
thesadru/genshinstats-flask-api
0b0d3b62ee29e4617b74c2fa033c3488cf77fec0
[ "MIT" ]
4
2021-09-19T04:10:48.000Z
2021-12-04T22:13:22.000Z
app.py
thesadru/genshinstats-flask-api
0b0d3b62ee29e4617b74c2fa033c3488cf77fec0
[ "MIT" ]
2
2021-02-21T04:39:30.000Z
2021-08-16T04:22:43.000Z
import os import time from concurrent.futures import ThreadPoolExecutor from enum import Enum from hashlib import sha256 from typing import List, Type import genshinstats as gs from cachetools import TTLCache from fastapi import Depends, FastAPI, HTTPException, Path, Query, Request from fastapi.responses import JSONRe...
33.96875
108
0.691122
1d0f4c5eb9d4c29e42a28ad69535879d4ee1dd48
940
py
Python
tests/integration/serialization_test.py
markowanga/stweet
7f103b5c88fcef1d993d8cdc99cec358e55293f7
[ "MIT" ]
101
2020-11-22T16:44:25.000Z
2022-03-30T08:42:07.000Z
tests/integration/serialization_test.py
markowanga/stweet
7f103b5c88fcef1d993d8cdc99cec358e55293f7
[ "MIT" ]
53
2020-11-21T19:40:36.000Z
2022-03-02T10:09:52.000Z
tests/integration/serialization_test.py
markowanga/stweet
7f103b5c88fcef1d993d8cdc99cec358e55293f7
[ "MIT" ]
16
2020-12-12T23:02:51.000Z
2022-03-01T12:10:32.000Z
import pytest import stweet as st from tests.test_util import get_temp_test_file_name, get_tweets_to_tweet_output_test, \ two_lists_assert_equal
33.571429
87
0.787234
0dfccc824d2f975fcc92e6cabd32a3783f6c5d15
391
py
Python
scripts/python/calculus/ch2.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
1
2015-08-15T05:25:35.000Z
2015-08-15T05:25:35.000Z
scripts/python/calculus/ch2.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
null
null
null
scripts/python/calculus/ch2.py
jeremiahmarks/dangerzone
fe2946b8463ed018d2136ca0eb178161ad370565
[ "MIT" ]
null
null
null
# from mypy.physics import constants def averageVelocity(positionEquation, startTime, endTime): """ The position equation is in the form of a one variable lambda and the averagevelocity=(changeinposition)/(timeelapsed) """ startTime=float(startTime) endTime=float(endTime) vAvg=(positionEquation(star...
24.4375
82
0.762148
0dfde004acc4ea83cf0c183251d4f37479f7e957
690
py
Python
Maths_And_Stats/Number_Theory/Segmented_Sieve/segmented_sieve.py
arslantalib3/algo_ds_101
a1293f407e00b8346f93e8770727f769e7add00e
[ "MIT" ]
182
2020-10-01T17:16:42.000Z
2021-10-04T17:52:49.000Z
Maths_And_Stats/Number_Theory/Segmented_Sieve/segmented_sieve.py
arslantalib3/algo_ds_101
a1293f407e00b8346f93e8770727f769e7add00e
[ "MIT" ]
759
2020-10-01T00:12:21.000Z
2021-10-04T19:35:11.000Z
Maths_And_Stats/Number_Theory/Segmented_Sieve/segmented_sieve.py
arslantalib3/algo_ds_101
a1293f407e00b8346f93e8770727f769e7add00e
[ "MIT" ]
1,176
2020-10-01T16:02:13.000Z
2021-10-04T19:20:19.000Z
#Test while True: try: input_value = int(input("Please a number: ")) segmented_sieve(input_value) break except ValueError: print("No valid integer! Please try again ...")
25.555556
74
0.569565
df02884c6d0111c6be162d57811e3b0d85ecd572
2,003
py
Python
setup.py
UCL/scikit-surgerytf
b81ae994c44da790b101b868d12dd20b6d862df3
[ "Apache-2.0" ]
null
null
null
setup.py
UCL/scikit-surgerytf
b81ae994c44da790b101b868d12dd20b6d862df3
[ "Apache-2.0" ]
41
2020-06-15T12:13:06.000Z
2022-03-22T19:04:48.000Z
setup.py
UCL/scikit-surgerytf
b81ae994c44da790b101b868d12dd20b6d862df3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ Setup for scikit-surgerytf """ from setuptools import setup, find_packages import versioneer # Get the long description with open('README.rst') as f: long_description = f.read() setup( name='scikit-surgerytf', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), ...
27.819444
94
0.62656
df04608972e31495e8f964d15c9dd90a93f28d89
2,155
py
Python
Codigos Python/String_to_int.py
BrunoHarlis/Solucoes_LeetCode
cca9b1331cbfe7d8dc8d844a810ac651a92d8c97
[ "MIT" ]
null
null
null
Codigos Python/String_to_int.py
BrunoHarlis/Solucoes_LeetCode
cca9b1331cbfe7d8dc8d844a810ac651a92d8c97
[ "MIT" ]
null
null
null
Codigos Python/String_to_int.py
BrunoHarlis/Solucoes_LeetCode
cca9b1331cbfe7d8dc8d844a810ac651a92d8c97
[ "MIT" ]
null
null
null
# Fonte: https://leetcode.com/problems/string-to-integer-atoi/ # Autor: Bruno Harlis # Data: 03/08/2021 """ Implemente a funo myAtoi(string s), que converte uma string em um inteiro assinado de 32 bits (semelhante funo C / C ++ atoi). O algoritmo para myAtoi(string s) o seguinte: Leia e ignore qualquer espao em br...
30.352113
98
0.644084
df0469beb5c62575548fc779498cc9b3a9cc1490
1,547
py
Python
tests/bench_bgra2rgb.py
RedFantom/python-mss
7e26de184b1e6a0800231b01451f794087a76f73
[ "MIT" ]
null
null
null
tests/bench_bgra2rgb.py
RedFantom/python-mss
7e26de184b1e6a0800231b01451f794087a76f73
[ "MIT" ]
null
null
null
tests/bench_bgra2rgb.py
RedFantom/python-mss
7e26de184b1e6a0800231b01451f794087a76f73
[ "MIT" ]
null
null
null
# coding: utf-8 """ 2018-03-19. Maximum screenshots in 1 second by computing BGRA raw values to RGB. GNU/Linux pil_frombytes 139 mss_rgb 119 pil_frombytes_rgb 51 numpy_flip 31 numpy_slice 29 macOS pil_frombytes 209 mss_rgb 174 pil_frombytes_rgb 113 numpy_fl...
19.582278
76
0.580478
df06fb8878eee413e40a010aae2c0a5236a2dce0
431
py
Python
app1/migrations/0002_auto_20210925_0546.py
rianaansari/My_library
95b817ac2760d9dcb43b7cfff053056cfe3eb12d
[ "Apache-2.0" ]
null
null
null
app1/migrations/0002_auto_20210925_0546.py
rianaansari/My_library
95b817ac2760d9dcb43b7cfff053056cfe3eb12d
[ "Apache-2.0" ]
null
null
null
app1/migrations/0002_auto_20210925_0546.py
rianaansari/My_library
95b817ac2760d9dcb43b7cfff053056cfe3eb12d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-25 05:46 from django.db import migrations
19.590909
47
0.559165
df0719c519efa5ba53c3190dcb91a4426cd19f1a
672
py
Python
third_party/blink/renderer/bindings/scripts/blink_idl_parser_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
third_party/blink/renderer/bindings/scripts/blink_idl_parser_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
third_party/blink/renderer/bindings/scripts/blink_idl_parser_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # pylint: disable=no-member,relative-import """Unit tests for blink_idl_parser.py.""" import unittest from blink_idl_parser import BlinkIDLParser
33.6
76
0.730655
df0a77a4b3e3c8e88b291a3d6e1f829363ad81e7
1,705
py
Python
encode.py
Kyobito/Pencil-Unrefined
352a0281a00129a4e5d8d793997d09c0a29a1c7c
[ "MIT" ]
null
null
null
encode.py
Kyobito/Pencil-Unrefined
352a0281a00129a4e5d8d793997d09c0a29a1c7c
[ "MIT" ]
null
null
null
encode.py
Kyobito/Pencil-Unrefined
352a0281a00129a4e5d8d793997d09c0a29a1c7c
[ "MIT" ]
null
null
null
import calc
32.788462
144
0.575953
df0aff4197ef0ad00e311fbd3784ea4b9b5eea37
2,142
py
Python
snuba/utils/types.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
snuba/utils/types.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
snuba/utils/types.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from typing import Any, Generic, TypeVar from typing_extensions import Protocol TComparable = TypeVar("TComparable", contravariant=True) T = TypeVar("T", bound=Comparable[Any])
31.5
86
0.723156
df0b8deb7b8139e6384b8790377b34bff7533519
2,725
py
Python
ACME/render/renderer.py
mauriziokovacic/ACME
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
3
2019-10-23T23:10:55.000Z
2021-09-01T07:30:14.000Z
ACME/render/renderer.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
null
null
null
ACME/render/renderer.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
1
2020-07-11T11:35:43.000Z
2020-07-11T11:35:43.000Z
import neural_renderer as nr from ..math.unitvec import *
27.806122
80
0.601468
df0c2bb253afbf6cb0b5b41d83b69d48eccf038f
6,241
py
Python
src/codeGameSimulation/Multirun.py
LukasWallisch/game-ur-analysis
760a892cc20924cf1864b9602c5d3239a8995323
[ "MIT" ]
null
null
null
src/codeGameSimulation/Multirun.py
LukasWallisch/game-ur-analysis
760a892cc20924cf1864b9602c5d3239a8995323
[ "MIT" ]
null
null
null
src/codeGameSimulation/Multirun.py
LukasWallisch/game-ur-analysis
760a892cc20924cf1864b9602c5d3239a8995323
[ "MIT" ]
null
null
null
import copy from datetime import datetime from typing import List, Tuple from .store2db import createTabels, store_data_2_db from .GameUr import GameUr from .GameSettings import GameSettings import multiprocessing as mp import tqdm
34.291209
214
0.620253
df0c4609dc3d7030697a254872dda6cfb67438db
641
py
Python
setup.py
Wirtos/aioregex
b426fb99769d54d627e189bd058c4b724559fb80
[ "MIT" ]
null
null
null
setup.py
Wirtos/aioregex
b426fb99769d54d627e189bd058c4b724559fb80
[ "MIT" ]
null
null
null
setup.py
Wirtos/aioregex
b426fb99769d54d627e189bd058c4b724559fb80
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="aioregex", version="0.1", author="Wirtos_new", author_email="Wirtos.new@gmail.com", description="regex to allow both sync and async callables in the sub as repl", url="https://wirtos.github.io/aioregex/", packages=setuptools.find_packages(), pro...
29.136364
82
0.639626
df0edbdfa3781bf2e4a9e3ef7d2addd8064bef5a
830
py
Python
scripts/pyqtgraph-develop/pyqtgraph/pixmaps/__init__.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
scripts/pyqtgraph-develop/pyqtgraph/pixmaps/__init__.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
scripts/pyqtgraph-develop/pyqtgraph/pixmaps/__init__.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
""" Allows easy loading of pixmaps used in UI elements. Provides support for frozen environments as well. """ import os, sys, pickle from ..functions import makeQImage from ..Qt import QtGui from ..python2_3 import basestring if sys.version_info[0] == 2: from . import pixmapData_2 as pixmapData else: ...
29.642857
74
0.687952
df0f2509e6da533aefb1f279bb6e3f848aa2f366
7,920
py
Python
defx/metrics/f1_measure.py
DFKI-NLP/defx
0c8b7a5ff4904a54e28f187b938198744e4a450a
[ "MIT" ]
5
2020-04-29T07:41:58.000Z
2021-12-09T10:07:08.000Z
defx/metrics/f1_measure.py
DFKI-NLP/defx
0c8b7a5ff4904a54e28f187b938198744e4a450a
[ "MIT" ]
1
2020-10-17T16:51:06.000Z
2020-10-27T13:44:35.000Z
defx/metrics/f1_measure.py
DFKI-NLP/defx
0c8b7a5ff4904a54e28f187b938198744e4a450a
[ "MIT" ]
null
null
null
from statistics import mean from typing import Dict, List, Optional, Set from collections import defaultdict import torch from allennlp.common.checks import ConfigurationError from allennlp.nn.util import get_lengths_from_binary_sequence_mask from allennlp.data.vocabulary import Vocabulary from allennlp.training.metr...
42.580645
96
0.597348
df102fd4bc161dbff752d14a5d6d5415a2686808
78
py
Python
test/test.py
hcamacho4200/dev_opts_training
6ce91cbeb30af7eae29c084f6180d53f64f5e9b0
[ "Apache-2.0" ]
1
2021-10-03T22:23:06.000Z
2021-10-03T22:23:06.000Z
test/test.py
hcamacho4200/dev_opts_training
6ce91cbeb30af7eae29c084f6180d53f64f5e9b0
[ "Apache-2.0" ]
null
null
null
test/test.py
hcamacho4200/dev_opts_training
6ce91cbeb30af7eae29c084f6180d53f64f5e9b0
[ "Apache-2.0" ]
1
2021-12-11T19:24:59.000Z
2021-12-11T19:24:59.000Z
def test_test(): """A generic test :return: """ assert True
9.75
21
0.512821
df10a23870978fcf9c8629fcbb01b511ca18a8b5
833
py
Python
create.py
felipesantoos/mython
ef4e91a1177ecdd3a6ecea5cd6a6605a084ea5a6
[ "MIT" ]
null
null
null
create.py
felipesantoos/mython
ef4e91a1177ecdd3a6ecea5cd6a6605a084ea5a6
[ "MIT" ]
null
null
null
create.py
felipesantoos/mython
ef4e91a1177ecdd3a6ecea5cd6a6605a084ea5a6
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # Importao das bibliotecas necessrias. import mysql.connector import datetime # Configurao da conexo. connection = mysql.connector.connect( host="localhost", user="root", password="", database="teste" ) # Varivel que executar as operaes. cursor = connection.cursor() # Coman...
21.358974
68
0.711885
df114fd76f5bb86b26cb7eeb35dd8decd3116f90
10,814
py
Python
pydm/tests/widgets/test_enum_combo_box.py
KurtJacobson/pydm
5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d
[ "BSD-3-Clause-LBNL" ]
89
2016-05-25T22:01:48.000Z
2022-03-02T16:21:03.000Z
pydm/tests/widgets/test_enum_combo_box.py
KurtJacobson/pydm
5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d
[ "BSD-3-Clause-LBNL" ]
653
2016-10-15T01:45:02.000Z
2022-03-31T23:36:39.000Z
pydm/tests/widgets/test_enum_combo_box.py
KurtJacobson/pydm
5a5cbc6cdb218b77335a3c4ad57a4a49e060e20d
[ "BSD-3-Clause-LBNL" ]
56
2016-10-10T14:02:06.000Z
2022-03-24T14:35:24.000Z
# Unit Tests for the Enum Combo Box import pytest from logging import ERROR from qtpy.QtCore import Slot, Qt from ...widgets.enum_combo_box import PyDMEnumComboBox from ... import data_plugins # -------------------- # POSITIVE TEST CASES # -------------------- def test_construct(qtbot): """ Test the const...
35.92691
118
0.69447
df122415da47ec1ae7bcf4c6c1f60a16cd13570e
7,421
py
Python
byol_train.py
jhvics1/pytorch-byol
e66a5f72a7d124578109fcee43062eb88b0fabf1
[ "MIT" ]
null
null
null
byol_train.py
jhvics1/pytorch-byol
e66a5f72a7d124578109fcee43062eb88b0fabf1
[ "MIT" ]
null
null
null
byol_train.py
jhvics1/pytorch-byol
e66a5f72a7d124578109fcee43062eb88b0fabf1
[ "MIT" ]
null
null
null
import os import random import argparse import multiprocessing import numpy as np import torch from torchvision import models, transforms from torch.utils.data import DataLoader, Dataset from pathlib import Path from PIL import Image from utils import Bar, config, mkdir_p, AverageMeter from datetime import datetime fro...
38.450777
118
0.566905
df1524fa7728c1adb3ef0c319a786a66845f1e94
159
py
Python
Problems/dicecup.py
rikgj/Kattis
2e34dee307aef5acea5837732bf9f27f8c548e9c
[ "MIT" ]
null
null
null
Problems/dicecup.py
rikgj/Kattis
2e34dee307aef5acea5837732bf9f27f8c548e9c
[ "MIT" ]
null
null
null
Problems/dicecup.py
rikgj/Kattis
2e34dee307aef5acea5837732bf9f27f8c548e9c
[ "MIT" ]
null
null
null
from sys import stdin a,b = [int(x) for x in stdin.readline().split(' ')] diff = abs(a-b) +1 a = min(a,b) +1 print(a) for x in range(1,diff): print(a+x)
15.9
51
0.591195
df15ead6214feb74fc04cc18939e4d0ebbd4fa53
2,338
py
Python
Castessoft_Python/Castessoft_Dahianna.py
JuanDiegoCastellanos/All-in-one-Python-Full
ba28a3d129a060d5a83c1d99ff97cf5c9d3d2afa
[ "MIT" ]
1
2021-11-23T02:46:50.000Z
2021-11-23T02:46:50.000Z
Castessoft_Python/Castessoft_Dahianna.py
JuanDiegoCastellanos/All-in-one-Python-Full
ba28a3d129a060d5a83c1d99ff97cf5c9d3d2afa
[ "MIT" ]
null
null
null
Castessoft_Python/Castessoft_Dahianna.py
JuanDiegoCastellanos/All-in-one-Python-Full
ba28a3d129a060d5a83c1d99ff97cf5c9d3d2afa
[ "MIT" ]
null
null
null
import os app = Cajero()
31.173333
92
0.47006
df16a9b6f456a271a02043344bd7fec5b2e043ce
77,732
py
Python
modules.py
faber6/kings-raid-daily
07b5a6fc9a827dd7e536ff9643217393fb86c097
[ "MIT" ]
null
null
null
modules.py
faber6/kings-raid-daily
07b5a6fc9a827dd7e536ff9643217393fb86c097
[ "MIT" ]
null
null
null
modules.py
faber6/kings-raid-daily
07b5a6fc9a827dd7e536ff9643217393fb86c097
[ "MIT" ]
null
null
null
from threading import Thread, enumerate from random import choice from time import sleep as slp from time import time as tiime from os import mkdir, getcwd, path as pth from subprocess import run as run_ from math import ceil from traceback import format_exc from sys import exit import logging, json, ctypes from ppadb...
48.980466
246
0.519503
df193d81eacd388f5ab18d96aacd2c5b1b7b5976
548
py
Python
sarikasama/0012/0012.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
sarikasama/0012/0012.py
oyesam7/python-1
220734af09fa09a6f615d4f1b4612a0ab75d91d1
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
sarikasama/0012/0012.py
oyesam7/python-1
220734af09fa09a6f615d4f1b4612a0ab75d91d1
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
#!/usr/bin/env python3 #filter sensitive words in user's input if __name__ == '__main__': while True: input_word = input('--> ') replace_sensitive_words(input_word)
27.4
55
0.600365
df1b5b5a58e2e52b261ca94c9d20882cbf00caf2
1,172
py
Python
moceansdk/modules/command/mc_object/tg_request_contact.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
2
2019-10-31T02:37:43.000Z
2021-07-25T02:45:27.000Z
moceansdk/modules/command/mc_object/tg_request_contact.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
18
2019-05-30T01:09:34.000Z
2022-01-04T07:31:47.000Z
moceansdk/modules/command/mc_object/tg_request_contact.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
4
2019-04-19T08:34:47.000Z
2021-07-21T02:02:07.000Z
from builtins import super from moceansdk.modules.command.mc_object import AbstractMc
29.3
65
0.610068
df1b80f7d7fc1e3bfcdf6202b6edd9c8fbec5f5f
5,418
py
Python
tests/engine/backend/test_multiprocess_backend.py
sanchitcop19/web-api-async
a3fff70c3b62678f3c8ef8cc07f7c9b4fe155c69
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/engine/backend/test_multiprocess_backend.py
sanchitcop19/web-api-async
a3fff70c3b62678f3c8ef8cc07f7c9b4fe155c69
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/engine/backend/test_multiprocess_backend.py
sanchitcop19/web-api-async
a3fff70c3b62678f3c8ef8cc07f7c9b4fe155c69
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
"""Test the execute method of the synchronous backend.""" import os import shutil import time import unittest from vizier.datastore.fs.factory import FileSystemDatastoreFactory from vizier.engine.backend.multiprocess import MultiProcessBackend from vizier.engine.controller import WorkflowController from vizier.engine...
33.444444
99
0.658546
df1b9a8dd49a7cba3147ab1d0bd9b08eace69dbb
1,496
py
Python
main.py
Stormjotne/oslomet-disease-model
6292d5b6f30fd385fccb3815994700cadd75c9fb
[ "MIT" ]
2
2021-09-06T11:43:39.000Z
2022-02-18T11:49:21.000Z
main.py
Stormjotne/oslomet-disease-model
6292d5b6f30fd385fccb3815994700cadd75c9fb
[ "MIT" ]
3
2021-09-15T12:10:42.000Z
2021-11-08T19:32:21.000Z
main.py
Stormjotne/oslomet-disease-model
6292d5b6f30fd385fccb3815994700cadd75c9fb
[ "MIT" ]
null
null
null
from time import sleep from random import random, uniform from OMDM import Evolution """ Run the model optimization program we're creating from this script. """ hyper_parameters = { "number_of_generations": 10, "genome_length": 6, "mutation_probability": 0.2, ...
36.487805
102
0.635695
df1f060044c4759d5a15d50dfadd88be86823530
688
py
Python
pyoat/__init__.py
berkanlafci/pyoat
b0cee99adde3c14c5d94f26f6e893a0b2e1fcae2
[ "MIT" ]
5
2022-03-07T16:30:58.000Z
2022-03-28T13:42:01.000Z
pyoat/__init__.py
berkanlafci/pyoat
b0cee99adde3c14c5d94f26f6e893a0b2e1fcae2
[ "MIT" ]
1
2022-03-28T13:41:42.000Z
2022-03-28T13:41:42.000Z
pyoat/__init__.py
berkanlafci/pyoat
b0cee99adde3c14c5d94f26f6e893a0b2e1fcae2
[ "MIT" ]
null
null
null
#----- # Description : Import classes/functions from subfolders # Date : February 2021 # Author : Berkan Lafci # E-mail : lafciberkan@gmail.com #----- # package version __version__ = "1.0.0" # oa recon codes from pyoat.reconstruction import cpuBP, cpuMB, modelOA # data readers from pyoat.rea...
25.481481
93
0.767442
df1f23556aeeff57ddaf501491d64b2becebf8b3
680
py
Python
game/cactus.py
gmunumel/trex404
3821e8695a0d9e85d70127a1c8b6bdb2a13f1e38
[ "MIT" ]
null
null
null
game/cactus.py
gmunumel/trex404
3821e8695a0d9e85d70127a1c8b6bdb2a13f1e38
[ "MIT" ]
null
null
null
game/cactus.py
gmunumel/trex404
3821e8695a0d9e85d70127a1c8b6bdb2a13f1e38
[ "MIT" ]
null
null
null
from game.globals import * from game.lib import load_sprite_sheet import pygame, random
32.380952
85
0.683824
df1f50b2cee471c44a5439e1ae4ca45519f52060
15,624
py
Python
src/api/auth/views/token_views.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/auth/views/token_views.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/auth/views/token_views.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE is licensed under the MIT License. License for BK-BASE : ---------------------------------------------------------------...
40.268041
111
0.609319
df1fe7022c513f9daa84d71c86c0ba7d7afec1ce
1,396
py
Python
fdrtd/builtins/util/kvstorage.py
chart21/fdrtd
c5f8ba84f8e367580572f2759683dfd3789b0b80
[ "MIT" ]
null
null
null
fdrtd/builtins/util/kvstorage.py
chart21/fdrtd
c5f8ba84f8e367580572f2759683dfd3789b0b80
[ "MIT" ]
10
2021-08-29T00:03:36.000Z
2022-02-18T09:19:38.000Z
fdrtd/builtins/util/kvstorage.py
chart21/fdrtd
c5f8ba84f8e367580572f2759683dfd3789b0b80
[ "MIT" ]
2
2021-08-28T21:44:10.000Z
2021-12-16T23:23:58.000Z
""" contains microservice KeyValueStorage """ import uuid as _uuid from fdrtd.server.microservice import Microservice
30.347826
55
0.626791
df22c7df4259c94d4e73cee307d40b33d12c2f03
739
py
Python
tests/unit/handlers/test_HTTPSClientAuthHandler.py
sivel/requisitor
c6b10d400111998591ea9e21148c9cd7e905a453
[ "Apache-2.0" ]
7
2020-04-17T04:05:19.000Z
2020-05-15T14:35:21.000Z
tests/unit/handlers/test_HTTPSClientAuthHandler.py
sivel/requisitor
c6b10d400111998591ea9e21148c9cd7e905a453
[ "Apache-2.0" ]
null
null
null
tests/unit/handlers/test_HTTPSClientAuthHandler.py
sivel/requisitor
c6b10d400111998591ea9e21148c9cd7e905a453
[ "Apache-2.0" ]
null
null
null
import pytest from requisitor.session import Session
26.392857
67
0.644114
df2437ca766dc3a07e7da531239e5dd32c32401c
1,773
py
Python
gracc-oneoffs/remove-odd-procs/remove-odd-procs.py
opensciencegrid/gracc-tools
86297d0a8b6b208b6c661473647fdc69f438afec
[ "Apache-2.0" ]
null
null
null
gracc-oneoffs/remove-odd-procs/remove-odd-procs.py
opensciencegrid/gracc-tools
86297d0a8b6b208b6c661473647fdc69f438afec
[ "Apache-2.0" ]
1
2017-06-17T19:25:51.000Z
2017-06-19T15:33:22.000Z
gracc-oneoffs/remove-odd-procs/remove-odd-procs.py
opensciencegrid/gracc-tools
86297d0a8b6b208b6c661473647fdc69f438afec
[ "Apache-2.0" ]
2
2017-06-16T20:07:38.000Z
2017-06-17T15:03:18.000Z
#!/usr/bin/python import elasticsearch from elasticsearch_dsl import Search, A, Q #import logging import sys import os #logging.basicConfig(level=logging.WARN) #es = elasticsearch.Elasticsearch( # ['https://gracc.opensciencegrid.org/q'], # timeout=300, use_ssl=True, verify_certs=False) es = elasticsea...
30.568966
128
0.667795
df2507bcc55adf702b1c6993e0b76f7f643ef8d6
849
py
Python
Hasoc/create_folds.py
tezike/Hasoc
b29c5ec877a1751b04f86227a6ad264be8c06d81
[ "Apache-2.0" ]
1
2020-11-24T07:48:55.000Z
2020-11-24T07:48:55.000Z
Hasoc/create_folds.py
tezike/Hasoc
b29c5ec877a1751b04f86227a6ad264be8c06d81
[ "Apache-2.0" ]
null
null
null
Hasoc/create_folds.py
tezike/Hasoc
b29c5ec877a1751b04f86227a6ad264be8c06d81
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/create_folds.ipynb (unless otherwise specified). __all__ = ['df', 'df', 'y', 'kf', 'df', 'y'] # Cell import os import pandas as pd from sklearn.model_selection import StratifiedKFold # Cell df = pd.read_csv(os.path.join('../data', 'en_task_a', 'hasoc_2020_en_train_new...
29.275862
96
0.684335
df25b7352e71e86d55c9c932e24f93a40dcbb932
6,976
py
Python
heat/tests/test_components.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
heat/tests/test_components.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
heat/tests/test_components.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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...
31.853881
78
0.502437
df2669595a23ceb9c2346db6112762dd8108f2e5
55,075
py
Python
pycstruct/pycstruct.py
midstar/pycstruct
3430507e24a84ceb3ad409ddb43ed7f0934d48d2
[ "MIT" ]
14
2020-07-05T08:58:48.000Z
2022-01-25T04:43:41.000Z
pycstruct/pycstruct.py
zbx911/pycstruct
3430507e24a84ceb3ad409ddb43ed7f0934d48d2
[ "MIT" ]
15
2020-11-15T10:52:46.000Z
2021-05-21T08:54:05.000Z
pycstruct/pycstruct.py
zbx911/pycstruct
3430507e24a84ceb3ad409ddb43ed7f0934d48d2
[ "MIT" ]
2
2021-02-13T13:34:40.000Z
2022-01-25T04:40:14.000Z
"""pycstruct definitions Copyright 2021 by Joel Midstjrna. All rights reserved. This file is part of the pycstruct python library and is released under the "MIT License Agreement". Please see the LICENSE file that should have been included as part of this package. """ # pylint: disable=too-many-lines, protected-acces...
36.692205
95
0.544458
df271127c105441127867b0671133734b58e3154
1,103
py
Python
cosymlib/simulation/__init__.py
GrupEstructuraElectronicaSimetria/cosymlib
04ac536c7c75b638e84079bacd0ece70226fdc03
[ "MIT" ]
null
null
null
cosymlib/simulation/__init__.py
GrupEstructuraElectronicaSimetria/cosymlib
04ac536c7c75b638e84079bacd0ece70226fdc03
[ "MIT" ]
8
2020-12-11T00:58:46.000Z
2021-07-16T11:27:46.000Z
cosymlib/simulation/__init__.py
GrupEstructuraElectronicaSimetria/cosymlib
04ac536c7c75b638e84079bacd0ece70226fdc03
[ "MIT" ]
null
null
null
import huckelpy from huckelpy import file_io
30.638889
107
0.696283
df2add4292563c4782461ccc1a9f4bd18f1826e0
293
py
Python
ex012.py
sml07/Meus-Estudos-Python
8f06ec8ad170674cd0cc5cf792b5647dbb894a1c
[ "MIT" ]
null
null
null
ex012.py
sml07/Meus-Estudos-Python
8f06ec8ad170674cd0cc5cf792b5647dbb894a1c
[ "MIT" ]
null
null
null
ex012.py
sml07/Meus-Estudos-Python
8f06ec8ad170674cd0cc5cf792b5647dbb894a1c
[ "MIT" ]
null
null
null
#Faa um algoritimo que leia o preo de um produto e mostre o seu novo preo com 5% de desconto. price = float(input("Digite o preo do produto: ")) sale = price - (price * 0.05) print("O valor bruto do produto : {:.2f}R$.".format(price)) print("Com o desconto de 5%: {:.2f}R$".format(sale))
48.833333
96
0.682594
df2c143e3b261adc27b58c068491f0de1cd09b82
514
py
Python
tests/r/test_bcdeter.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_bcdeter.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_bcdeter.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.bcdeter import bcdeter def test_bcdeter(): """Test module bcdeter.py by downloading bcdeter.csv and testing shape of extracted data has 95...
21.416667
43
0.752918
df2cb555b3dc2db771abca035af0535436996ced
47
py
Python
multi_parser/shared/__init__.py
ilya-mezentsev/multi-parser
2d418f38a102fdad826912d4335242a269a26602
[ "MIT" ]
14
2020-08-09T06:12:06.000Z
2022-03-10T13:16:57.000Z
multi_parser/shared/__init__.py
ilya-mezentsev/multi-parser
2d418f38a102fdad826912d4335242a269a26602
[ "MIT" ]
14
2020-08-05T06:18:30.000Z
2021-12-13T21:19:38.000Z
example/store/serializers/__init__.py
defineimpossible/django-rest-batteries
d83dc67b6e91ae1a9c7625606a66b59d83936947
[ "MIT" ]
null
null
null
from .request import * from .response import *
15.666667
23
0.744681
df2d3c177128f55f32693c0a0f67186e9894a707
4,900
py
Python
wmf_embed/core/lang_embedding.py
shilad/wmf-embeddings
353556dfbb36e1f70eec7e618cfd989d7ae08de5
[ "Apache-2.0" ]
null
null
null
wmf_embed/core/lang_embedding.py
shilad/wmf-embeddings
353556dfbb36e1f70eec7e618cfd989d7ae08de5
[ "Apache-2.0" ]
null
null
null
wmf_embed/core/lang_embedding.py
shilad/wmf-embeddings
353556dfbb36e1f70eec7e618cfd989d7ae08de5
[ "Apache-2.0" ]
null
null
null
import logging import math import os.path import re import annoy import numpy as np from gensim.models import KeyedVectors from gensim.utils import to_unicode from smart_open import smart_open from .utils import NP_FLOAT MIN_SIZE = 10000
31.612903
96
0.584898
df2e07d7991cf110f3461188f42f2cc6d3136eb8
13,819
py
Python
test/util/test_function_factory.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
test/util/test_function_factory.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
test/util/test_function_factory.py
ediphy-dwild/gpytorch
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
[ "MIT" ]
null
null
null
import math import torch import unittest import gpytorch import numpy as np from torch.autograd import Variable from gpytorch.utils import approx_equal, function_factory from gpytorch.lazy import NonLazyVariable _exact_gp_mll_class = function_factory.exact_gp_mll_factory() if __name__ == '__main__': unittest.m...
33.460048
87
0.530284
df2e0882b40078ee113337bd905da77e518c2210
5,016
py
Python
tests/boardfarm_plugins/boardfarm_prplmesh/tests/ap_config_bss_tear_down.py
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
tests/boardfarm_plugins/boardfarm_prplmesh/tests/ap_config_bss_tear_down.py
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
tests/boardfarm_plugins/boardfarm_prplmesh/tests/ap_config_bss_tear_down.py
SWRT-dev/easymesh
12d902edde77599e074c0535f7256499b08f7494
[ "BSD-3-Clause", "BSD-2-Clause-Patent", "MIT" ]
null
null
null
# SPDX-License-Identifier: BSD-2-Clause-Patent # SPDX-FileCopyrightText: 2020 the prplMesh contributors (see AUTHORS.md) # This code is subject to the terms of the BSD+Patent license. # See LICENSE file for more details. from .prplmesh_base_test import PrplMeshBaseTest from boardfarm.exceptions import SkipTest from ca...
50.16
100
0.547049
df2f4471a03807c5058e593384972868df67d33c
709
py
Python
taller_estructuras_de_control/codigo_python_ejercicios/ejercicio_9.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
taller_estructuras_de_control/codigo_python_ejercicios/ejercicio_9.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
taller_estructuras_de_control/codigo_python_ejercicios/ejercicio_9.py
JMosqueraM/algoritmos_y_programacion
30dc179b976f1db24401b110496250fbcb98938e
[ "MIT" ]
null
null
null
#Calcular el salario neto de un tnrabajador en fucion del numero de horas trabajadas, el precio de la hora #y el descuento fijo al sueldo base por concepto de impuestos del 20% horas = float(input("Ingrese el numero de horas trabajadas: ")) precio_hora = float(input("Ingrese el precio por hora trabajada: ")) sueldo_ba...
59.083333
175
0.753173
df321ec897b131393422f40ec400fe5025edb45a
3,189
py
Python
cs15211/BattleshipsInABoard.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/BattleshipsInABoard.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/BattleshipsInABoard.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://github.com/kamyu104/LeetCode/blob/master/Python/battleships-in-a-board.py' # Time: O(m * n) # Space: O(1) # # # Description: 419. Battleships in a Board # # Given an 2D board, count how many different battleships are in it. # The battleships are represented with 'X's, empty slots are represented ...
31.574257
105
0.558169
df32fca4523247442d3692d3063e54af001152c8
8,823
py
Python
catch_video.py
ZXin0305/hri
b91d89158fc2d05ca4d3ea3ba4a7b9f69b0221a2
[ "Apache-2.0" ]
null
null
null
catch_video.py
ZXin0305/hri
b91d89158fc2d05ca4d3ea3ba4a7b9f69b0221a2
[ "Apache-2.0" ]
null
null
null
catch_video.py
ZXin0305/hri
b91d89158fc2d05ca4d3ea3ba4a7b9f69b0221a2
[ "Apache-2.0" ]
null
null
null
import rospy from sensor_msgs.msg import Image from cv_bridge import CvBridge import message_filters import cv2 import torch import torchvision.transforms as transforms from exps.stage3_root2.config import cfg # from demo import process_video from model.main_model.smap import SMAP from model.refine_model.refinenet imp...
44.560606
131
0.591976
df33b007b3652a76cfc302baf9ffe1c7ec0e5ef1
3,176
py
Python
bouncer.py
pard68/epub-bouncer
6a4e09e24816ac4fc25450148665901db9166202
[ "MIT" ]
null
null
null
bouncer.py
pard68/epub-bouncer
6a4e09e24816ac4fc25450148665901db9166202
[ "MIT" ]
null
null
null
bouncer.py
pard68/epub-bouncer
6a4e09e24816ac4fc25450148665901db9166202
[ "MIT" ]
null
null
null
from typing import Dict import correct_spellings import epub_handling import xml_handling import argparse import string import re # --------------------------------------------------------------------------------------------------- if __name__ == '__main__': main()
39.209877
105
0.675378
df33dc1de2ad7edcc4ac043bb10df37be20e5ae7
2,119
py
Python
detect.py
MahmudulAlam/Object-Detection-Using-GPM
52662eb9f8bf98fc8b2282bb8edd409a49e99bf9
[ "MIT" ]
1
2022-02-15T21:18:18.000Z
2022-02-15T21:18:18.000Z
detect.py
MahmudulAlam/Object-Detection-Using-GPM
52662eb9f8bf98fc8b2282bb8edd409a49e99bf9
[ "MIT" ]
2
2022-01-14T16:09:36.000Z
2022-03-07T14:54:36.000Z
detect.py
MahmudulAlam/Object-Detection-Using-GPM
52662eb9f8bf98fc8b2282bb8edd409a49e99bf9
[ "MIT" ]
null
null
null
import cv2 import pickle import numpy as np from flag import Flag flag = Flag() with open('assets/colors.h5', 'rb') as f: colors = pickle.loads(f.read()) with open('label.txt', 'r') as f: classes = f.readlines() if __name__ == '__main__': flag = Flag() images = np.load('dataset/valid_x.npy') la...
34.737705
119
0.568193
df340b5a3a3411a900f306d493ae8fc3d70d7cb5
760
py
Python
instabot/liking.py
jakerobinson19/instabot
a5a2d23cc3791d79a2cfeb469144eb92c24e402c
[ "MIT" ]
1
2020-03-03T03:54:56.000Z
2020-03-03T03:54:56.000Z
instabot/liking.py
jakerobinson19/instabot
a5a2d23cc3791d79a2cfeb469144eb92c24e402c
[ "MIT" ]
null
null
null
instabot/liking.py
jakerobinson19/instabot
a5a2d23cc3791d79a2cfeb469144eb92c24e402c
[ "MIT" ]
null
null
null
import retrieve import validation from time_functions import time_delay from selenium.webdriver import ActionChains
24.516129
60
0.663158
df342c2f47ed154f18acbafb3221d18351eb0056
1,261
py
Python
tollan/utils/qt/colors.py
toltec-astro/tollan
36a78224ceef4145be1c5acca734b5c317eb7ba8
[ "BSD-3-Clause" ]
null
null
null
tollan/utils/qt/colors.py
toltec-astro/tollan
36a78224ceef4145be1c5acca734b5c317eb7ba8
[ "BSD-3-Clause" ]
null
null
null
tollan/utils/qt/colors.py
toltec-astro/tollan
36a78224ceef4145be1c5acca734b5c317eb7ba8
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import matplotlib.colors as mc import numpy as np import re
24.25
67
0.516257
df3491f1b4f4fb22d702912bfddd659bd45a728d
8,941
py
Python
mom/itertools.py
ands904/ands904-tinypyclone
6a5427940a03058abf08de2a20aa45a929fd21ad
[ "ECL-2.0", "Apache-2.0" ]
16
2015-01-06T19:21:19.000Z
2021-11-17T16:57:26.000Z
mom/itertools.py
ands904/ands904-tinypyclone
6a5427940a03058abf08de2a20aa45a929fd21ad
[ "ECL-2.0", "Apache-2.0" ]
1
2019-04-15T11:18:32.000Z
2019-04-15T11:18:32.000Z
mom/itertools.py
ands904/ands904-tinypyclone
6a5427940a03058abf08de2a20aa45a929fd21ad
[ "ECL-2.0", "Apache-2.0" ]
3
2015-06-17T04:15:35.000Z
2019-04-15T11:16:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """:synopsis: Implements :mod:`itertools` for older versions of Python. :module: mom.itertools :copyright: 2010-2011 by Daniel Neuhuser :license: BSD, PSF Borrowed from brownie.itools. """ from __future__ import absolute_import import itertools from mom import builtins ...
30.515358
80
0.683369
df36ad0e12226dcc75dd2b44297a2b45a5264918
6,377
py
Python
Sampling_based_Planning/rrt_3D/env3D.py
CodesHub/PathPlanning
8271d9a0e30d7d9d0f20d61a2f85b8fe199209fa
[ "MIT" ]
3,693
2020-07-15T15:41:07.000Z
2022-03-31T17:26:46.000Z
Sampling_based_Planning/rrt_3D/env3D.py
Alanaab/PathPlanning
8c12192d6952fcd2c3f8ba3c98e3593b27049a40
[ "MIT" ]
26
2020-08-27T04:56:59.000Z
2022-03-14T02:17:05.000Z
Sampling_based_Planning/rrt_3D/env3D.py
Alanaab/PathPlanning
8c12192d6952fcd2c3f8ba3c98e3593b27049a40
[ "MIT" ]
799
2020-07-17T04:02:05.000Z
2022-03-31T12:56:29.000Z
# this is the three dimensional configuration space for rrt # !/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: yue qi """ import numpy as np # from utils3D import OBB2AABB if __name__ == '__main__': newenv = env()
42.798658
125
0.538341
df3715d9a9064f79f11dad87ba56f6a3d27743a1
289
py
Python
tests/test_wrong_url.py
alexella1/python-ascii_magic
df189da5dc59d4cd6f6fe003a75c99539247851f
[ "MIT" ]
null
null
null
tests/test_wrong_url.py
alexella1/python-ascii_magic
df189da5dc59d4cd6f6fe003a75c99539247851f
[ "MIT" ]
null
null
null
tests/test_wrong_url.py
alexella1/python-ascii_magic
df189da5dc59d4cd6f6fe003a75c99539247851f
[ "MIT" ]
null
null
null
from context import ascii_magic try: output = ascii_magic.from_url('https://wow.zamimg.com/uploads/blog/images/20516-afterlives-ardenweald-4k-desktop-wallpapers.jpg') ascii_magic.to_terminal(output) except OSError as e: print(f'Could not load the image, server said: {e.code} {e.msg}')
41.285714
130
0.782007
df38488be49b126da2ba8c4b38d9a97d5b60ae28
2,706
py
Python
book/code/imdb - project4+5 scrape popular film list and poster.py
marcus-pham/test
bcbc7c34a672ae6c7e9bdc811934c4003134ae0d
[ "MIT" ]
null
null
null
book/code/imdb - project4+5 scrape popular film list and poster.py
marcus-pham/test
bcbc7c34a672ae6c7e9bdc811934c4003134ae0d
[ "MIT" ]
null
null
null
book/code/imdb - project4+5 scrape popular film list and poster.py
marcus-pham/test
bcbc7c34a672ae6c7e9bdc811934c4003134ae0d
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from selenium import webdriver import requests import time # when ever we have the film list # url for current popular and hot film url = 'http://www.imdb.com/chart/moviemeter/?ref_=nv_mv_mpm_7' # get_popular_film_list(url) poster_scrap(get_popular_film_list(url))
20.5
96
0.682927
df38d7c15904593405fbc7ec4f71c2079a0aa639
1,409
py
Python
mqtt_io/modules/sensor/mcp3008.py
DominicWindisch/mqtt-io
f3f8b17232e4c11401d7b5bf124e8722ec3a0f3a
[ "MIT" ]
231
2016-12-27T09:51:11.000Z
2021-03-03T18:14:37.000Z
mqtt_io/modules/sensor/mcp3008.py
DominicWindisch/mqtt-io
f3f8b17232e4c11401d7b5bf124e8722ec3a0f3a
[ "MIT" ]
173
2017-02-26T16:33:42.000Z
2021-03-02T18:24:55.000Z
mqtt_io/modules/sensor/mcp3008.py
DominicWindisch/mqtt-io
f3f8b17232e4c11401d7b5bf124e8722ec3a0f3a
[ "MIT" ]
92
2017-02-26T16:25:23.000Z
2021-03-02T16:05:53.000Z
""" MCP3008 analog to digital converter """ import logging from typing import cast from mqtt_io.types import ConfigType, SensorValueType from . import GenericSensor REQUIREMENTS = ("adafruit-mcp3008",) CONFIG_SCHEMA = { "spi_port": dict(type="integer", required=False, empty=False, default=0), "spi_device":...
25.618182
79
0.625976
df3a00f301a09ed853ce444e464928c561356ba2
1,031
py
Python
aristaflow/worklist_model.py
riuns/aristaflowpy
58ad48310366484379fc519d649c564c762f89f9
[ "MIT" ]
null
null
null
aristaflow/worklist_model.py
riuns/aristaflowpy
58ad48310366484379fc519d649c564c762f89f9
[ "MIT" ]
null
null
null
aristaflow/worklist_model.py
riuns/aristaflowpy
58ad48310366484379fc519d649c564c762f89f9
[ "MIT" ]
1
2021-07-13T10:35:36.000Z
2021-07-13T10:35:36.000Z
""" Worklist model classes """ # AristaFlow REST Libraries from af_worklist_manager.models.qualified_agent import QualifiedAgent from af_worklist_manager.models.worklist_revision import WorklistRevision from af_worklist_manager.models.worklist_update_configuration import WorklistUpdateConfiguration
28.638889
96
0.706111
df3ca98f6de6dd3416b0ed3855860078017dafec
163,982
py
Python
tests/examples/minlplib/arki0019.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/arki0019.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/arki0019.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# NLP written by GAMS Convert at 04/21/18 13:51:02 # # Equation counts # Total E G L N X C B # 3 2 0 1 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
97.260973
120
0.592053
df3d6de4c0225786e943add2dd3dc174ee168668
1,304
py
Python
bin/build_upset_input.py
NCBI-Hackathons/AssesSV
73c61db1e915df6e76933a75fac7904e25b07884
[ "MIT" ]
4
2018-11-12T02:08:45.000Z
2021-11-21T15:24:03.000Z
bin/build_upset_input.py
NCBI-Hackathons/AssesSV
73c61db1e915df6e76933a75fac7904e25b07884
[ "MIT" ]
null
null
null
bin/build_upset_input.py
NCBI-Hackathons/AssesSV
73c61db1e915df6e76933a75fac7904e25b07884
[ "MIT" ]
2
2018-11-10T21:04:11.000Z
2018-11-10T21:44:39.000Z
#!/usr/bin/env python3 from glob import glob import pandas as pd import os import gzip import sys path_to_vcf_files = sys.argv[1] true_variants = sys.argv[2] vcf_files = glob(path_to_vcf_files + "/*tp-base.vcf") print(vcf_files) all_variants = [] summary = {} ## Build master list of True Variants with gzip.open(true...
30.325581
86
0.654141
df3f58815ff66d9dcb98bc560bc4e1a7dda2766a
3,448
py
Python
Apple EFI Package Extractor/Linux_Pre-Alpha/Apple_EFI_Package.py
Coool/BIOSUtilities
319246a09adc207ea18201357ecf6af82df25e4d
[ "BSD-2-Clause-Patent" ]
null
null
null
Apple EFI Package Extractor/Linux_Pre-Alpha/Apple_EFI_Package.py
Coool/BIOSUtilities
319246a09adc207ea18201357ecf6af82df25e4d
[ "BSD-2-Clause-Patent" ]
null
null
null
Apple EFI Package Extractor/Linux_Pre-Alpha/Apple_EFI_Package.py
Coool/BIOSUtilities
319246a09adc207ea18201357ecf6af82df25e4d
[ "BSD-2-Clause-Patent" ]
null
null
null
#!/usr/bin/env python3 """ Apple EFI Package Apple EFI Package Extractor Copyright (C) 2019-2021 Plato Mavropoulos """ print('Apple EFI Package Extractor v2.0_Linux_a1') import os import sys import zlib import shutil import subprocess if len(sys.argv) >= 2 : pkg = sys.argv[1:] else : pkg = [] in_path = input('\n...
33.803922
136
0.686195
df4048ff5c3a54d37d423b8ae11ce64e3577a99f
3,344
py
Python
sourcing_code_pro.py
kiwi0fruit/open-fonts
deb211dd1e08becf3b9300b02365cd79415c64d4
[ "MIT" ]
30
2018-02-21T10:19:45.000Z
2022-02-23T15:45:34.000Z
sourcing_code_pro.py
kiwi0fruit/open-fonts
deb211dd1e08becf3b9300b02365cd79415c64d4
[ "MIT" ]
33
2018-02-09T15:38:46.000Z
2021-12-08T21:40:26.000Z
sourcing_code_pro.py
kiwi0fruit/open-fonts
deb211dd1e08becf3b9300b02365cd79415c64d4
[ "MIT" ]
4
2019-11-18T03:14:07.000Z
2022-02-23T03:59:00.000Z
# -*- coding: utf-8 -*- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that...
38
161
0.621711
df4060697a7eb303c5884fc6599a1897ddcbd97e
4,264
bzl
Python
apple/bundling/debug_symbol_actions.bzl
kastiglione/rules_apple
3745c3f03b9d29a04671fd4fac96468ca7031fd6
[ "Apache-2.0" ]
2
2019-09-01T06:06:40.000Z
2020-11-10T00:37:01.000Z
apple/bundling/debug_symbol_actions.bzl
c-parsons/rules_apple
f75c4b1be219cb32704d900bd1a42ab200eab445
[ "Apache-2.0" ]
null
null
null
apple/bundling/debug_symbol_actions.bzl
c-parsons/rules_apple
f75c4b1be219cb32704d900bd1a42ab200eab445
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
39.481481
82
0.695826
df43165460434d52e608ecfd552ac420215fb6a5
414
py
Python
uplift/tree/_utils.py
Antiguru11/uplift
ffaa5bcd20d6aa264fa3b2d191327c86384e4f7c
[ "Apache-2.0" ]
null
null
null
uplift/tree/_utils.py
Antiguru11/uplift
ffaa5bcd20d6aa264fa3b2d191327c86384e4f7c
[ "Apache-2.0" ]
null
null
null
uplift/tree/_utils.py
Antiguru11/uplift
ffaa5bcd20d6aa264fa3b2d191327c86384e4f7c
[ "Apache-2.0" ]
null
null
null
import numpy as np
18
49
0.442029
df4381be0a6af61c9a8d19296067917654a1c8b3
3,958
py
Python
ipyannotator/ipytyping/annotations.py
itepifanio/ipyannotator
eac99f71d8d39e02a10c21807508b0c064077806
[ "Apache-2.0" ]
null
null
null
ipyannotator/ipytyping/annotations.py
itepifanio/ipyannotator
eac99f71d8d39e02a10c21807508b0c064077806
[ "Apache-2.0" ]
null
null
null
ipyannotator/ipytyping/annotations.py
itepifanio/ipyannotator
eac99f71d8d39e02a10c21807508b0c064077806
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00c_annotation_types.ipynb (unless otherwise specified). __all__ = [] # Internal Cell from pathlib import Path from collections.abc import MutableMapping from typing import Dict, Optional, Iterable, Any, Union from ipywidgets import Layout from ..mltypes import OutputIm...
29.102941
104
0.641991
df4403fc1193fbecc76726cf60c46006752e81e6
3,001
py
Python
optapy-core/tests/test_inverse_relation.py
optapy/optapy
0240f744f592d964110c86d1054ce63cf8c38452
[ "Apache-2.0" ]
85
2021-07-26T11:42:51.000Z
2022-03-29T14:14:27.000Z
optapy-core/tests/test_inverse_relation.py
optapy/optapy
0240f744f592d964110c86d1054ce63cf8c38452
[ "Apache-2.0" ]
22
2021-07-21T21:10:16.000Z
2022-03-31T17:49:00.000Z
optapy-core/tests/test_inverse_relation.py
optapy/optapy
0240f744f592d964110c86d1054ce63cf8c38452
[ "Apache-2.0" ]
9
2021-07-15T12:07:32.000Z
2022-02-09T02:11:55.000Z
import optapy import optapy.score import optapy.config import optapy.constraint def test_inverse_relation(): termination = optapy.config.solver.termination.TerminationConfig() termination.setBestScoreLimit('0') solver_config = optapy.config.solver.SolverConfig() \ .withSolutionClass(optapy.get...
31.260417
109
0.683439
df4589c5936fa29d3d24eba4e44f5da8d49bf94e
714
py
Python
pizza_store/models/user.py
astsu-dev/pizza-store-backend
902f6e5e2c88ba029b2bff61da8fc4684664ead9
[ "MIT" ]
2
2021-07-10T15:47:45.000Z
2021-12-13T18:09:30.000Z
pizza_store/models/user.py
astsu-dev/pizza-store-backend
902f6e5e2c88ba029b2bff61da8fc4684664ead9
[ "MIT" ]
null
null
null
pizza_store/models/user.py
astsu-dev/pizza-store-backend
902f6e5e2c88ba029b2bff61da8fc4684664ead9
[ "MIT" ]
null
null
null
import datetime import uuid from pizza_store.enums.role import Role from pydantic import BaseModel
13.730769
39
0.683473
df45b74210e776a21d70e6e881d80b85c80991df
874
py
Python
mautrix/types/event/batch.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
1
2018-08-24T13:33:30.000Z
2018-08-24T13:33:30.000Z
mautrix/types/event/batch.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
4
2018-07-10T11:43:46.000Z
2018-09-03T22:08:02.000Z
mautrix/types/event/batch.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
2
2018-07-03T04:07:08.000Z
2018-09-10T03:13:59.000Z
# Copyright (c) 2022 Tulir Asokan, Sumner Evans # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from typing import Any from attr import dataclass import attr from .....
26.484848
96
0.735698
df46e87e30c896bf3a86559f322c509578a51604
118
py
Python
dvc/path/s3.py
zb0th/dvc
5fdbc1882f73162419d5b84ed47a33e9e321f151
[ "Apache-2.0" ]
null
null
null
dvc/path/s3.py
zb0th/dvc
5fdbc1882f73162419d5b84ed47a33e9e321f151
[ "Apache-2.0" ]
null
null
null
dvc/path/s3.py
zb0th/dvc
5fdbc1882f73162419d5b84ed47a33e9e321f151
[ "Apache-2.0" ]
null
null
null
from dvc.scheme import Schemes from .base import PathCloudBASE
16.857143
31
0.779661
df471a58961450769299367eb0ca2a94b53911da
2,729
py
Python
filter_distance_01-1.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
filter_distance_01-1.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
filter_distance_01-1.py
jgpattis/Desres-sars-cov-2-apo-mpro
90c07414040c0ea0bf54028e2f194d6509c8f526
[ "MIT" ]
null
null
null
#! /usr/bin/env/ python # filter out CA distances with large minimum # filter out CA distances with small standard deviations # save to file for later use # will plot distances used import mdtraj as md import pyemma.coordinates as coor import numpy as np import pickle from util.plot_structure_util import plot_vmd_cyli...
36.878378
158
0.706486
df48425c447623027c723c6ed55ecb2c6c99a346
4,206
py
Python
src/panoptoindexconnector/implementations/coveo_implementation.py
bschlintz/panopto-index-connector
54599c972c00f44f1c2e7b40583e3e0a439f7f4e
[ "Apache-2.0" ]
null
null
null
src/panoptoindexconnector/implementations/coveo_implementation.py
bschlintz/panopto-index-connector
54599c972c00f44f1c2e7b40583e3e0a439f7f4e
[ "Apache-2.0" ]
null
null
null
src/panoptoindexconnector/implementations/coveo_implementation.py
bschlintz/panopto-index-connector
54599c972c00f44f1c2e7b40583e3e0a439f7f4e
[ "Apache-2.0" ]
null
null
null
""" Methods for the connector application to convert and sync content to the target endpoint Start with this template to implement these methods for the connector application """ # Standard Library Imports import json import logging import os # Third party import requests # Global constants DIR = os.path.dirname(os...
30.478261
119
0.612696
df4b2deb2486efb9c3adbc90f171c364722baebb
6,255
py
Python
dashboard/scripts/webscraper.py
lynetteoh/COVID19dashboard
61193d35acf004999443c47a30f0b9f9c6220c03
[ "MIT" ]
null
null
null
dashboard/scripts/webscraper.py
lynetteoh/COVID19dashboard
61193d35acf004999443c47a30f0b9f9c6220c03
[ "MIT" ]
null
null
null
dashboard/scripts/webscraper.py
lynetteoh/COVID19dashboard
61193d35acf004999443c47a30f0b9f9c6220c03
[ "MIT" ]
null
null
null
# script for daily update from bs4 import BeautifulSoup # from urllib.request import urlopen import requests import csv import time from datetime import datetime, timedelta import os from pathlib import Path from dashboard.models import Case, Country, District, State, Zone
41.151316
582
0.692886
df4cf960f5cccdcad0be7331412c12f64dc1a259
9,022
py
Python
GAN/Architectures/models/conditional_gan.py
FlipWebApps/computer-vision-playground
94cf8f0ac49c5d01ea5d1ebb14f857d4af2b0aef
[ "MIT" ]
null
null
null
GAN/Architectures/models/conditional_gan.py
FlipWebApps/computer-vision-playground
94cf8f0ac49c5d01ea5d1ebb14f857d4af2b0aef
[ "MIT" ]
4
2020-01-28T22:52:04.000Z
2021-08-25T15:38:35.000Z
GAN/Architectures/models/conditional_gan.py
FlipWebApps/computer-vision-playground
94cf8f0ac49c5d01ea5d1ebb14f857d4af2b0aef
[ "MIT" ]
null
null
null
import numpy as np from keras.layers import Concatenate, Input, Dense, Reshape, Flatten, Dropout, multiply, \ BatchNormalization, Activation, Embedding, ZeroPadding2D, Conv2DTranspose from keras.layers.advanced_activations import LeakyReLU from keras.layers.convolutional import UpSampling2D, Conv2D from keras.mode...
44.885572
102
0.615606
df4d062b612a14812a64e95f016eeeac5bbd7645
9,704
py
Python
ema.py
rsprouse/ema_head_correction
fda63950951cdcfd04d56604d18a7f448c9fde03
[ "BSD-3-Clause" ]
null
null
null
ema.py
rsprouse/ema_head_correction
fda63950951cdcfd04d56604d18a7f448c9fde03
[ "BSD-3-Clause" ]
1
2019-04-09T22:00:44.000Z
2019-04-09T22:00:44.000Z
ema.py
rsprouse/ema_head_correction
fda63950951cdcfd04d56604d18a7f448c9fde03
[ "BSD-3-Clause" ]
1
2019-03-27T19:54:47.000Z
2019-03-27T19:54:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Oct 14 21:19:42 2017 @author: ubuntu """ import numpy as np from numpy import cross,dot from numpy.linalg import norm import pandas as pd import os def read_ndi_data(mydir, file_name,sensors,subcolumns): ''' Read data produced by NDI WaveFront ...
37.038168
110
0.629637
df4d44c34dc573aeaadace851604ddc345ba3d4d
2,879
py
Python
applications/convection_diffusion_application/tests/test_apply_thermal_face_process.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
2
2020-04-30T19:13:08.000Z
2021-04-14T19:40:47.000Z
applications/convection_diffusion_application/tests/test_apply_thermal_face_process.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
1
2020-04-30T19:19:09.000Z
2020-05-02T14:22:36.000Z
applications/convection_diffusion_application/tests/test_apply_thermal_face_process.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
1
2020-06-12T08:51:24.000Z
2020-06-12T08:51:24.000Z
from __future__ import print_function, absolute_import, division import KratosMultiphysics import KratosMultiphysics.KratosUnittest as UnitTest import KratosMultiphysics.ConvectionDiffusionApplication as ConvectionDiffusionApplication if __name__ == '__main__': test = ApplyThermalFaceProcessTest() test.runTest...
48.79661
111
0.72421
df510c16faa10d361dd9e9908330f9b25302d7cf
2,098
py
Python
library/twisted/mod/regex.py
Kelbec-Nef/EVE-bot-discord
30432beb482ca56a10fda8aefdb4c1b9802e4ceb
[ "MIT" ]
59
2016-06-27T13:12:18.000Z
2021-06-23T12:09:16.000Z
modules/regex.py
andimiller/twistedbot
f462385ab951f1b74e19a2ebb6b3d58da4e2a03f
[ "MIT" ]
112
2016-07-06T15:32:09.000Z
2022-03-08T07:22:54.000Z
modules/regex.py
andimiller/twistedbot
f462385ab951f1b74e19a2ebb6b3d58da4e2a03f
[ "MIT" ]
59
2016-07-04T22:22:26.000Z
2020-05-15T20:38:08.000Z
import re import datetime substitute.rule="^s\/.*" directedsubstitute.rule="^.*?: s/.*" lastmsg.rule="^!lastmsg" seen.rule="^!seen" storemessage.rule=".*"
34.966667
122
0.582459
df51d4ecd268e7723e07531a6a92ba19cedaab25
257
py
Python
02/01/isupper.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
null
null
null
02/01/isupper.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
39
2017-07-31T22:54:01.000Z
2017-08-31T00:19:03.000Z
02/01/isupper.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
null
null
null
s = 'abc'; print(s.isupper(), s) s = 'Abc'; print(s.isupper(), s) s = 'aBc'; print(s.isupper(), s) s = 'abC'; print(s.isupper(), s) s = 'abc'; print(s.isupper(), s) s = 'ABC'; print(s.isupper(), s) s = 'abc'; print(s.capitalize().isupper(), s.capitalize())
32.125
58
0.568093
df526964a362846faf5e5acce4b5cfd42b2a61de
562
py
Python
tests/test_scriptfields.py
ttimasdf/pyes
e5dd8bfde7ca72b9bdf52f31ee7dbbf9681891ac
[ "BSD-3-Clause" ]
175
2015-01-04T00:41:48.000Z
2022-01-12T08:42:28.000Z
tests/test_scriptfields.py
yoloseem/pyes
d146d7cbe8a883b7b6a821e4c41acb16d2a5e3d0
[ "BSD-3-Clause" ]
35
2015-01-23T16:17:33.000Z
2021-05-17T12:12:29.000Z
tests/test_scriptfields.py
yoloseem/pyes
d146d7cbe8a883b7b6a821e4c41acb16d2a5e3d0
[ "BSD-3-Clause" ]
69
2015-01-10T17:28:26.000Z
2021-10-13T06:55:56.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import unittest from pyes import scriptfields if __name__ == '__main__': unittest.main()
33.058824
98
0.729537
df53e4881da04ab4f402645f9a8a2b4862a0381d
1,049
py
Python
flow/urls.py
Xinghui-Wu/FlowMeter
c2780fe7f8b8d2d6136296e53d1ee95e5660afc4
[ "MIT" ]
null
null
null
flow/urls.py
Xinghui-Wu/FlowMeter
c2780fe7f8b8d2d6136296e53d1ee95e5660afc4
[ "MIT" ]
null
null
null
flow/urls.py
Xinghui-Wu/FlowMeter
c2780fe7f8b8d2d6136296e53d1ee95e5660afc4
[ "MIT" ]
1
2021-05-17T13:01:26.000Z
2021-05-17T13:01:26.000Z
"""FlowMeter URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
32.78125
77
0.701621
df586b1e318707fb32e47861376aae613e4a3f07
15,033
py
Python
psp/gcp_utils.py
amckenna41/DCBLSTM_PSP
feec5bbf700782484af3b4873fd742ff9f7a7272
[ "MIT" ]
1
2021-05-06T09:48:45.000Z
2021-05-06T09:48:45.000Z
psp/gcp_utils.py
amckenna41/DCBLSTM_PSP
feec5bbf700782484af3b4873fd742ff9f7a7272
[ "MIT" ]
null
null
null
psp/gcp_utils.py
amckenna41/DCBLSTM_PSP
feec5bbf700782484af3b4873fd742ff9f7a7272
[ "MIT" ]
null
null
null
################################################################################ ######## Google Cloud Platform Utilities ######## ################################################################################ #Importing required libraries and dependancies import numpy as np import pan...
33.03956
123
0.656622
df58cc87adff05d56c9092da2fe099ff0776f22b
6,033
py
Python
Glassdoor scraping/main.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
2
2021-05-27T12:43:20.000Z
2022-02-24T07:01:55.000Z
Glassdoor scraping/main.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
5
2021-03-19T08:52:22.000Z
2021-09-22T19:21:44.000Z
Glassdoor scraping/main.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
2
2020-09-29T03:27:38.000Z
2020-11-07T05:41:10.000Z
# import libraries import time import datetime from argparse import ArgumentParser from datetime import date import re import json import numpy as np import pandas as pd import django from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_c...
30.469697
132
0.671805
df599e9d10321b7bdbba2162c39d2da1b3bddbed
468
py
Python
week12/api/urls.py
yestemir/web
5bdead66c26a3c466701e25ecae9720f04ad4118
[ "Unlicense" ]
null
null
null
week12/api/urls.py
yestemir/web
5bdead66c26a3c466701e25ecae9720f04ad4118
[ "Unlicense" ]
13
2021-03-10T08:46:52.000Z
2022-03-02T08:13:58.000Z
week12/api/urls.py
yestemir/web
5bdead66c26a3c466701e25ecae9720f04ad4118
[ "Unlicense" ]
null
null
null
from django.urls import path #from api.views import company_list, company_details, company_vacancies, vacancies_list, vacancy_detail from api.views import company_list, company_details urlpatterns = [ path('companies/', company_list), path('companies/<int:company_id>/', company_details), #path('companies/<...
39
103
0.758547
df5accf9e59165fe020819b87f459f1232b0ff9c
904
py
Python
ex02_randomness_test/tests/test_main.py
ittigorn-tra/exercises
c1edc8eea7483eb3f61109bf3540e94e04b1867c
[ "MIT" ]
null
null
null
ex02_randomness_test/tests/test_main.py
ittigorn-tra/exercises
c1edc8eea7483eb3f61109bf3540e94e04b1867c
[ "MIT" ]
null
null
null
ex02_randomness_test/tests/test_main.py
ittigorn-tra/exercises
c1edc8eea7483eb3f61109bf3540e94e04b1867c
[ "MIT" ]
null
null
null
from logging import getLogger from lottery_config import LotteryConfig from main import draw_lottery logger = getLogger()
33.481481
86
0.698009
df5bcc25e0eb5cf59dcd57c576a359b2d756670b
1,308
py
Python
.ipynb_checkpoints/get-checkpoint.py
Ferruolo/delphi
369d74053ff211f7114b01d51621a388693a0dc7
[ "MIT" ]
null
null
null
.ipynb_checkpoints/get-checkpoint.py
Ferruolo/delphi
369d74053ff211f7114b01d51621a388693a0dc7
[ "MIT" ]
null
null
null
.ipynb_checkpoints/get-checkpoint.py
Ferruolo/delphi
369d74053ff211f7114b01d51621a388693a0dc7
[ "MIT" ]
null
null
null
import requests import io import dask from bs4 import BeautifulSoup as BS import nltk import pandas import numpy as np api_key = 'MZE3U0MSR1DCE53Z'
39.636364
250
0.714832
df5bcf4144a389293dde7bcc338b8d079f6fde6d
6,587
py
Python
glom/test/test_path_and_t.py
justinvanwinkle/glom
6451e9800b50078b60ebb480be83385cc70b1b3a
[ "BSD-3-Clause" ]
null
null
null
glom/test/test_path_and_t.py
justinvanwinkle/glom
6451e9800b50078b60ebb480be83385cc70b1b3a
[ "BSD-3-Clause" ]
null
null
null
glom/test/test_path_and_t.py
justinvanwinkle/glom
6451e9800b50078b60ebb480be83385cc70b1b3a
[ "BSD-3-Clause" ]
null
null
null
from pytest import raises from glom import glom, Path, S, T, A, PathAccessError, GlomError, BadSpec
27.560669
108
0.570366
df5d5ba2560d1eb8c0481b8f8f3df57ed776d13a
83
py
Python
dissononce/dh/x448/private.py
dineshks1/dissononce
154297aba0e9fdedad9279278f748bd8e4f790c6
[ "MIT" ]
34
2019-04-18T03:35:51.000Z
2022-03-20T13:35:04.000Z
dissononce/dh/x448/private.py
dineshks1/dissononce
154297aba0e9fdedad9279278f748bd8e4f790c6
[ "MIT" ]
2
2019-04-24T06:42:33.000Z
2019-07-17T19:40:40.000Z
dissononce/dh/x448/private.py
dineshks1/dissononce
154297aba0e9fdedad9279278f748bd8e4f790c6
[ "MIT" ]
16
2019-05-02T08:29:17.000Z
2021-12-06T22:50:37.000Z
from dissononce.dh import private
13.833333
37
0.783133
df5dac3db1c3737b475d3ae31df6900df6cb8e93
6,850
py
Python
main.py
BXRSRUDIOS/Shooter-Game
0df64e0e5852f51b7ad4f5bb8883e7207d867fc6
[ "MIT" ]
null
null
null
main.py
BXRSRUDIOS/Shooter-Game
0df64e0e5852f51b7ad4f5bb8883e7207d867fc6
[ "MIT" ]
null
null
null
main.py
BXRSRUDIOS/Shooter-Game
0df64e0e5852f51b7ad4f5bb8883e7207d867fc6
[ "MIT" ]
null
null
null
from pygame import * from random import randint import json #fonts and captions font.init() font1 = font.SysFont('Comic Sans', 60) win = font1.render('Dam you actually poggers', True, (255, 255, 255)) lose = font1.render('Yeah you suck, you lost', True, (180, 0, 0)) font2 = font.SysFont('Comic Sans', 36) ammo_lose ...
29.148936
94
0.625109
df5faeaade38723b81e813a93ac912c8c14cd092
863
py
Python
lib_bgp_data/collectors/traceroutes/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
16
2018-09-24T05:10:03.000Z
2021-11-29T19:18:59.000Z
lib_bgp_data/collectors/traceroutes/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
4
2019-10-09T18:54:17.000Z
2021-03-05T14:02:50.000Z
lib_bgp_data/collectors/traceroutes/tables.py
jfuruness/lib_bgp_data
25f7d57b9e2101c7aefb325e8d728bd91f47d557
[ "BSD-3-Clause" ]
3
2018-09-17T17:35:18.000Z
2020-03-24T16:03:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging from ...utils.database import Generic_Table
24.657143
64
0.579374
df616c1c677615ca6b5710038c78f36aa08da811
5,880
py
Python
install/app_store/tk-multi-about/v0.2.7/python/tk_multi_about/dialog.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-multi-about/v0.2.7/python/tk_multi_about/dialog.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-multi-about/v0.2.7/python/tk_multi_about/dialog.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# Copyright (c) 2013 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to t...
34.385965
101
0.584354
df61b88c89a2f284a18232a1fc105ff2477b2b45
4,665
py
Python
FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py
ideaworld/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
null
null
null
FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py
ideaworld/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
4
2020-06-05T17:40:18.000Z
2022-02-11T03:38:16.000Z
FHIR_Tester_backend/services/monkey/MonkeyInterpreter.py
bowen1993/FHIR_Tester
62844af2de510b65535df5ae60da03a082097df0
[ "MIT" ]
1
2016-11-22T01:04:16.000Z
2016-11-22T01:04:16.000Z
from CodeGenerator import *
35.075188
174
0.569132
df61ee34acb06ae49cb7ec1c9a176bab65771caa
3,619
py
Python
arviz/plots/backends/matplotlib/distcomparisonplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,159
2018-04-03T08:50:54.000Z
2022-03-31T18:03:52.000Z
arviz/plots/backends/matplotlib/distcomparisonplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,656
2018-03-23T14:15:05.000Z
2022-03-31T14:00:28.000Z
arviz/plots/backends/matplotlib/distcomparisonplot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
316
2018-04-03T14:25:52.000Z
2022-03-25T10:41:29.000Z
"""Matplotlib Density Comparison plot.""" import matplotlib.pyplot as plt import numpy as np from ...distplot import plot_dist from ...plot_utils import _scale_fig_size from . import backend_kwarg_defaults, backend_show def plot_dist_comparison( ax, nvars, ngroups, figsize, dc_plotters, legen...
29.663934
97
0.584692
df622c6b331e5a543976b1e74365b5b1c5deac19
1,027
py
Python
migrations/versions/1a869ac514c_.py
isabella232/comport
117123862415261095a917ed7f2037c1f986b474
[ "BSD-3-Clause" ]
35
2015-11-14T18:32:45.000Z
2022-01-23T15:15:05.000Z
migrations/versions/1a869ac514c_.py
codeforamerica/comport
117123862415261095a917ed7f2037c1f986b474
[ "BSD-3-Clause" ]
119
2015-11-20T22:45:34.000Z
2022-02-10T23:02:36.000Z
migrations/versions/1a869ac514c_.py
isabella232/comport
117123862415261095a917ed7f2037c1f986b474
[ "BSD-3-Clause" ]
19
2015-11-20T20:41:52.000Z
2022-01-26T04:12:34.000Z
"""empty message Revision ID: 1a869ac514c Revises: 52887f8e06b Create Date: 2015-09-29 11:06:57.293537 """ # revision identifiers, used by Alembic. revision = '1a869ac514c' down_revision = '52887f8e06b' from alembic import op import sqlalchemy as sa
28.527778
65
0.686465
df656759ef9cfb9cda2ab717e57721e5c9991075
6,213
py
Python
site_scons/grouptest.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
null
null
null
site_scons/grouptest.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
site_scons/grouptest.py
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unti...
39.573248
146
0.574441
df6602339dcbf026d961630c8f4e5ef6a2e16385
2,708
py
Python
setup.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
setup.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
setup.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import re try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages # Backwards compatibility for Python 2.x try: from itertools import ifilter filter = ifilter except Impor...
29.758242
79
0.621492
df69bf1dcf080485d6aacd665889f3da20ecf986
1,791
py
Python
list7/decoder.py
luk9400/kodowanie
042ac9eb324b55ec02ad0108e77cf8c80c16d82c
[ "MIT" ]
null
null
null
list7/decoder.py
luk9400/kodowanie
042ac9eb324b55ec02ad0108e77cf8c80c16d82c
[ "MIT" ]
null
null
null
list7/decoder.py
luk9400/kodowanie
042ac9eb324b55ec02ad0108e77cf8c80c16d82c
[ "MIT" ]
null
null
null
from sys import argv G = [ "00000000", "11010010", "01010101", "10000111", "10011001", "01001011", "11001100", "00011110", "11100001", "00110011", "10110100", "01100110", "01111000", "10101010", "00101101", "11111111", ] errors = 0 if __name__ == "_...
19.467391
82
0.45952
df6ab267b27cf156ebd687d010ea932b0b451fd7
1,520
py
Python
kfdata/tests/test_attribute.py
kylef-archive/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
1
2015-11-08T13:23:39.000Z
2015-11-08T13:23:39.000Z
kfdata/tests/test_attribute.py
kylef/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
null
null
null
kfdata/tests/test_attribute.py
kylef/KFData.py
685d58255c9f8518834e395d94d3b75d3dd3eceb
[ "BSD-3-Clause" ]
null
null
null
import unittest from kfdata.attributes import Attribute, NumberAttribute, BooleanAttribute
35.348837
88
0.718421
df6acc88067fd0d6c4d32d01e3f30d88b50e8f50
8,589
py
Python
fucker.py
MacsedSub/ZBH-Fucker
c39381ef5331fd11924c0ec7f0b76bea46ed98b3
[ "MIT" ]
4
2020-01-21T09:49:29.000Z
2021-02-07T00:39:03.000Z
fucker.py
MacsedSub/ZBH-Fucker
c39381ef5331fd11924c0ec7f0b76bea46ed98b3
[ "MIT" ]
null
null
null
fucker.py
MacsedSub/ZBH-Fucker
c39381ef5331fd11924c0ec7f0b76bea46ed98b3
[ "MIT" ]
2
2020-12-08T07:20:10.000Z
2020-12-29T10:29:36.000Z
import threading # import queue # import requests import time import random import json import os import re import traceback from urllib.parse import quote from config import fakeVisitorCount from config import startUserID from config import spreadToken from config import UAs from config import province from config i...
36.862661
375
0.461288
df6be0074b0c935074c3035e1e691a3882bcdeeb
5,973
py
Python
hs_composite_resource/tests/test_composite_resource_user_zone.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
hs_composite_resource/tests/test_composite_resource_user_zone.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
hs_composite_resource/tests/test_composite_resource_user_zone.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
null
null
null
import os from django.test import TransactionTestCase from django.contrib.auth.models import Group from django.conf import settings from hs_core import hydroshare from hs_core.models import BaseResource from hs_core.hydroshare.utils import resource_file_add_process, resource_file_add_pre_process from hs_core.views.ut...
51.051282
99
0.697807
df6c0d5895a889ba43d3854f304957c6a4db6d15
2,310
py
Python
tests/test_compat.py
eisensheng/pytest-catchlog
f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6
[ "MIT" ]
85
2015-02-24T20:14:30.000Z
2021-04-29T09:07:59.000Z
tests/test_compat.py
eisensheng/pytest-catchlog
f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6
[ "MIT" ]
67
2015-04-22T16:07:47.000Z
2020-03-19T14:14:19.000Z
tests/test_compat.py
eisensheng/pytest-catchlog
f6b05b0afb8f8934b33e0c78a495ebfd8b3599d6
[ "MIT" ]
25
2015-05-17T15:22:55.000Z
2019-01-07T09:21:24.000Z
# -*- coding: utf-8 -*- import pytest
28.518519
77
0.59697