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
514d5df2cbf6b921babea277704186e66c61af98
3,700
py
Python
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
''' Dijkstra's algorithm for weighted undirected graph ''' from collections import deque #Graph stored as adjacent list g = { 'A': {'C': 9, 'B': 7, 'F': 14}, 'B': {'A': 7, 'C': 10, 'D': 15}, 'C': {'A': 9, 'B': 10, 'D': 11, 'F': 2}, 'D': {'E': 6, 'B': 15, 'C': 11}, 'E': {'F': 9, 'D': 6}, ...
33.333333
104
0.526216
514d67f48ef86730369a1f20030702bb95bc30ac
33,053
py
Python
ServerFiles/FrontFollowingNetwork.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
2
2021-11-13T14:16:06.000Z
2022-01-12T06:07:32.000Z
ServerFiles/FrontFollowingNetwork.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
null
null
null
ServerFiles/FrontFollowingNetwork.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
3
2021-08-30T04:40:39.000Z
2022-01-09T11:34:04.000Z
#-*- coding: UTF-8 -*- import sys,os pwd = os.path.abspath(os.path.abspath(__file__)) father_path = os.path.abspath(os.path.dirname(pwd) + os.path.sep + "..") sys.path.append(father_path) import tensorflow as tf from tensorflow import keras import numpy as np import os from typing import Tuple import random from Networ...
55.365159
184
0.587571
514d779997818ca67945865e73aa82b847c739ae
3,302
py
Python
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
12
2018-06-28T13:40:53.000Z
2022-01-07T12:46:15.000Z
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
6
2019-04-29T16:55:38.000Z
2022-03-04T17:00:15.000Z
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
5
2019-04-21T15:42:55.000Z
2021-08-16T10:53:30.000Z
#<hide> """ filtergraph: Streaming part | Decoding part | (LiveThread:livethread) -->> (AVThread:avthread) --> {InfoFrameFilter:info_filter} """ #</hide> #<hide> import time from valkka.core import * #</hide> """<rtf> Let's consider the following filtergraph: :: Streami...
31.447619
214
0.657783
514e969fdf154b0e8e5327483cdde2b37efd808d
44,964
py
Python
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
3
2015-08-02T09:03:28.000Z
2017-12-06T09:26:14.000Z
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
5
2015-08-17T01:16:35.000Z
2015-09-16T21:51:27.000Z
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
6
2015-05-17T15:32:20.000Z
2020-04-22T08:43:16.000Z
# -*- coding: utf-8 -- import os import re import types try: from zopyx.txng3.ext import stemmer as Stemmer except ImportError: Stemmer = None from cheshire3.baseObjects import Normalizer from cheshire3.exceptions import ( ConfigFileException, MissingDependencyException ) # Non printable c...
33.134856
79
0.455231
514e96ff8378de7f403d3d5b87b39b9cacaa544f
1,976
py
Python
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
import unittest from flask.ext.testing import TestCase from project import app, db from project.models import User, BlogPost from base import BaseTestCase if __name__== '__main__': unittest.main()
37.283019
96
0.671053
514fd7037382f0059f2a8f6642dd4dde72119752
1,024
py
Python
calendar_manager/accounts/views/signin.py
greyhub/calendar_manager
837a0d938fdd58684279fb32f8a50805bb306fe1
[ "MIT" ]
6
2021-11-23T19:52:55.000Z
2022-03-30T13:45:05.000Z
calendar_manager/accounts/views/signin.py
greyhub/calendar_manager
837a0d938fdd58684279fb32f8a50805bb306fe1
[ "MIT" ]
null
null
null
calendar_manager/accounts/views/signin.py
greyhub/calendar_manager
837a0d938fdd58684279fb32f8a50805bb306fe1
[ "MIT" ]
1
2021-11-23T10:14:54.000Z
2021-11-23T10:14:54.000Z
from django.views.generic import View from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from accounts.forms import SignInForm
32
63
0.621094
5150d680a6e92b183496e1677c8274249125d1ee
3,794
py
Python
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
# MagellanMapper logging """Logging utilities.""" import logging from logging import handlers import pathlib def setup_logger(): """Set up a basic root logger with a stream handler. Returns: :class:`logging.Logger`: Root logger for the application. """ logger = logging.getLogger() ...
29.874016
77
0.624671
5151eb6104a2efda27edf90bc5d40eacc7c63499
3,322
py
Python
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Created : 2021/10/28 17:12 # @Author : Junhyung Kwon # @Site : # @File : har_train.py # @Software : PyCharm import os import torch import torch.nn.functional as F from torch import nn, optim from torch.optim.lr_scheduler import MultiStepLR from tqdm.au...
30.477064
118
0.621915
51523224ed1784558c61cf16ca3f354c9e20fd86
1,741
py
Python
brainTeasers/numberOfLines/unitTests.py
christopher-henderson/Experiments
d970249a4895424cb5ff5b557948f3a4bda4879c
[ "MIT" ]
null
null
null
brainTeasers/numberOfLines/unitTests.py
christopher-henderson/Experiments
d970249a4895424cb5ff5b557948f3a4bda4879c
[ "MIT" ]
null
null
null
brainTeasers/numberOfLines/unitTests.py
christopher-henderson/Experiments
d970249a4895424cb5ff5b557948f3a4bda4879c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from functools import wraps from lines import getNumLines assertion = 0 exception = 0 passed = 0 def main(): empty() one() axis() origin() counterQuadrants() scientificInts() main()
24.521127
92
0.570936
515285c60dcab2bc55d78dce23f2882c85fc837c
279
py
Python
print-var.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
5
2015-11-15T19:08:31.000Z
2015-11-27T02:34:28.000Z
print-var.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
null
null
null
print-var.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
null
null
null
my_name = 'Andre Christoga' my_age = 11 # Really, this is my age # my_height = 150 # Centimeter # my_weight = 32 # Kilogram # my_eyes = "Brown" # my_teeth = "White" print "Oh, Hello there." print "My name is " + my_name print "My age is 11" print "I know, too young to code?"
23.25
36
0.670251
5153b4798f2410a6aa6709c5a6328570a85d91d6
3,052
py
Python
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
2
2021-07-02T20:10:48.000Z
2021-07-13T20:51:18.000Z
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
3
2021-06-24T13:27:21.000Z
2021-07-30T15:37:43.000Z
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
3
2021-06-23T19:53:20.000Z
2022-01-04T17:50:44.000Z
from lime_python import Command from ...extension_base import ExtensionBase from .content_type import ContentType from .uri_templates import UriTemplates
27.495495
79
0.564548
5155a6295dbb373ee9af2abbcd7551a82f2a7146
1,683
py
Python
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
""" DataJunction (DJ) is a metric repository. Usage: dj compile [REPOSITORY] [-f] [--loglevel=INFO] [--reload] Actions: compile Compile repository Options: -f, --force Force indexing. [default: false] --loglevel=LEVEL Level for logging. [default: INFO] --relo...
23.054795
63
0.608437
5156148de28f4156b72965f292cfcca3cbc248dc
3,617
py
Python
main.py
yappy2000d/MoodBot
b62fc96fb15aa6f7bc95696f7a1614f1f50614dd
[ "MIT" ]
null
null
null
main.py
yappy2000d/MoodBot
b62fc96fb15aa6f7bc95696f7a1614f1f50614dd
[ "MIT" ]
null
null
null
main.py
yappy2000d/MoodBot
b62fc96fb15aa6f7bc95696f7a1614f1f50614dd
[ "MIT" ]
null
null
null
import os from ai import model, process, vectorizer from youtube import comment, getid, video from linebot import LineBotApi, WebhookHandler from linebot.exceptions import InvalidSignatureError from linebot.models import MessageEvent, TextMessage, TextSendMessage SECRET = os.environ['SECRET'] TOKEN = os.environ['TOK...
31.72807
170
0.592756
5159402d19245aba61bb579f188067d4ee6bc977
274
py
Python
vivit/extensions/secondorder/sqrt_ggn/dropout.py
PwLo3K46/vivit
937642975be2ade122632d4eaef273461992d7ab
[ "MIT" ]
1
2021-06-07T05:15:22.000Z
2021-06-07T05:15:22.000Z
vivit/extensions/secondorder/sqrt_ggn/dropout.py
PwLo3K46/vivit
937642975be2ade122632d4eaef273461992d7ab
[ "MIT" ]
2
2021-08-10T12:45:37.000Z
2021-08-10T12:49:51.000Z
vivit/extensions/secondorder/sqrt_ggn/dropout.py
PwLo3K46/vivit
937642975be2ade122632d4eaef273461992d7ab
[ "MIT" ]
null
null
null
from backpack.core.derivatives.dropout import DropoutDerivatives from vivit.extensions.secondorder.sqrt_ggn.sqrt_ggn_base import SqrtGGNBaseModule
30.444444
81
0.821168
5159b6cde26f7df203594b171f65dbf811705a8e
1,286
py
Python
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
4
2015-03-30T22:46:35.000Z
2020-09-08T02:03:53.000Z
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
21
2015-02-03T23:12:36.000Z
2017-09-15T21:03:24.000Z
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
2
2016-08-14T20:18:52.000Z
2019-09-30T16:02:22.000Z
import sys import collections import tornado registry = Registry()
28.577778
75
0.618974
515bc2e00165e4793cb2c05d11188ceed1d51545
1,672
py
Python
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
3
2020-11-04T19:34:47.000Z
2021-06-30T04:13:55.000Z
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
null
null
null
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
1
2021-01-31T19:30:59.000Z
2021-01-31T19:30:59.000Z
# -*- coding: utf-8 -*- from rest_framework import permissions from account.models import BlackList
35.574468
78
0.641746
515c32b2748b2c0d803dfa8b97d5d1d27008566b
1,498
py
Python
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
from helpers import Helpers import numpy as np def multiples(numbers: [int]) -> [int]: """ Multiplies all of the values in the list excepting the value at the current index e.g. original numbers = [4, 1, 6] returns the multiples = [6, 24, 4] where the first value is the product of 1 * 6 and does not i...
31.208333
85
0.695594
515cab618ed79aaba5d009928d26db2168402cb0
6,387
py
Python
tests/test_271.py
pedromtorres/TigerShark
2790a7c03905a094b126b48387c7919c09cce238
[ "BSD-3-Clause" ]
24
2015-03-18T10:15:20.000Z
2022-03-18T13:38:34.000Z
tests/test_271.py
tspannhw/TigerShark
5081641f1b189a43e9eab4813256598cc0a79f6f
[ "BSD-3-Clause" ]
6
2015-03-27T12:36:57.000Z
2021-04-13T15:01:24.000Z
tests/test_271.py
tspannhw/TigerShark
5081641f1b189a43e9eab4813256598cc0a79f6f
[ "BSD-3-Clause" ]
21
2015-11-21T09:19:47.000Z
2020-09-17T16:52:50.000Z
import unittest import logging import sys import datetime from tigershark.facade import f271 from tigershark.parsers import M271_4010_X092_A1 if __name__ == "__main__": logging.basicConfig( stream=sys.stderr, level=logging.INFO, ) unittest.main()
41.206452
78
0.608736
515d5f82ce87af195121b8847cb3e553f85bb1c4
194
py
Python
src/Lexer/run.py
PetukhovVictor/compiler2
0bf87393ce9ecdd421393165fc14cb7f03f5e3b8
[ "MIT" ]
3
2017-09-08T21:35:31.000Z
2019-04-24T11:48:59.000Z
src/Lexer/run.py
PetukhovVictor/compiler2
0bf87393ce9ecdd421393165fc14cb7f03f5e3b8
[ "MIT" ]
1
2018-11-19T15:34:00.000Z
2018-11-19T15:35:52.000Z
src/Lexer/run.py
PetukhovVictor/compiler2
0bf87393ce9ecdd421393165fc14cb7f03f5e3b8
[ "MIT" ]
4
2017-03-13T06:16:48.000Z
2019-04-24T11:49:00.000Z
from .rules import token_expressions from .lex import lex def run(code): """ Wrapper to run the Lexer (with the token expressions listed here). """ return lex(code, token_expressions)
24.25
78
0.726804
515e110e923bd04c8ebed32a1acaa5cd9ac55ba1
943
py
Python
2016b/main.py
xdr940/iKaggle
cc0210e089e5f1af228f02bf67bb9a4459336722
[ "MIT" ]
null
null
null
2016b/main.py
xdr940/iKaggle
cc0210e089e5f1af228f02bf67bb9a4459336722
[ "MIT" ]
null
null
null
2016b/main.py
xdr940/iKaggle
cc0210e089e5f1af228f02bf67bb9a4459336722
[ "MIT" ]
null
null
null
import pandas as pd import pandas_profiling from path import Path import numpy as np from scipy.stats import chi2_contingency from collections import Counter root = Path('/home/roit/datasets/kaggle/2016b') dump_path = root/'dump' ge_info = root/'gene_info' exitnpy = False if exitnpy==False: genes_dic = [] g...
21.431818
65
0.622481
515e89e12ec857736349c37b4aecc618592abe73
77
py
Python
const.py
tfyoung/wattsonhass
eece56779561277fa9f2928230ac39bd43329344
[ "Apache-2.0" ]
1
2021-02-28T12:07:20.000Z
2021-02-28T12:07:20.000Z
const.py
tfyoung/wattsonhass
eece56779561277fa9f2928230ac39bd43329344
[ "Apache-2.0" ]
null
null
null
const.py
tfyoung/wattsonhass
eece56779561277fa9f2928230ac39bd43329344
[ "Apache-2.0" ]
null
null
null
"""Constants for the Wattson power meter integration.""" DOMAIN = "wattson"
19.25
56
0.727273
515f0a6a29381f3507258c4ec4a21b66fa8b9463
2,808
py
Python
RL/test_depths.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
RL/test_depths.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
RL/test_depths.py
RECON-Labs-Inc/svox2
2946c1573fc4c8c8f378bf8154c29ba8d62af927
[ "BSD-2-Clause" ]
null
null
null
import sys from pathlib import Path from datetime import datetime import argparse import json import torch from torchvision.utils import save_image import torchvision import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn.metrics import pairwise_distances_argmin from sklea...
26.490566
74
0.654915
515f21eaa0b5ed2cf1b0e5658806e586107dfcd7
1,376
py
Python
examples/mxnet/dis_kvstore/client.py
tqchen/dgl
d57ff78da11193fbbee7f37a69fcfe1c14da2ae4
[ "Apache-2.0" ]
2
2020-05-10T14:06:12.000Z
2021-01-01T02:57:20.000Z
examples/mxnet/dis_kvstore/client.py
tqchen/dgl
d57ff78da11193fbbee7f37a69fcfe1c14da2ae4
[ "Apache-2.0" ]
null
null
null
examples/mxnet/dis_kvstore/client.py
tqchen/dgl
d57ff78da11193fbbee7f37a69fcfe1c14da2ae4
[ "Apache-2.0" ]
null
null
null
# This is a simple MXNet server demo shows how to use DGL distributed kvstore. import dgl import argparse import mxnet as mx ID = [] ID.append(mx.nd.array([0,1], dtype='int64')) ID.append(mx.nd.array([2,3], dtype='int64')) ID.append(mx.nd.array([4,5], dtype='int64')) ID.append(mx.nd.array([6,7], dtype='int64')) edata...
32.761905
110
0.631541
515f518715b6288fc69c17ec11ceead08e8d514f
9,535
py
Python
qtgui.py
izaletel/NeuroMorpho-Access-Tool
3441785edbddaf4b357377e9c7897dbbad42dc87
[ "MIT" ]
null
null
null
qtgui.py
izaletel/NeuroMorpho-Access-Tool
3441785edbddaf4b357377e9c7897dbbad42dc87
[ "MIT" ]
null
null
null
qtgui.py
izaletel/NeuroMorpho-Access-Tool
3441785edbddaf4b357377e9c7897dbbad42dc87
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'qtgui.ui' ## ## Created by: Qt User Interface Compiler version 6.2.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! #####################...
60.732484
140
0.724698
515fe6ec967d9adf1eabbb5dad94f9dd79c8c9e6
90
py
Python
tests/test_wb2k.py
reillysiemens/wb2k
54edaa1afe4904a78746356555468d7c04685b28
[ "ISC" ]
6
2016-06-09T04:06:29.000Z
2019-12-22T15:29:54.000Z
tests/test_wb2k.py
reillysiemens/wb2k
54edaa1afe4904a78746356555468d7c04685b28
[ "ISC" ]
19
2016-06-03T22:00:13.000Z
2019-09-25T09:03:16.000Z
tests/test_wb2k.py
reillysiemens/wb2k
54edaa1afe4904a78746356555468d7c04685b28
[ "ISC" ]
4
2016-10-06T20:45:44.000Z
2017-10-28T22:01:20.000Z
# TODO: Write actual tests. This just makes pytest-cov pick up on the module. import wb2k
30
77
0.766667
516143d6f8476fa2b9d91fe746b6871aa05baca3
4,690
py
Python
plugins/modules/tag_member.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
plugins/modules/tag_member.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
plugins/modules/tag_member.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: tag_member short_description: Manage TagMember objects of Tag description: - Returns tag members specified by id....
29.3125
117
0.715991
51617330e9ebead5bbb61a5ae564be20889db321
893
py
Python
unittest_reinvent/scoring_tests/scoring_components/test_tanimoto_similarity.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
null
null
null
unittest_reinvent/scoring_tests/scoring_components/test_tanimoto_similarity.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
2
2021-11-01T23:19:42.000Z
2021-11-22T23:41:39.000Z
unittest_reinvent/scoring_tests/scoring_components/test_tanimoto_similarity.py
MolecularAI/reinvent-scoring
f7e052ceeffd29e17e1672c33607189873c82a45
[ "MIT" ]
2
2021-11-18T13:14:22.000Z
2022-03-16T07:52:57.000Z
import unittest import numpy.testing as npt from unittest_reinvent.fixtures.test_data import CELECOXIB, CELECOXIB_C, BUTANE from unittest_reinvent.scoring_tests.scoring_components.fixtures import score_single, score, instantiate_component
31.892857
114
0.753639
516282162e672e92cb14c5b353f7f1dcb8f0e66a
2,318
py
Python
python-project/methods/KDE.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
python-project/methods/KDE.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
python-project/methods/KDE.py
ferjorosa/bayesian-latent-forests
3d9e19f1d0be1e4cca0b390866589061a670cc20
[ "Apache-2.0" ]
null
null
null
import statsmodels.api as sm import numpy as np import os import time import json
36.793651
126
0.595772
5162cae16f1582e2cd15f8c44ff6385eae028502
3,471
py
Python
pay-api/tests/unit/services/test_auth.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/services/test_auth.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
pay-api/tests/unit/services/test_auth.py
stevenc987/sbc-pay
04f02f362f88a30c082b0643583b8d0ebff6063f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Province of British Columbia # # 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 agre...
35.060606
91
0.682224
5163521d44aed6af36c7ee8ac7cba90723cfbc26
49
py
Python
api/common.py
ewangplay/wallet-sdk-py
9f55ffa6bb7968192fd88e2b2dddf04c997874ab
[ "Apache-2.0" ]
13
2018-03-06T10:04:26.000Z
2021-08-12T11:25:29.000Z
api/common.py
ewangplay/wallet-sdk-py
9f55ffa6bb7968192fd88e2b2dddf04c997874ab
[ "Apache-2.0" ]
42
2018-02-08T04:32:56.000Z
2018-09-06T07:30:58.000Z
api/common.py
ewangplay/wallet-sdk-py
9f55ffa6bb7968192fd88e2b2dddf04c997874ab
[ "Apache-2.0" ]
15
2018-02-11T09:29:31.000Z
2021-07-04T07:33:22.000Z
from cryption.crypto import sign VERSION = "v1"
12.25
32
0.755102
5163aaae4b007b773986e024d8629d4d1f39a0b9
589
py
Python
tests/unit/test_subscription.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
3
2015-11-05T08:57:12.000Z
2016-07-17T18:10:55.000Z
tests/unit/test_subscription.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
tests/unit/test_subscription.py
eldarion/braintree_python
8be3f69fb9a4171c5e9be049c8440fcc4f79fb40
[ "MIT" ]
null
null
null
from tests.test_helper import *
34.647059
64
0.633277
5164ffb41b1068e6e8353350ba4bc5a194d1426f
2,848
py
Python
testNim.py
PauloHSNeto/Ciencia-de-Computa-o-CourseEra
230281ba7227348ed2d27bb20039aed223244d94
[ "bzip2-1.0.6" ]
null
null
null
testNim.py
PauloHSNeto/Ciencia-de-Computa-o-CourseEra
230281ba7227348ed2d27bb20039aed223244d94
[ "bzip2-1.0.6" ]
null
null
null
testNim.py
PauloHSNeto/Ciencia-de-Computa-o-CourseEra
230281ba7227348ed2d27bb20039aed223244d94
[ "bzip2-1.0.6" ]
null
null
null
computador = 0 usuario = 0 rodada = 0 print("Bem-vindo ao jogo do NIM! Escolha:") print(" ") print("1 - para jogar uma partida isolada ") tipo_jogo = int(input("2 - para jogar um campeonato ")) print(" ") if ( tipo_jogo == 1 ): print("Voce escolheu partida isolada!") if ( tipo_jogo == 2): print("Voce escolheu...
29.061224
79
0.466643
516516f68aa7cecc66414e1c2f63b93bd749ec5c
59
py
Python
example_snippets/multimenus_snippets/NewSnippets/SymPy/Manipulating expressions/Miscellaneous/Simplify Bessel functions.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/NewSnippets/SymPy/Manipulating expressions/Miscellaneous/Simplify Bessel functions.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/NewSnippets/SymPy/Manipulating expressions/Miscellaneous/Simplify Bessel functions.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
expr = besselj(x, z*polar_lift(-1)) expr = besselsimp(expr)
29.5
35
0.711864
516615c0dc774d664f76be40cc3b724ef7f05aa9
15,206
py
Python
mbuild/formats/hoomd_simulation.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
mbuild/formats/hoomd_simulation.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
mbuild/formats/hoomd_simulation.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
import warnings import itertools import numpy as np import operator from collections import namedtuple import parmed as pmd import mbuild as mb from mbuild.utils.sorting import natural_sort from mbuild.utils.io import import_ from mbuild.utils.conversion import RB_to_OPLS from .hoomd_snapshot import to_hoomdsnapshot ...
40.657754
85
0.636262
516648ad34a16a2a40620bcd9fd2d7782735d4c0
274
py
Python
Utility.py
YiFanChen99/PyQtComponent
fdf83d6e3f8a448acce866db85ce418ce0df121e
[ "MIT" ]
null
null
null
Utility.py
YiFanChen99/PyQtComponent
fdf83d6e3f8a448acce866db85ce418ce0df121e
[ "MIT" ]
null
null
null
Utility.py
YiFanChen99/PyQtComponent
fdf83d6e3f8a448acce866db85ce418ce0df121e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from PyQt5.QtWidgets import *
19.571429
36
0.591241
51666c4b9d618cca914f038ac201e94c03f87f6e
34,907
py
Python
post_optimization_studies/mad_analyses/four_cuts_eff_flow_chart/Output/Histos/MadAnalysis5job_0/selection_4.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/four_cuts_eff_flow_chart/Output/Histos/MadAnalysis5job_0/selection_4.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/four_cuts_eff_flow_chart/Output/Histos/MadAnalysis5job_0/selection_4.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
# Running! if __name__ == '__main__': selection_4()
179.93299
1,742
0.742373
51668e773b785fc937e32ac3a240021ec3f1a368
595
py
Python
homework/jenya_s/homework12.py
aodarc/LIST-010
4579a047ca1ae0266f368349ea4536c6eb367f97
[ "MIT" ]
null
null
null
homework/jenya_s/homework12.py
aodarc/LIST-010
4579a047ca1ae0266f368349ea4536c6eb367f97
[ "MIT" ]
4
2018-12-19T13:41:12.000Z
2019-01-14T15:11:11.000Z
homework/jenya_s/homework12.py
aodarc/LIST-010
4579a047ca1ae0266f368349ea4536c6eb367f97
[ "MIT" ]
null
null
null
import os a = Cpypl(r"C:\Users\admin\Desktop\python test") print(a.file_list())
29.75
88
0.480672
5166a904988e89265b852c411614fc81169a4bf3
68
py
Python
GCC-paddle/gcc/models/__init__.py
S-HuaBomb/Contrib
10596814bb98c9e2499e4240e56207dc3b547959
[ "Apache-2.0" ]
243
2020-06-16T08:06:57.000Z
2022-03-31T10:09:37.000Z
GCC-paddle/gcc/models/__init__.py
S-HuaBomb/Contrib
10596814bb98c9e2499e4240e56207dc3b547959
[ "Apache-2.0" ]
34
2020-02-20T11:04:58.000Z
2022-03-12T00:54:26.000Z
GCC-paddle/gcc/models/__init__.py
S-HuaBomb/Contrib
10596814bb98c9e2499e4240e56207dc3b547959
[ "Apache-2.0" ]
49
2020-06-28T02:37:17.000Z
2022-03-29T08:07:35.000Z
from .graph_encoder import GraphEncoder __all__ = ["GraphEncoder"]
17
39
0.794118
516815174595feb3cdc84a37dc37e334c26007d4
941
py
Python
sme_material_apps/core/migrations/0005_material_categoria.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
null
null
null
sme_material_apps/core/migrations/0005_material_categoria.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
null
null
null
sme_material_apps/core/migrations/0005_material_categoria.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2020-07-20 19:50 from django.db import migrations import multiselectfield.db.fields
47.05
579
0.676939
516a41921de7bc6d406a64cbe02684f2db6fb80f
833
py
Python
RT_Group/main/models.py
DiForzza/site_one
440efe197e1ecaab3416460f1827738d160e48b6
[ "Apache-2.0" ]
null
null
null
RT_Group/main/models.py
DiForzza/site_one
440efe197e1ecaab3416460f1827738d160e48b6
[ "Apache-2.0" ]
null
null
null
RT_Group/main/models.py
DiForzza/site_one
440efe197e1ecaab3416460f1827738d160e48b6
[ "Apache-2.0" ]
null
null
null
from django.db import models import datetime
25.242424
81
0.681873
516aa9e7ed14b4702820fbf786e6257801f2f755
364
py
Python
emapp/auth.py
azrle/flask-restful-emapp-demo
4be19725538a5e961afb77a1495d6c57ae0be89a
[ "MIT" ]
null
null
null
emapp/auth.py
azrle/flask-restful-emapp-demo
4be19725538a5e961afb77a1495d6c57ae0be89a
[ "MIT" ]
null
null
null
emapp/auth.py
azrle/flask-restful-emapp-demo
4be19725538a5e961afb77a1495d6c57ae0be89a
[ "MIT" ]
null
null
null
from functools import wraps from flask import current_app, request from flask_restful import abort
26
52
0.667582
5a8c5dccd774b45cfea010980c9e6fb6227679df
3,307
py
Python
Python/data/preprocess.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
1
2022-02-11T18:49:34.000Z
2022-02-11T18:49:34.000Z
Python/data/preprocess.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
null
null
null
Python/data/preprocess.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import scipy.ndimage.measurements as scipy_measurements import miapy.data.transformation as miapy_tfm def get_bounding_box(img): a = np.argwhere(img) min0, min1, min2 = a.min(0) max0, max1, max2 = a.max(0) return [min0, max0, min1, max1, min2, max2] # Apply reverse center centr...
30.063636
89
0.558512
5a8e3a68bba6328be4a0daef3330c63f8527f035
1,828
py
Python
conversion_service/config/settings/worker.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
conversion_service/config/settings/worker.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
conversion_service/config/settings/worker.py
das-g/osmaxx-postgis-conversion
c41aba1cb0fd112de12c8c0540584b7caa651150
[ "MIT" ]
null
null
null
# pylint: skip-file import random import string from .common import * # noqa # we don't use user sessions, so it doesn't matter if we recreate the secret key on each startup SECRET_KEY = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(30)) # disable databases for the worker DATABASES =...
26.114286
96
0.461707
5a9109ad68997c62118ea1f04a5cdac8b71bc9b1
2,289
py
Python
categorias.py
OrlandoBitencourt/proway_python_exercicio1
4fe2aa48aab350cd5e949d95feefe37d1b2af387
[ "MIT" ]
null
null
null
categorias.py
OrlandoBitencourt/proway_python_exercicio1
4fe2aa48aab350cd5e949d95feefe37d1b2af387
[ "MIT" ]
null
null
null
categorias.py
OrlandoBitencourt/proway_python_exercicio1
4fe2aa48aab350cd5e949d95feefe37d1b2af387
[ "MIT" ]
null
null
null
import main
31.791667
103
0.553954
5a9137e47101ff21c41e130f1251b26b67a1b350
708
py
Python
test/espnet2/layers/test_log_mel.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
5,053
2017-12-13T06:21:41.000Z
2022-03-31T13:38:29.000Z
test/espnet2/layers/test_log_mel.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
3,666
2017-12-14T05:58:50.000Z
2022-03-31T22:11:49.000Z
test/espnet2/layers/test_log_mel.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
1,709
2017-12-13T01:02:42.000Z
2022-03-31T11:57:45.000Z
import torch from espnet2.layers.log_mel import LogMel
22.125
65
0.610169
5a91d9da8ada11831ecc164dcca33401ae0379e5
6,347
py
Python
test/database/test_raw_scraping_data.py
AMHesch/aws-allowlister
b15309cc581b3cfba97733806df4ba2afa73fbee
[ "MIT" ]
180
2021-02-02T21:31:56.000Z
2022-03-19T19:52:08.000Z
test/database/test_raw_scraping_data.py
AMHesch/aws-allowlister
b15309cc581b3cfba97733806df4ba2afa73fbee
[ "MIT" ]
36
2021-02-05T19:19:26.000Z
2022-01-27T05:01:08.000Z
test/database/test_raw_scraping_data.py
AMHesch/aws-allowlister
b15309cc581b3cfba97733806df4ba2afa73fbee
[ "MIT" ]
28
2021-02-04T19:19:43.000Z
2022-03-18T21:27:41.000Z
import unittest import json from aws_allowlister.database.database import connect_db from aws_allowlister.database.raw_scraping_data import RawScrapingData db_session = connect_db() raw_scraping_data = RawScrapingData()
144.25
4,496
0.722073
5a9713280ba850f01b042a95ba2fef86e7e5c38e
5,533
py
Python
GenPasswd/genpasswd.py
Gowthaman1401/GenPass
dd6450d80e99648f1d23cb0e034189b5fe56bbd1
[ "MIT" ]
null
null
null
GenPasswd/genpasswd.py
Gowthaman1401/GenPass
dd6450d80e99648f1d23cb0e034189b5fe56bbd1
[ "MIT" ]
null
null
null
GenPasswd/genpasswd.py
Gowthaman1401/GenPass
dd6450d80e99648f1d23cb0e034189b5fe56bbd1
[ "MIT" ]
null
null
null
import random from . import constants from . import exceptions
44.98374
165
0.590638
5a97b4378066662b1ab8308caa3ca06c47283ec7
43,014
py
Python
AESDataV3.py
JHerrmann01/AESDataManipulator
836ee74326ee0c35435b5fe0bb9875d392b2cc7c
[ "Apache-2.0" ]
null
null
null
AESDataV3.py
JHerrmann01/AESDataManipulator
836ee74326ee0c35435b5fe0bb9875d392b2cc7c
[ "Apache-2.0" ]
null
null
null
AESDataV3.py
JHerrmann01/AESDataManipulator
836ee74326ee0c35435b5fe0bb9875d392b2cc7c
[ "Apache-2.0" ]
null
null
null
###American Environmental Solutions Data Manipulation### ## Created by Jeremy Herrmann ## ##Import Libraries## from __future__ import print_function from os.path import join, dirname, abspath import xlrd from xlrd.sheet import ctype_text import xlsxwriter #################### print("Beginning...
46.907306
241
0.632561
5a9823ed404374fd6e8abf22e09c47cf13d68464
6,282
py
Python
lhrhost/robot/robot.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
null
null
null
lhrhost/robot/robot.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
null
null
null
lhrhost/robot/robot.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
1
2018-08-03T17:17:31.000Z
2018-08-03T17:17:31.000Z
"""Abstractions for a liquid-handling robot.""" # Standard imports import asyncio import logging # Local package imports from lhrhost.robot.p_axis import Axis as PAxis from lhrhost.robot.x_axis import Axis as XAxis from lhrhost.robot.y_axis import Axis as YAxis from lhrhost.robot.z_axis import Axis as ZAxis from lhrh...
37.616766
81
0.650748
5a98fddec1d3cbb33837e1f1d6a6a5b060873682
12,100
py
Python
python/tinkoff/cloud/longrunning/v1/longrunning_pb2_grpc.py
qwertBR/voicekit-examples
273a63e4cf11841339108cdcdf8b485b7c96298a
[ "Apache-2.0" ]
3
2022-02-11T04:34:18.000Z
2022-03-29T19:35:57.000Z
python/tinkoff/cloud/longrunning/v1/longrunning_pb2_grpc.py
qwertBR/voicekit-examples
273a63e4cf11841339108cdcdf8b485b7c96298a
[ "Apache-2.0" ]
3
2022-01-27T15:40:38.000Z
2022-03-31T10:03:35.000Z
python/tinkoff/cloud/longrunning/v1/longrunning_pb2_grpc.py
qwertBR/voicekit-examples
273a63e4cf11841339108cdcdf8b485b7c96298a
[ "Apache-2.0" ]
5
2022-01-27T15:15:06.000Z
2022-03-24T22:06:18.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from tinkoff.cloud.longrunning.v1 import longrunning_pb2 as tinkoff_dot_cloud_dot_lon...
50.416667
144
0.705702
5a9ae867d70612f2ffe19fc29174270aa28f529d
602
py
Python
src/astro/utils/schema_util.py
malthe/astro
61036ab08b2826136f64fdbfc6ca21b61643a8a0
[ "Apache-2.0" ]
null
null
null
src/astro/utils/schema_util.py
malthe/astro
61036ab08b2826136f64fdbfc6ca21b61643a8a0
[ "Apache-2.0" ]
null
null
null
src/astro/utils/schema_util.py
malthe/astro
61036ab08b2826136f64fdbfc6ca21b61643a8a0
[ "Apache-2.0" ]
null
null
null
import os from airflow.providers.postgres.hooks.postgres import PostgresHook from psycopg2 import sql
28.666667
80
0.682724
5a9d0c2e4e731186b891bcd4f534edfa2b33e353
1,599
py
Python
references/stm32_parsing_sim/stm32parser.py
koson/OTA_update_STM32_using_ESP32
7fe7ae64d5290c0a453c29d787b5fe9456910e96
[ "MIT" ]
155
2020-02-15T06:54:15.000Z
2021-09-16T07:19:19.000Z
references/stm32_parsing_sim/stm32parser.py
ksmola/OTA_update_STM32_using_ESP32
dd616a1212da8f874e4826d63cfbd4c3b9ad2df2
[ "MIT" ]
8
2020-10-09T08:56:52.000Z
2021-09-01T03:42:49.000Z
references/stm32_parsing_sim/stm32parser.py
ksmola/OTA_update_STM32_using_ESP32
dd616a1212da8f874e4826d63cfbd4c3b9ad2df2
[ "MIT" ]
25
2020-03-16T04:41:12.000Z
2021-08-19T11:49:40.000Z
import time import math as m start = time.time() stm_parser() print('Time (ms):', 1000*(time.time() - start))
20.766234
77
0.499062
5a9d5971fc9f0f68b3b0383f6727b85c4065e172
3,034
py
Python
sw/device/silicon_creator/lib/crypto/tests/testvectors/wycheproof/rsa_3072_verify_parse_testvectors.py
matutem/opentitan
a41c0a57568f1dc8263a4ecc3913f190750959f5
[ "Apache-2.0" ]
null
null
null
sw/device/silicon_creator/lib/crypto/tests/testvectors/wycheproof/rsa_3072_verify_parse_testvectors.py
matutem/opentitan
a41c0a57568f1dc8263a4ecc3913f190750959f5
[ "Apache-2.0" ]
null
null
null
sw/device/silicon_creator/lib/crypto/tests/testvectors/wycheproof/rsa_3072_verify_parse_testvectors.py
matutem/opentitan
a41c0a57568f1dc8263a4ecc3913f190750959f5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import argparse import json import math import sys import hjson if __name__ == '__main__': sys.exit(main())
28.622642
85
0.586684
5a9e608dad9679e93ef744bc1105dbf95d043cce
2,479
py
Python
Tools/boot_now.py
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
4,224
2015-01-02T11:51:02.000Z
2020-10-27T23:42:28.000Z
Tools/boot_now.py
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
11,736
2015-01-01T11:59:16.000Z
2020-10-28T17:13:38.000Z
Tools/boot_now.py
wms124/PX4_1.4.1_Back-up
9d6d903a8f46346281ae11104c47f1904da05e37
[ "BSD-3-Clause" ]
11,850
2015-01-02T14:54:47.000Z
2020-10-28T16:42:47.000Z
#!/usr/bin/env python ############################################################################ # # Copyright (C) 2012-2015 PX4 Development Team. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are me...
41.316667
108
0.702299
5aa27bded824f5d2ed1668d9730e5fcc75bdeb84
550
py
Python
cc_server/commons/database.py
curious-containers/cc-server
3d4f0e39d2a974ee239a455b238ac8a3bfcddb73
[ "Apache-2.0" ]
4
2016-09-05T15:01:01.000Z
2016-11-17T12:36:41.000Z
cc_server/commons/database.py
curious-containers/cc-server
3d4f0e39d2a974ee239a455b238ac8a3bfcddb73
[ "Apache-2.0" ]
null
null
null
cc_server/commons/database.py
curious-containers/cc-server
3d4f0e39d2a974ee239a455b238ac8a3bfcddb73
[ "Apache-2.0" ]
null
null
null
import pymongo
28.947368
76
0.558182
5aa3314ea9abea60e379f77782cb7a74e3c4aa9a
543
py
Python
coord2vec/evaluation/visualizations/tests/test_bokeh_pr_curve.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
null
null
null
coord2vec/evaluation/visualizations/tests/test_bokeh_pr_curve.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
null
null
null
coord2vec/evaluation/visualizations/tests/test_bokeh_pr_curve.py
jonzarecki/coord2vec
4f267fdd87af7b3d3558ca834b88e9ab7c309c18
[ "Apache-2.0" ]
1
2021-01-25T09:21:17.000Z
2021-01-25T09:21:17.000Z
from unittest import TestCase import numpy as np from bokeh.models import LayoutDOM from coord2vec.evaluation.visualizations.bokeh_plots import bokeh_pr_curve_from_y_proba
30.166667
96
0.740331
5aa44f0e70c5feb1742576c75322458cf3b62dfc
5,267
py
Python
scripts/pyBusPirateLite/shtxx.py
bopopescu/Bus-Pirate-1
62a449f4aa6edb2160e00537f06024b2e1ce6c48
[ "CC0-1.0" ]
null
null
null
scripts/pyBusPirateLite/shtxx.py
bopopescu/Bus-Pirate-1
62a449f4aa6edb2160e00537f06024b2e1ce6c48
[ "CC0-1.0" ]
null
null
null
scripts/pyBusPirateLite/shtxx.py
bopopescu/Bus-Pirate-1
62a449f4aa6edb2160e00537f06024b2e1ce6c48
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 #based on Microwire.py and hackaday buspirate/sht tutorial import sys,time from optparse import OptionParser from pyBusPirateLite.RAW_WIRE import * if __name__ == '__main__': main()
30.445087
181
0.63034
5aa4c977dc126a0fbb76c33235561df665c5a977
10,248
py
Python
pyalp/stimulus/film.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
1
2020-11-09T09:23:11.000Z
2020-11-09T09:23:11.000Z
pyalp/stimulus/film.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
null
null
null
pyalp/stimulus/film.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
1
2020-11-09T09:23:19.000Z
2020-11-09T09:23:19.000Z
import gc import os import pyalp.io import pyalp.sequence import pyalp.utils from .base import Stimulus
37.265455
119
0.58509
5aa5b513bf2a9038fbb780c73e2c734ede5749d9
1,328
py
Python
python/example_code/s3/s3-python-example-download-file.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
python/example_code/s3/s3-python-example-download-file.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
python/example_code/s3/s3-python-example-download-file.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This f...
32.390244
88
0.718373
5aa5bff8e0546b4cefb038da047c7522a33ff849
788
py
Python
screenpy/questions/text_of_the_alert.py
perrygoy/screenpy
862c0d7e5ff9f1265e520ab383c04ddbd4d060eb
[ "MIT" ]
39
2019-03-22T15:18:23.000Z
2022-02-23T17:32:03.000Z
screenpy/questions/text_of_the_alert.py
perrygoy/screenpy
862c0d7e5ff9f1265e520ab383c04ddbd4d060eb
[ "MIT" ]
63
2019-07-17T06:25:19.000Z
2022-01-13T07:03:53.000Z
screenpy/questions/text_of_the_alert.py
bandophahita/screenpy
db0f3ef91a891b9d095016d83fa4b589620808ce
[ "MIT" ]
15
2019-07-09T11:02:56.000Z
2021-12-24T07:43:56.000Z
""" Investigate the text of an alert. """ from screenpy.abilities import BrowseTheWeb from screenpy.actor import Actor from screenpy.pacing import beat
24.625
77
0.648477
5aa673e34f00e357af0fafa959cade5423c31460
418
py
Python
4_parallel_execution/purethreads.py
TihonV/pygoexamples
ca9604862d08145057aefc60cd0f9b77c9f5346a
[ "MIT" ]
18
2020-01-23T21:20:47.000Z
2022-02-20T19:10:02.000Z
4_parallel_execution/purethreads.py
TihonV/pygoexamples
ca9604862d08145057aefc60cd0f9b77c9f5346a
[ "MIT" ]
null
null
null
4_parallel_execution/purethreads.py
TihonV/pygoexamples
ca9604862d08145057aefc60cd0f9b77c9f5346a
[ "MIT" ]
4
2019-08-03T12:59:53.000Z
2022-02-07T23:43:35.000Z
import time from threading import Thread COUNT = 50000000 half_count = int(COUNT/2) t1 = Thread(target=countdown, args=(half_count,)) t2 = Thread(target=countdown, args=(half_count,)) start = time.time() t1.start() t2.start() t1.join() t2.join() end = time.time() print('Time taken in seconds -', end - start)
17.416667
51
0.657895
5aab652c059c797506557e8a980477db680cb80f
6,829
py
Python
DPythonS89/test.py
Synchronicity89/Lean
564af47ea980cf0524874643c7190da82236bcfb
[ "Apache-2.0" ]
null
null
null
DPythonS89/test.py
Synchronicity89/Lean
564af47ea980cf0524874643c7190da82236bcfb
[ "Apache-2.0" ]
1
2020-08-25T03:02:47.000Z
2020-08-25T03:02:47.000Z
DPythonS89/test.py
Synchronicity89/Lean
564af47ea980cf0524874643c7190da82236bcfb
[ "Apache-2.0" ]
null
null
null
from clr import AddReference import pandas AddReference("System") AddReference("QuantConnect.Research") AddReference("QuantConnect.Common") AddReference("QuantConnect.Logging") #AddReference("QuantConnect.Data") from System import * from QuantConnect import * from QuantConnect.Logging import * #from Data import * #fro...
36.518717
147
0.661737
5aad234b18b05002548a9589e1100a906a36ebac
2,765
py
Python
edm_web1/app/task/forms.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
edm_web1/app/task/forms.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
edm_web1/app/task/forms.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
# coding=utf-8 from django import forms from app.task.models import SendTask from app.template.models import SendTemplate from app.address.models import MailList from django.utils.translation import ugettext_lazy as _ from django.core.cache import cache
42.538462
131
0.644485
5aae6a12dc22ce122aa713fc2aeac3ad090fe5d0
2,827
py
Python
map_swcf.py
torimcd/Goldblatt_etal_2020
0793b16ef2535db3482c31d84587d80b3578dd3b
[ "BSD-3-Clause" ]
1
2021-12-03T15:11:31.000Z
2021-12-03T15:11:31.000Z
map_swcf.py
torimcd/Goldblatt_etal_2021
0793b16ef2535db3482c31d84587d80b3578dd3b
[ "BSD-3-Clause" ]
null
null
null
map_swcf.py
torimcd/Goldblatt_etal_2021
0793b16ef2535db3482c31d84587d80b3578dd3b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Author: Victoria McDonald email: vmcd@atmos.washington.edu website: http://torimcd.github.com license: BSD """ import matplotlib as mpl mpl.use("Agg") import os import sys import numpy as np import netCDF4 import operator import matplotlib.pyplot as plt from mpl_toolkits.basemap import Base...
28.27
129
0.700389
5ab017c82dd41b9fd3710bcfd371dbf19774599d
6,706
py
Python
src/mbic/mbic_full_model.py
davidanastasiu/antibiofilm
f50945d52bcfd97538a31d7627af6b3089fdd2cf
[ "MIT" ]
null
null
null
src/mbic/mbic_full_model.py
davidanastasiu/antibiofilm
f50945d52bcfd97538a31d7627af6b3089fdd2cf
[ "MIT" ]
null
null
null
src/mbic/mbic_full_model.py
davidanastasiu/antibiofilm
f50945d52bcfd97538a31d7627af6b3089fdd2cf
[ "MIT" ]
null
null
null
# AntiBiofilm Peptide Research # Department of Computer Science and Engineering, Santa Clara University # Author: Taylor Downey # A python script that uses the optimized hyperparameters found for both # the SVM and the SVR to create a prediction model # Script prints the average RMSE of the full model when run with c...
35.294737
81
0.596779
5ab37c9f2cc9d5f92cea84f7411a66b98892ba55
334
py
Python
pygoogletranslation/urls.py
sha-cmd/Translator
8f01b04c90782feb474204c738cd1b9dbe8fe853
[ "MIT", "Unlicense" ]
null
null
null
pygoogletranslation/urls.py
sha-cmd/Translator
8f01b04c90782feb474204c738cd1b9dbe8fe853
[ "MIT", "Unlicense" ]
null
null
null
pygoogletranslation/urls.py
sha-cmd/Translator
8f01b04c90782feb474204c738cd1b9dbe8fe853
[ "MIT", "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Predefined URLs used to make google translate requests. """ BASE = 'https://translate.google.com' TOKEN = 'https://translate.google.com/translate_a/element.js' TRANSLATE = 'https://translate.googleapis.com/translate_a/' TRANSLATEURL = 'https://translate.google.com/_/TranslateWebserverUi/data...
41.75
86
0.751497
5ab39146e42528e662c0c49db178a51f75c5037e
1,901
py
Python
app/stac_api/migrations/0006_auto_20210419_1409.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
9
2020-08-17T11:01:48.000Z
2022-01-17T22:24:13.000Z
app/stac_api/migrations/0006_auto_20210419_1409.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
100
2020-08-14T05:56:40.000Z
2022-03-01T22:39:58.000Z
app/stac_api/migrations/0006_auto_20210419_1409.py
Niclnx/service-stac
ad9129a7130d09b2bed387d8e82575eb86fdfa7b
[ "BSD-3-Clause" ]
3
2020-09-02T14:01:07.000Z
2021-07-27T06:30:26.000Z
# Generated by Django 3.1.7 on 2021-04-19 14:09 import django.db.models.deletion from django.db import migrations from django.db import models
73.115385
1,327
0.538664
5ab4e1cb0b8290fb37e3f50f7412275885208296
4,463
py
Python
geocoder/opencage.py
guess3233qa/geocoder1
31de0344e698fb209b709c5bb11181e845279a59
[ "MIT" ]
1
2021-02-08T13:30:00.000Z
2021-02-08T13:30:00.000Z
geocoder/opencage.py
star-is-here/geocoder
31b5ccdf54f199d7640995a787c84909687ee03c
[ "MIT" ]
null
null
null
geocoder/opencage.py
star-is-here/geocoder
31b5ccdf54f199d7640995a787c84909687ee03c
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding: utf8 from __future__ import absolute_import from geocoder.base import Base from geocoder.keys import opencage_key if __name__ == '__main__': g = OpenCage('1552 Payette dr., Ottawa') print(g.json['mgrs'])
26.724551
93
0.60363
5ab5bd66bce6d4c9eceac8e62755a4fcbe075a48
108
py
Python
Python/type_casting.py
thebiebs/python-practise-exercises
28db498f35ec6f9bdd437f54c91990027f4b9436
[ "MIT" ]
null
null
null
Python/type_casting.py
thebiebs/python-practise-exercises
28db498f35ec6f9bdd437f54c91990027f4b9436
[ "MIT" ]
null
null
null
Python/type_casting.py
thebiebs/python-practise-exercises
28db498f35ec6f9bdd437f54c91990027f4b9436
[ "MIT" ]
null
null
null
a = "3434" a = int(a) print(type(a)) b = 32 b = str(b) print(type(b))
4.695652
15
0.351852
5ab8816bb76e60e81fc3c314b0b1f78ca16670ca
64
py
Python
models/__init__.py
vrdelc/deepmask-pytorch
4432aa06ef43fe845230fd539dcbad27177c37d4
[ "MIT" ]
233
2019-02-20T16:40:02.000Z
2022-01-24T07:08:28.000Z
models/__init__.py
vrdelc/deepmask-pytorch
4432aa06ef43fe845230fd539dcbad27177c37d4
[ "MIT" ]
10
2019-03-19T06:33:00.000Z
2021-02-11T02:49:07.000Z
models/__init__.py
vrdelc/deepmask-pytorch
4432aa06ef43fe845230fd539dcbad27177c37d4
[ "MIT" ]
62
2019-02-21T02:27:56.000Z
2021-11-16T02:37:41.000Z
from .DeepMask import DeepMask from .SharpMask import SharpMask
21.333333
32
0.84375
5ab8ac9f9305d1dcc1a98fb23d25074ad1e3b140
37
py
Python
homeassistant/components/systemmonitor/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/systemmonitor/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/systemmonitor/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The systemmonitor integration."""
18.5
36
0.72973
5abb45490eb0d080f875383d0f61e11894705270
396
py
Python
setup.py
ajagnic/stromCLI
f36b3a97a28cb4f6bf644fdfd6660307b19a6fab
[ "MIT" ]
null
null
null
setup.py
ajagnic/stromCLI
f36b3a97a28cb4f6bf644fdfd6660307b19a6fab
[ "MIT" ]
null
null
null
setup.py
ajagnic/stromCLI
f36b3a97a28cb4f6bf644fdfd6660307b19a6fab
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='strom-cli', author='Adrian Agnic', author_email='adrian@tura.io', version='0.0.1', description='CLI tool for use with Strom', packages=find_packages(), include_package_data=True, install_requires=['click', 'requests'], entry_p...
23.294118
46
0.669192
5abba2ed2df006c8126b41c355cba49e34d89853
776
py
Python
backend/post/migrations/0005_auto_20190424_1912.py
aurma97/to52_ok
c5f940416938e1bb0d3110dfafa43cb7197df984
[ "MIT" ]
null
null
null
backend/post/migrations/0005_auto_20190424_1912.py
aurma97/to52_ok
c5f940416938e1bb0d3110dfafa43cb7197df984
[ "MIT" ]
4
2021-04-08T22:09:42.000Z
2021-06-10T20:38:06.000Z
backend/post/migrations/0005_auto_20190424_1912.py
aurma97/to52_ok
c5f940416938e1bb0d3110dfafa43cb7197df984
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2019-04-24 19:12 from django.db import migrations, models import django.db.models.deletion
28.740741
115
0.595361
5abbfe4f3603e53b2ca44eaf8727990f742d0172
1,006
py
Python
aspen/__main__.py
Acidburn0zzz/aspen-python
3b25a3ca041bd0bf4d313f7fc3a15cf092903de7
[ "MIT" ]
null
null
null
aspen/__main__.py
Acidburn0zzz/aspen-python
3b25a3ca041bd0bf4d313f7fc3a15cf092903de7
[ "MIT" ]
null
null
null
aspen/__main__.py
Acidburn0zzz/aspen-python
3b25a3ca041bd0bf4d313f7fc3a15cf092903de7
[ "MIT" ]
null
null
null
""" python -m aspen =============== Aspen ships with a server (wsgiref.simple_server) that is suitable for development and testing. It can be invoked via: python -m aspen though even for development you'll likely want to specify a project root, so a more likely incantation is: ASPEN_PROJECT_ROOT=/path/to/w...
27.944444
71
0.754473
5abddcac686664ae3a44fc39af000fbbf1daafbd
874
py
Python
ax/benchmark2/__init__.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
ax/benchmark2/__init__.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
ax/benchmark2/__init__.py
lyhyl/Ax
44384a0cb1a622c9e395c95f683cfee25c7b61f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from ax.benchmark2.benchmark import ( benchmark_full_run, benchmark_replication, benchmark_test, ) from a...
28.193548
85
0.772311
5abe5b6784894f2e606b06d1d7978dc1a255825c
724
py
Python
setup.py
nvaytet/metatoenv
6d0b5f1093f4042d63f8acad435f0953633f6821
[ "BSD-3-Clause" ]
null
null
null
setup.py
nvaytet/metatoenv
6d0b5f1093f4042d63f8acad435f0953633f6821
[ "BSD-3-Clause" ]
null
null
null
setup.py
nvaytet/metatoenv
6d0b5f1093f4042d63f8acad435f0953633f6821
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, Command from distutils.command.build_py import build_py with open('README.md') as infile: long_description = infile.read() from psrecord import __version__ setup( name='metatoenv', version=__version__, description= 'Generate a conda environment file from a conda met...
25.857143
70
0.685083
5abf1554e4e83fbb167495e7bf4f154fc338e021
28,931
py
Python
git_timestamp/timestamp.py
zeitgitter/git-timestamp
44d68c13036ba706d1b2d1d25773427b474fa39e
[ "MIT" ]
16
2020-02-16T03:21:22.000Z
2021-12-17T19:22:56.000Z
git_timestamp/timestamp.py
zeitgitter/git-timestamp
44d68c13036ba706d1b2d1d25773427b474fa39e
[ "MIT" ]
1
2021-11-02T10:07:18.000Z
2021-11-02T10:07:18.000Z
git_timestamp/timestamp.py
zeitgitter/git-timestamp
44d68c13036ba706d1b2d1d25773427b474fa39e
[ "MIT" ]
2
2020-02-16T03:21:26.000Z
2021-04-05T17:19:05.000Z
#!/usr/bin/python3 -tt # -*- coding: utf-8 -*- # (keep hashbang line for `make install`) # # git timestamp Zeitgitter GIT Timestamping client # # Copyright (C) 2019-2021 Marcel Waldvogel # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lice...
41.868307
103
0.587432
5ac1bdcd4d5d7d445d4e50d14f8bb0137e1a3a22
7,335
py
Python
src/environments/finite_diff_wave.py
jaberkow/Insight_Project
5c24e39fa5ab949e5a99231758ac77d21f566905
[ "MIT" ]
6
2019-07-10T09:33:44.000Z
2019-08-28T11:28:15.000Z
src/environments/finite_diff_wave.py
jaberkow/WaveRL
5c24e39fa5ab949e5a99231758ac77d21f566905
[ "MIT" ]
4
2019-06-18T00:13:25.000Z
2019-08-05T11:48:03.000Z
src/environments/finite_diff_wave.py
jaberkow/Insight_Project
5c24e39fa5ab949e5a99231758ac77d21f566905
[ "MIT" ]
3
2019-08-15T06:43:31.000Z
2020-09-03T05:05:17.000Z
""" Some elements of the finite difference routines were adapted from HP Langtangen's wonderful book on the FD method for python: https://hplgit.github.io/fdm-book/doc/pub/book/html/._fdm-book-solarized001.html """ import numpy as np from scipy.integrate import simps
38.809524
125
0.625767
5ac23e6adffbb28a348a5b76f4d9393d8fb8087e
1,977
py
Python
ejercicios/ahorcado/ahorcado_01.py
carlosviveros/Soluciones
115f4fa929c7854ca497e4c994352adc64565456
[ "MIT" ]
1
2022-02-02T04:44:56.000Z
2022-02-02T04:44:56.000Z
ejercicios/ahorcado/ahorcado_01.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
ejercicios/ahorcado/ahorcado_01.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Contributor: Carolina Morn Source: https://github.com/CarolinaMoran03/Juego-de-ahorcado-con-frase/blob/main/Juego%20de%20ahorcado%20con%20frase """ participante=input("Ingrese nombre del participante: ") print(participante.upper()) if __name__ == "__main...
29.507463
175
0.571067
5ac34357cfbf72b629548e23a5587b2da7dd9eb3
946
py
Python
core/model/encoder/encoder_base.py
baophuc27/answer-generation
36ab9f84f8d4df90abd2bd0255a5229afbd65892
[ "MIT" ]
3
2021-03-25T12:29:49.000Z
2021-06-14T13:15:49.000Z
core/model/encoder/encoder_base.py
baophuc27/answer-generation
36ab9f84f8d4df90abd2bd0255a5229afbd65892
[ "MIT" ]
null
null
null
core/model/encoder/encoder_base.py
baophuc27/answer-generation
36ab9f84f8d4df90abd2bd0255a5229afbd65892
[ "MIT" ]
null
null
null
import torch.nn as nn from abc import ABC,abstractmethod
30.516129
81
0.650106
5ac3496c6293aef55801f31bfe043059c6610afa
467
py
Python
pmaf/biome/survey/_metakit.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/biome/survey/_metakit.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/biome/survey/_metakit.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
from abc import abstractmethod from pmaf.biome._metakit import BiomeFeatureMetabase, BiomeSampleMetabase
19.458333
77
0.704497
5ac34cb506d949289482e24d712032fea0a5bf81
5,912
py
Python
python/pynamics/frame.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
2
2018-08-20T22:01:18.000Z
2021-04-19T00:50:56.000Z
python/pynamics/frame.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
3
2017-10-24T03:10:17.000Z
2017-10-24T03:15:27.000Z
python/pynamics/frame.py
zmpatel19/Foldable-Robotics
97590ec7d173cc1936cc8ff0379b16ad63bcda23
[ "MIT" ]
2
2017-03-03T23:04:17.000Z
2021-03-20T20:33:53.000Z
# -*- coding: utf-8 -*- """ Written by Daniel M. Aukes Email: danaukes<at>gmail.com Please see LICENSE for full license. """ import pynamics from pynamics.tree_node import TreeNode from pynamics.vector import Vector from pynamics.rotation import Rotation, RotationalVelocity from pynamics.name_generator import NameGen...
36.493827
156
0.625169
5ac3d5779a8d78c93d249f8739858eed7b56674a
6,828
py
Python
couchbase_core/mapper.py
couchbase/couchbase-python-client
99ec055835f5aef0cd07905497b3ab4bb3cbbc32
[ "Apache-2.0" ]
189
2015-01-07T18:34:31.000Z
2022-03-21T17:41:56.000Z
couchbase_core/mapper.py
couchbase/couchbase-python-client
99ec055835f5aef0cd07905497b3ab4bb3cbbc32
[ "Apache-2.0" ]
24
2015-05-19T14:00:16.000Z
2022-03-16T22:01:30.000Z
couchbase_core/mapper.py
couchbase/couchbase-python-client
99ec055835f5aef0cd07905497b3ab4bb3cbbc32
[ "Apache-2.0" ]
60
2015-03-10T22:12:50.000Z
2022-03-07T21:57:40.000Z
from typing import * import enum import datetime import warnings from couchbase.exceptions import InvalidArgumentException Src = TypeVar('Src') Dest = TypeVar('Dest') Functor = TypeVar('Functor', bound=Callable[[Src], Dest]) SrcToDest = TypeVar('SrcToDest', bound=Callable[[Src], Dest]) DestToSrc = TypeVar('DestToSr...
30.756757
113
0.605448
5ac41b3cce04df264e1419de46ced2afc4ce1d2c
2,836
py
Python
thedoorman/run.py
FocusedSupport/thedoorman
4f53a921e1bd97d9ff193482e790fa5757f54e7d
[ "MIT" ]
null
null
null
thedoorman/run.py
FocusedSupport/thedoorman
4f53a921e1bd97d9ff193482e790fa5757f54e7d
[ "MIT" ]
29
2017-03-03T16:21:59.000Z
2019-03-11T19:20:24.000Z
thedoorman/run.py
FocusedSupport/thedoorman
4f53a921e1bd97d9ff193482e790fa5757f54e7d
[ "MIT" ]
null
null
null
import threading import sys import os import signal sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "components/slack"))) from slackbot.bot import Bot from pydispatch import dispatcher from components.dispatcher.signals import Signals, Senders import components.devices.doorbell_monitor as dm ...
28.646465
93
0.744358
5ac4b51a79d3af0cebbea2eb96498b7f916e244a
605
py
Python
python/utils/random-sample-with-probabilities.py
leakycup/misc
5cce8cbd7057bf2598c8076ffc257606edb7141e
[ "Apache-2.0" ]
null
null
null
python/utils/random-sample-with-probabilities.py
leakycup/misc
5cce8cbd7057bf2598c8076ffc257606edb7141e
[ "Apache-2.0" ]
null
null
null
python/utils/random-sample-with-probabilities.py
leakycup/misc
5cce8cbd7057bf2598c8076ffc257606edb7141e
[ "Apache-2.0" ]
null
null
null
import sys import codecs import numpy as np #UTF8Writer = codecs.getwriter('utf8') #sys.stdout = UTF8Writer(sys.stdout) input_file = sys.argv[1] probabilities_file = sys.argv[2] sample_size = int(sys.argv[3]) input_list = [] probabilities_list = [] with codecs.open(input_file, 'r', 'utf-8') as f: for line in f...
24.2
96
0.710744
5ac695ccecbc9a0acac17b74afec8f55e9ba28d1
1,286
py
Python
ivy/functional/backends/mxnet/old/linear_algebra.py
Neel-Renavikar/ivy
644ab189a3a3fc52b1f3f86563226106e549eea3
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/mxnet/old/linear_algebra.py
Neel-Renavikar/ivy
644ab189a3a3fc52b1f3f86563226106e549eea3
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/mxnet/old/linear_algebra.py
Neel-Renavikar/ivy
644ab189a3a3fc52b1f3f86563226106e549eea3
[ "Apache-2.0" ]
null
null
null
""" Collection of MXNet linear algebra functions, wrapped to fit Ivy syntax and signature. """ # global import mxnet as _mx import numpy as _np # local import ivy as _ivy from typing import Union, Tuple cholesky = lambda x: _mx.np.linalg.cholesky(x.as_np_ndarray()).as_nd_ndarray()
27.361702
86
0.620529
5ac936989b55dd5518ef35edf3a26894eace0277
157
py
Python
NRPG-DataManager.py
oliverfaustino/NRPG-DataManager
71064cb79be304f712aabcceebd6647121d2cb6c
[ "MIT" ]
null
null
null
NRPG-DataManager.py
oliverfaustino/NRPG-DataManager
71064cb79be304f712aabcceebd6647121d2cb6c
[ "MIT" ]
null
null
null
NRPG-DataManager.py
oliverfaustino/NRPG-DataManager
71064cb79be304f712aabcceebd6647121d2cb6c
[ "MIT" ]
null
null
null
from modulos.query import * from modulos.splash_screen import * if __name__ == '__main__': splash_screen(segundos = 2) while True: query()
17.444444
35
0.675159
5ac93a900f8dd76c156f7ea7f46e47f6ba5ffc11
759
py
Python
01-introduction to python for data science/04-numpy/baseball-players-bmi.py
thelc127/Data-Scientist-Career-Track-Datacamp
56d0ec0ece7fa9127e72b0da598c89f15f31b6b3
[ "MIT" ]
2
2021-05-21T04:59:19.000Z
2021-05-21T08:32:41.000Z
01-introduction to python for data science/04-numpy/baseball-players-bmi.py
thelc127/Data-Scientist-Career-Track-Datacamp
56d0ec0ece7fa9127e72b0da598c89f15f31b6b3
[ "MIT" ]
null
null
null
01-introduction to python for data science/04-numpy/baseball-players-bmi.py
thelc127/Data-Scientist-Career-Track-Datacamp
56d0ec0ece7fa9127e72b0da598c89f15f31b6b3
[ "MIT" ]
null
null
null
# Create a numpy array from the weight_lb list with the correct units. Multiply by 0.453592 to go from pounds to kilograms. # Store the resulting numpy array as np_weight_kg. # Use np_height_m and np_weight_kg to calculate the BMI of each player. # Use the following equation: # BMI = weight(kg) / height (m3) # save the...
31.625
123
0.764163
5acaacc2a5d0c1b378c239243152d8b863342a4f
2,072
py
Python
python/waf-alb-ec2-glue-athena-s3/app.py
gsy0911/aws-cdk-small-examples
e4b4be076d22f5d35f640e59a6ca346988baa1af
[ "Apache-2.0" ]
2
2021-01-19T18:15:22.000Z
2021-02-09T22:18:09.000Z
python/waf-alb-ec2-glue-athena-s3/app.py
gsy0911/aws-cdk-small-examples
e4b4be076d22f5d35f640e59a6ca346988baa1af
[ "Apache-2.0" ]
14
2020-11-20T01:54:27.000Z
2021-01-12T08:15:39.000Z
python/waf-alb-ec2-glue-athena-s3/app.py
gsy0911/aws-cdk-small-examples
e4b4be076d22f5d35f640e59a6ca346988baa1af
[ "Apache-2.0" ]
null
null
null
from aws_cdk import ( aws_autoscaling as autoscaling, aws_ec2 as ec2, aws_elasticloadbalancingv2 as elbv2, aws_wafv2 as wafv2, core, ) if __name__ == "__main__": main()
29.6
105
0.599903
5acb201e61977d9de73500bb4e5a0c3ac26a488a
575
py
Python
src/twitter_utils/browser_session.py
namuan/twitter-tools
b8fad3c668f7bd65c74a0449b450bde957326ce4
[ "MIT" ]
1
2020-07-10T23:35:23.000Z
2020-07-10T23:35:23.000Z
src/twitter_utils/browser_session.py
namuan/twitter-tools
b8fad3c668f7bd65c74a0449b450bde957326ce4
[ "MIT" ]
1
2020-10-02T01:51:51.000Z
2020-10-02T01:51:51.000Z
src/twitter_utils/browser_session.py
namuan/twitter-tools
b8fad3c668f7bd65c74a0449b450bde957326ce4
[ "MIT" ]
2
2020-05-24T07:03:43.000Z
2020-06-24T01:36:43.000Z
from typing import Any from selenium import webdriver # type: ignore
26.136364
55
0.622609
5acb9e1e62ddcd1f2667eff52694832dd21f1914
411
py
Python
editor/templatetags/stamp.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
51
2015-04-19T23:27:04.000Z
2022-03-25T01:43:43.000Z
editor/templatetags/stamp.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
428
2015-01-05T10:56:32.000Z
2022-03-29T14:33:23.000Z
editor/templatetags/stamp.py
andersshenholm/editor
052844de68101c5cdc6d9343e3e095ba816cd34c
[ "Apache-2.0" ]
71
2015-01-28T20:06:15.000Z
2022-03-25T02:35:40.000Z
from django.template import Library from editor.models import STAMP_STATUS_CHOICES register = Library()
27.4
52
0.664234
5acc8629a6ec5a5ef8fb0a2628a406996eb759d6
864
py
Python
ubxlib/ubx_cfg_nmea.py
monocilindro/ubxlib
378e86b7766f670b9a8966ee038275a2155bac54
[ "MIT" ]
3
2020-05-03T17:12:21.000Z
2021-01-16T13:45:07.000Z
ubxlib/ubx_cfg_nmea.py
monocilindro/ubxlib
378e86b7766f670b9a8966ee038275a2155bac54
[ "MIT" ]
35
2020-08-29T09:35:15.000Z
2022-03-18T19:42:34.000Z
ubxlib/ubx_cfg_nmea.py
monocilindro/ubxlib
378e86b7766f670b9a8966ee038275a2155bac54
[ "MIT" ]
4
2020-04-24T03:29:07.000Z
2021-01-13T15:52:53.000Z
from .cid import UbxCID from .frame import UbxFrame from .types import CH, U1, X1, X4, Padding
24
42
0.603009
5ace70d75fc497eeb5ae372bf715cbea09eaaf13
390
py
Python
Lesson_2/up.py
idel28102001/lessons
f88f5034d8c275175dacf66ba5d0342622c1aa50
[ "Apache-2.0" ]
null
null
null
Lesson_2/up.py
idel28102001/lessons
f88f5034d8c275175dacf66ba5d0342622c1aa50
[ "Apache-2.0" ]
null
null
null
Lesson_2/up.py
idel28102001/lessons
f88f5034d8c275175dacf66ba5d0342622c1aa50
[ "Apache-2.0" ]
null
null
null
print(' ') num = '' l = 4 while num == '': l -= 1 num = input(f' {l}? : ') ## num_2 = '' dig = '' while l > 0: number = 10 while num_2 == '': number -= 1 num_2 = input(f' {l}-e {number}? :') # l -= 1 dig = str(number) + dig num_2 = '' print(dig)
21.666667
78
0.525641
5acf6a6ed2a18dd015b90e514e7a54da35d4ea24
34,367
py
Python
agoora-profiler-service/quality_inspection/tests/quality_inspector_test.py
spoud/agoora-agents
918602d428b6cd9918d1ade682fa54e85a9a2df3
[ "MIT" ]
8
2021-03-25T13:49:31.000Z
2021-08-19T04:09:14.000Z
agoora-profiler-service/quality_inspection/tests/quality_inspector_test.py
spoud/agoora-agents
918602d428b6cd9918d1ade682fa54e85a9a2df3
[ "MIT" ]
18
2021-03-31T11:38:45.000Z
2022-02-16T05:00:09.000Z
agoora-profiler-service/quality_inspection/tests/quality_inspector_test.py
spoud/agoora-agents
918602d428b6cd9918d1ade682fa54e85a9a2df3
[ "MIT" ]
null
null
null
import unittest from quality_inspection.quality_inspector import QualityInspector from quality_inspection.schema_definition import SchemaDefinition from quality_inspection.tests.data_loader import DataLoader
35.724532
118
0.575407
5acfa73951bf5dd915adc32a7981cab8b5aacd86
4,247
py
Python
twrap/metrics.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
twrap/metrics.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
twrap/metrics.py
itsnarsi/twrap
cc3128428e37fe0a363e5b18fd7fa0039a963365
[ "MIT" ]
null
null
null
# @Author: Narsi Reddy <cibitaw1> # @Date: 2018-09-22T17:38:05-05:00 # @Email: sainarsireddy@outlook.com # @Last modified by: narsi # @Last modified time: 2019-02-13T22:46:56-06:00 import torch torch.manual_seed(29) from torch import nn import numpy as np np.random.seed(29) import torch.nn.functional as F from tor...
31.932331
104
0.645632
5acfefc74de42e7336d5b91fd88fe5402716e7ad
4,428
py
Python
configs/resnet/contrast_r18_config.py
alecpeltekian/ImgClassification
cf4eca33027ca423623ff965fac354dcfce396d3
[ "Apache-2.0" ]
null
null
null
configs/resnet/contrast_r18_config.py
alecpeltekian/ImgClassification
cf4eca33027ca423623ff965fac354dcfce396d3
[ "Apache-2.0" ]
null
null
null
configs/resnet/contrast_r18_config.py
alecpeltekian/ImgClassification
cf4eca33027ca423623ff965fac354dcfce396d3
[ "Apache-2.0" ]
null
null
null
# ### =============================================================== # ### =============================================================== # ### Modify the dataset loading settings # dataset settings dataset_type = 'ContrastDataset' data_root = '/mnt/cadlabnas/datasets/' img_norm_cfg = dict( mean=[123.675, 116.28...
30.965035
137
0.539747
5ad4e2861aebece133d34e92b30760d0b61fc3a9
662
py
Python
roots/FinalModifiedBisection.py
Seek/LaTechNumeric
dabef2040e84bf25cabab07fe20a6434ce52197b
[ "MIT" ]
null
null
null
roots/FinalModifiedBisection.py
Seek/LaTechNumeric
dabef2040e84bf25cabab07fe20a6434ce52197b
[ "MIT" ]
null
null
null
roots/FinalModifiedBisection.py
Seek/LaTechNumeric
dabef2040e84bf25cabab07fe20a6434ce52197b
[ "MIT" ]
null
null
null
import sys EPS = sys.float_info.epsilon #Define the function print("Computing the roots of x**2 - 2") r = bisect(f, -1.5, 10, 0.00001, 100) print("Root = " + str(r))
16.146341
62
0.539275
5ad51d488ab3d8dfcae8a309205c863eaacc63bd
717
py
Python
main.py
jostimian/Python-To-Facebook
b52f2fb4db01263dc279241c24ad6e9515ba5f45
[ "MIT" ]
null
null
null
main.py
jostimian/Python-To-Facebook
b52f2fb4db01263dc279241c24ad6e9515ba5f45
[ "MIT" ]
null
null
null
main.py
jostimian/Python-To-Facebook
b52f2fb4db01263dc279241c24ad6e9515ba5f45
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait email = input("Enter Your Email: ") password = input("Enter Your Password: ") while email or password == "": print("\n") email = input("Enter Your Email: ") password = input("Enter Your Password") if email and pass...
24.724138
55
0.677824
5ad61d1f671afea82e39013fc63a8845b6a3671b
3,606
py
Python
monique_worker_py/worker.py
biocad/monique-worker-py
56b0ab2e218b80e3a83d7987cd8dd8993a3d66a7
[ "BSD-3-Clause" ]
null
null
null
monique_worker_py/worker.py
biocad/monique-worker-py
56b0ab2e218b80e3a83d7987cd8dd8993a3d66a7
[ "BSD-3-Clause" ]
null
null
null
monique_worker_py/worker.py
biocad/monique-worker-py
56b0ab2e218b80e3a83d7987cd8dd8993a3d66a7
[ "BSD-3-Clause" ]
null
null
null
import zmq import logging import argparse from monique_worker_py.config import read_worker_config from monique_worker_py.qmessage import qmessage_from_json, create_qmessage
37.5625
118
0.598724
5ad6cbcddff8d2b547541b05fb14cdfa5518b9b3
1,081
py
Python
helpers/sendSMS.py
cheikhmbackeseck37/insuris
3362ca445d489e23d57a76bbd6d263f3a5f0b519
[ "MIT" ]
12
2019-08-02T07:58:16.000Z
2022-01-31T23:45:08.000Z
helpers/sendSMS.py
domambia/csdigital-gs1kenya-internal-erp
6736d0e9a3a51653689f8ae921cf811f378d9d8e
[ "MIT" ]
8
2019-08-02T08:06:18.000Z
2022-03-11T23:45:17.000Z
helpers/sendSMS.py
cheikhmbackeseck37/insuris
3362ca445d489e23d57a76bbd6d263f3a5f0b519
[ "MIT" ]
11
2019-07-31T16:23:36.000Z
2022-01-29T08:30:07.000Z
# works with both python 2 and 3 from __future__ import print_function from datetime import datetime import africastalking
38.607143
89
0.518964