hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
f9b5c8efc58630f49b1fe78511366116237e9554
471
py
Python
tests/conditions/operators/test_set_membership_operator.py
rusintez/flipper-client
cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0
[ "Apache-2.0" ]
82
2019-04-03T16:09:04.000Z
2022-03-29T23:48:31.000Z
tests/conditions/operators/test_set_membership_operator.py
rusintez/flipper-client
cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0
[ "Apache-2.0" ]
17
2019-04-16T17:17:36.000Z
2021-02-25T22:06:01.000Z
tests/conditions/operators/test_set_membership_operator.py
rusintez/flipper-client
cd00ae1a3582c5cb7e661c5aa9b8a7b65b35a9e0
[ "Apache-2.0" ]
12
2019-07-29T20:07:28.000Z
2022-03-29T21:10:15.000Z
import unittest from flipper.conditions.operators.set_membership_operator import SetMembershipOperator class TestCompare(unittest.TestCase): def test_returns_true_when_expected_is_in_actual(self): operator = SetMembershipOperator() self.assertTrue(operator.compare(1, [1, 2, 3])) def test_re...
29.4375
86
0.760085
364
0.772824
0
0
0
0
0
0
0
0
f9b86bf8f49332b5a6eedda3d7d77088bf890eb2
19,801
py
Python
pangtreebuild/pangenome/builders/dagmaf2poagraph.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2019-09-04T20:01:28.000Z
2019-12-23T22:41:57.000Z
pangtreebuild/pangenome/builders/dagmaf2poagraph.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2019-08-10T16:18:01.000Z
2019-10-28T21:40:23.000Z
pangtreebuild/pangenome/builders/dagmaf2poagraph.py
meoke/PangTreeBuild
7cafb76df32c559a76ed1d269699dc0e52313312
[ "MIT" ]
2
2020-04-23T23:57:52.000Z
2020-07-12T17:09:02.000Z
from collections import namedtuple from typing import Tuple, List, NewType, Optional, Dict from pangtreebuild.mafgraph.graph import Block from pangtreebuild.mafgraph.graph.Arc import Arc from pangtreebuild.mafgraph.mafreader import start_position from pangtreebuild.pangenome import graph from pangtreebuild.pangenome i...
44.596847
117
0.56982
932
0.047068
0
0
0
0
0
0
1,148
0.057977
f9b8816aef7a829b307e2a9d13b933fbcd80a3a1
353
py
Python
tests/utils/test_gzipgen.py
takanabe/cli
7cbf781d7f286fc4e52ef0980712c28f386e8d09
[ "Apache-2.0" ]
19
2021-01-07T06:41:51.000Z
2022-03-05T08:23:57.000Z
tests/utils/test_gzipgen.py
takanabe/cli
7cbf781d7f286fc4e52ef0980712c28f386e8d09
[ "Apache-2.0" ]
189
2020-11-04T15:38:47.000Z
2022-03-31T05:02:06.000Z
tests/utils/test_gzipgen.py
takanabe/cli
7cbf781d7f286fc4e52ef0980712c28f386e8d09
[ "Apache-2.0" ]
7
2020-11-20T16:55:51.000Z
2022-02-01T11:17:30.000Z
from launchable.utils.gzipgen import compress import gzip from unittest import TestCase class GzippenTest(TestCase): def test_compress(self): """Basic sanity test of """ encoded = b''.join(compress([b'Hello', b' ', b'world'])) msg = gzip.decompress(encoded) print(msg) self....
27.153846
64
0.654391
262
0.74221
0
0
0
0
0
0
64
0.181303
f9ba31abc310c48d834cebff8aeef25ad2407242
138
py
Python
project_data_app/urls.py
chrisba11/kickstarter_projects
08a341d01428d20c384546773a853fc7d99a6140
[ "MIT" ]
null
null
null
project_data_app/urls.py
chrisba11/kickstarter_projects
08a341d01428d20c384546773a853fc7d99a6140
[ "MIT" ]
null
null
null
project_data_app/urls.py
chrisba11/kickstarter_projects
08a341d01428d20c384546773a853fc7d99a6140
[ "MIT" ]
null
null
null
from django.urls import path from .views import project_list_view urlpatterns = [ path('', project_list_view, name='project_list'), ]
23
53
0.753623
0
0
0
0
0
0
0
0
16
0.115942
f9bd66223ae9916274f6536d0f5a42a245f694b0
847
py
Python
tech/CCI.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
tech/CCI.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
tech/CCI.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import talib as ta import numpy as np from util import StockUtil as su from tech import StockTechIndicator class CCI(StockTechIndicator): def __init__(self): StockTechIndicator.__init__(self) def calculate(self, stock_code, date, time_period=14): cci = 0.0 data...
32.576923
129
0.641086
609
0.719008
0
0
0
0
0
0
78
0.09209
f9beae7adf6d3836aaf0918cb0eb1c2fed9c5001
938
py
Python
timeit/timeit_np_ufunc.py
Dennis-van-Gils/DvG_Arduino_lock-in_amp
4576aa529413c93c6e4d6152802349f5f0c3ee16
[ "MIT" ]
9
2020-07-02T15:23:18.000Z
2022-03-04T03:32:04.000Z
timeit/timeit_np_ufunc.py
Dennis-van-Gils/DvG_Arduino_lock-in_amp
4576aa529413c93c6e4d6152802349f5f0c3ee16
[ "MIT" ]
3
2019-04-22T22:53:56.000Z
2021-11-02T20:13:43.000Z
timeit/timeit_np_ufunc.py
Dennis-van-Gils/DvG_Arduino_lock-in_amp
4576aa529413c93c6e4d6152802349f5f0c3ee16
[ "MIT" ]
2
2021-11-05T14:34:22.000Z
2022-03-04T03:32:06.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 6 21:22:33 2018 @author: vangi """ from timeit import timeit setup = ''' import numpy as np np.random.seed(0) N_array = 200000 a_np = np.random.randn(N_array) b_np = np.random.randn(N_array) c_np = np.empty(N_array) def no_ufunc(a_np, b_np, c_np): c_np = a_np * ...
22.333333
83
0.635394
0
0
0
0
0
0
0
0
705
0.751599
f9bff3fda8ac0169c8ed57237e81f02a4608ca3c
2,451
py
Python
conductor/conductor/api/controllers/validator.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
4
2019-02-14T19:18:09.000Z
2019-10-21T17:17:59.000Z
conductor/conductor/api/controllers/validator.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
null
null
null
conductor/conductor/api/controllers/validator.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
4
2019-05-09T07:05:54.000Z
2020-11-20T05:56:47.000Z
# # ------------------------------------------------------------------------- # Copyright (c) 2015-2017 AT&T Intellectual Property # # 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 # # ...
38.296875
78
0.572011
1,496
0.610363
0
0
0
0
0
0
1,159
0.472868
f9c217fdeaa845a8b5a88bdf4815b175a49ccae7
32,310
py
Python
gamejoltapi.py
bgempire/gamejoltapi
03a77527e00a67e5990dbc1289c54e280954b712
[ "MIT" ]
1
2022-01-18T12:08:58.000Z
2022-01-18T12:08:58.000Z
gamejoltapi.py
bgempire/gamejoltapi
03a77527e00a67e5990dbc1289c54e280954b712
[ "MIT" ]
null
null
null
gamejoltapi.py
bgempire/gamejoltapi
03a77527e00a67e5990dbc1289c54e280954b712
[ "MIT" ]
1
2021-04-30T11:27:39.000Z
2021-04-30T11:27:39.000Z
from urllib.parse import urlencode as _urlencode, quote as _quote from urllib.request import urlopen as _urlopen from hashlib import md5 as _md5 from ast import literal_eval as _literal_eval from collections import OrderedDict as _OrderedDict _DEBUG = False class GameJoltDataRequired(Exception): """ Exception ra...
38.327402
498
0.572857
32,043
0.991736
0
0
0
0
0
0
18,870
0.58403
f9c3b4eb59658fb2124d809e4025b7e6912a6d8f
3,243
py
Python
poplar/util.py
mortonjt/poplar
854d1ef819392f54536df386ef034091831802ed
[ "BSD-3-Clause" ]
null
null
null
poplar/util.py
mortonjt/poplar
854d1ef819392f54536df386ef034091831802ed
[ "BSD-3-Clause" ]
null
null
null
poplar/util.py
mortonjt/poplar
854d1ef819392f54536df386ef034091831802ed
[ "BSD-3-Clause" ]
null
null
null
import os import inspect import torch import numpy as np import numbers def get_data_path(fn, subfolder='data'): """Return path to filename ``fn`` in the data folder. During testing it is often necessary to load data files. This function returns the full path to files in the ``data`` subfolder by def...
26.153226
81
0.588344
0
0
0
0
0
0
0
0
1,483
0.457293
f9c72fdee75782efa656735bc0a7c52d729983de
5,109
py
Python
search-github-ip.py
brilliant116/learning-code
5378b1f0c53b4ceac56942044bbb666278a138f2
[ "MIT" ]
null
null
null
search-github-ip.py
brilliant116/learning-code
5378b1f0c53b4ceac56942044bbb666278a138f2
[ "MIT" ]
null
null
null
search-github-ip.py
brilliant116/learning-code
5378b1f0c53b4ceac56942044bbb666278a138f2
[ "MIT" ]
null
null
null
import asyncio import time import socket import argparse import aiohttp class MyConnector(aiohttp.TCPConnector): def __init__(self, ip): self.__ip = ip super().__init__() async def _resolve_host( self, host: str, port: int, traces: None = None, ): return [{ 'hostname': host, 'host': s...
24.921951
109
0.595811
330
0.06424
0
0
0
0
4,249
0.827136
1,113
0.216663
f9c7d6fee331123a55864020b776b1d34238b97d
467
py
Python
src/todo/522-LongestUncommonSubsequenceII.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
1
2022-03-03T15:11:48.000Z
2022-03-03T15:11:48.000Z
src/todo/522-LongestUncommonSubsequenceII.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
null
null
null
src/todo/522-LongestUncommonSubsequenceII.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
2
2022-01-20T22:49:58.000Z
2022-01-20T22:53:13.000Z
#!/usr/bin/env python """ CREATED AT: 2021/8/28 Des: https://leetcode.com/problems/longest-uncommon-subsequence-ii/ GITHUB: https://github.com/Jiezhi/myleetcode """ from typing import List class Solution: def findLUSlength(self, strs: List[str]) -> int: pass def test(): assert Solution().findLUSle...
18.68
68
0.648822
81
0.173448
0
0
0
0
0
0
204
0.436831
f9c8ce2fe1e056d6cf0dbb9895f3232eec31c3ce
23,732
py
Python
AdventOfCode/2020/day20.py
benhunter/coding-challenges
0cca059da7c8ae6cdc62dbeb3db8250ab42ac3b6
[ "MIT" ]
null
null
null
AdventOfCode/2020/day20.py
benhunter/coding-challenges
0cca059da7c8ae6cdc62dbeb3db8250ab42ac3b6
[ "MIT" ]
null
null
null
AdventOfCode/2020/day20.py
benhunter/coding-challenges
0cca059da7c8ae6cdc62dbeb3db8250ab42ac3b6
[ "MIT" ]
null
null
null
# Advent of Code 2020 Day # https://adventofcode.com/2020/ import cProfile import itertools import math import numpy as np from collections import namedtuple from pprint import pformat, pprint from typing import List, Optional from numpy.typing import ArrayLike USE_EXAMPLE1 = False # example input or full input D...
36.567026
110
0.605469
0
0
2,178
0.091775
0
0
0
0
6,026
0.253919
f9caa403c7cda77ed58ce080740499d1a738c3e3
1,870
py
Python
src/server_main_loop.py
the40san/unity_survival_shooter_multi_server_python
d20d9aa2204bca70d0787acbfe395277b776e92d
[ "MIT" ]
3
2017-04-11T05:36:08.000Z
2021-03-16T16:22:07.000Z
src/server_main_loop.py
the40san/unity_survival_shooter_multi_server_python
d20d9aa2204bca70d0787acbfe395277b776e92d
[ "MIT" ]
null
null
null
src/server_main_loop.py
the40san/unity_survival_shooter_multi_server_python
d20d9aa2204bca70d0787acbfe395277b776e92d
[ "MIT" ]
1
2017-04-11T05:35:26.000Z
2017-04-11T05:35:26.000Z
import socket import select from server_info import ServerInfo from client_handler.client_thread import ClientThread from server_handler.server_thread import ServerThread from server_handler.server_thread_proxy import ServerThreadProxy from logger import Logger class ServerMainLoop: def __init__(self): sel...
30.16129
81
0.647059
1,606
0.858824
0
0
0
0
0
0
71
0.037968
f9caf1a992a5eacb6d048931ae39cf07dfd472c4
8,838
py
Python
Aula_01/Aula01_Resolucao_Exercicios_Lista_Estruturas_Condicionais.py
elcbasilio/letscode
ea2ed5ee80485d98fad2c77a7a50927a7d524793
[ "MIT" ]
null
null
null
Aula_01/Aula01_Resolucao_Exercicios_Lista_Estruturas_Condicionais.py
elcbasilio/letscode
ea2ed5ee80485d98fad2c77a7a50927a7d524793
[ "MIT" ]
null
null
null
Aula_01/Aula01_Resolucao_Exercicios_Lista_Estruturas_Condicionais.py
elcbasilio/letscode
ea2ed5ee80485d98fad2c77a7a50927a7d524793
[ "MIT" ]
null
null
null
# 1. Peça a idade do usuário e imprima se ele é maior ou menor de 18 anos; idade = int (input ('Digite sua idade:')) if idade < 18: print ('Você tem menos de 18 anos') else: print ('Você tem 18 anos ou mais') # 2. Peça um número e mostre se ele é positivo ou negativo; numero = float (input ('Digite um número ...
34.795276
209
0.642114
0
0
0
0
0
0
0
0
5,626
0.62056
f9cd5d6aedbff1e1481a77881774667ef1fefe16
2,023
py
Python
ros_radar_mine/neuro_learning/controller/testing/load_and_test.py
tudelft/blimp_snn
23acbef8822337387aee196a3a10854e82bb4f80
[ "Apache-2.0" ]
3
2021-11-08T20:20:21.000Z
2021-12-29T09:05:37.000Z
ros_radar_mine/neuro_learning/controller/testing/load_and_test.py
tudelft/blimp_snn
23acbef8822337387aee196a3a10854e82bb4f80
[ "Apache-2.0" ]
null
null
null
ros_radar_mine/neuro_learning/controller/testing/load_and_test.py
tudelft/blimp_snn
23acbef8822337387aee196a3a10854e82bb4f80
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 2 20:41:01 2021 @author: marina Interesting: - T2000_NPOP100_NGEN500_NEU2-10-5-2-1_05-04-2021_19-08-51: Really smooth and contained between (-3,3) - T2000_NPOP100_NGEN500_NEU2-10-5-2-1_05-04-2021_19-25-20 """ # Set absolute package path i...
26.973333
126
0.707365
0
0
0
0
0
0
0
0
1,449
0.716263
f9ce968f21d6e6f401b8601663fad589082a13f8
293
py
Python
HackerRank/Python/Sets/py-the-captains-room.py
neiesc/Problem-solving
d3bce7a3b9801e6049e2c135418b31cba47b0964
[ "MIT" ]
1
2019-07-20T16:59:21.000Z
2019-07-20T16:59:21.000Z
HackerRank/Python/Sets/py-the-captains-room.py
neiesc/Problem-solving
d3bce7a3b9801e6049e2c135418b31cba47b0964
[ "MIT" ]
5
2019-03-10T19:46:42.000Z
2020-04-24T22:42:30.000Z
HackerRank/Python/Sets/py-the-captains-room.py
neiesc/Problem-solving
d3bce7a3b9801e6049e2c135418b31cba47b0964
[ "MIT" ]
null
null
null
#!/bin/python3 # The Captain's Room # https://www.hackerrank.com/challenges/py-the-captains-room/problem from collections import Counter if __name__ == '__main__': k = int(input()) room_captain = Counter(map(int, input().split())).most_common()[:-2:-1] print(room_captain[0][0])
29.3
76
0.68942
0
0
0
0
0
0
0
0
112
0.382253
f9cf4cff9f1ee36f3f46ec1c7c81c7f6a57782b0
1,536
py
Python
transformer_2/data/processing/__init__.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
null
null
null
transformer_2/data/processing/__init__.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
1
2020-06-01T02:13:10.000Z
2020-06-01T02:13:10.000Z
transformer_2/data/processing/__init__.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals # Registry from transformer_2.data.processing._registry import PROCESSOR_REGISTRY, \ BaseProcessor, register_processor, Compose, make_processor_from_list # Generic processors from transformer_2.data.processing.general import HtmlUnesca...
34.909091
77
0.802734
0
0
0
0
0
0
0
0
508
0.330729
f9d231776637662c74f12d56ca75ccd899e7d32a
7,223
py
Python
pydmc/pydmc.py
TeradataInteractiveAmericas/pydmc
817899311f7908436fba7e1fc553a019bafadcb6
[ "MIT" ]
1
2017-02-16T13:55:32.000Z
2017-02-16T13:55:32.000Z
pydmc/pydmc.py
TeradataInteractiveAmericas/pydmc
817899311f7908436fba7e1fc553a019bafadcb6
[ "MIT" ]
null
null
null
pydmc/pydmc.py
TeradataInteractiveAmericas/pydmc
817899311f7908436fba7e1fc553a019bafadcb6
[ "MIT" ]
null
null
null
""" PyDMC API Client """ import requests class DMC: def __init__(self,user,pwrd,host,v=5,content='json',accept='json'): self.user = user self.pwrd = pwrd self.host = "%s/api/rest/v%d" % (host,v) self.content = content self.accept = accept self.headers = { ...
29.72428
131
0.5668
7,161
0.991416
0
0
0
0
0
0
1,589
0.219992
f9d3186f39a6e3865241f7bef73bfedbb15ea7d5
832
py
Python
COE/contents/building/__init__.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
null
null
null
COE/contents/building/__init__.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
2
2022-01-31T21:05:15.000Z
2022-01-31T21:08:11.000Z
COE/contents/building/__init__.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
1
2022-02-04T12:05:14.000Z
2022-02-04T12:05:14.000Z
from .archery_range import ArcheryRange from .barrack import Barrack from .building import Building from .dock import Dock from .farm import Farm from .granary import Granary from .market import Market from .military_building import MilitaryBuilding from .stable import Stable from .storage_building import StorageBuildi...
23.111111
51
0.740385
0
0
0
0
0
0
0
0
179
0.215144
f9d3e8e17cb4d7f9fe9db4b44a63b0c8a9f8f65f
323
py
Python
test/suite/E27.py
shardros/autopep8
2ab2ea74668b10f3910f3d5b9526494fa5671ca1
[ "MIT" ]
3,459
2015-01-03T15:53:43.000Z
2022-03-31T16:33:01.000Z
test/suite/E27.py
hayata-yamamoto/autopep8
107e29dce22c7b367a36633a78735278e4ad4288
[ "MIT" ]
435
2015-01-03T12:58:44.000Z
2022-03-29T12:37:13.000Z
test/suite/E27.py
hayata-yamamoto/autopep8
107e29dce22c7b367a36633a78735278e4ad4288
[ "MIT" ]
279
2015-03-16T16:34:51.000Z
2022-03-26T23:58:48.000Z
#: Okay True and False #: E271 True and False #: E272 True and False #: E271 if 1: #: E273 True and False #: E273 E274 True and False #: E271 a and b #: E271 1 and b #: E271 a and 2 #: E271 E272 1 and b #: E271 E272 a and 2 #: E272 this and False #: E273 a and b #: E274 a and b #: E273 E274 this and Fal...
10.419355
15
0.613003
0
0
0
0
0
0
0
0
125
0.386997
f9d666c57cbfbdaa2610dd40857b2cf6d3dbfa06
8,973
py
Python
api/GIS/functionalFun/thread_GIS.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/GIS/functionalFun/thread_GIS.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
api/GIS/functionalFun/thread_GIS.py
AutoCoinDCF/NEW_API
f4abc48fff907a0785372b941afcd67e62eec825
[ "Apache-2.0" ]
null
null
null
from threading import Thread,Lock from api.GIS.config import GIS_mgdb_config from api.GIS.database.mongoDB import MGO import json from api.GIS.GISStaticsFun import GisStaticsFun class TheadFun(): def __init__(self): pass # self.param = param def queryQBByIds(self,ids): DBConfig = []...
41.35023
140
0.5482
8,929
0.979809
0
0
7,451
0.817623
0
0
1,234
0.135411
f9d69be77fcbae4d67f52431660566569a03abe1
268
py
Python
src/cell.py
ViktorBusk/Machine-Learning-Number-Prediction
f9863ccdb623ed3bf83ca26faae310d56f087c4f
[ "MIT" ]
null
null
null
src/cell.py
ViktorBusk/Machine-Learning-Number-Prediction
f9863ccdb623ed3bf83ca26faae310d56f087c4f
[ "MIT" ]
null
null
null
src/cell.py
ViktorBusk/Machine-Learning-Number-Prediction
f9863ccdb623ed3bf83ca26faae310d56f087c4f
[ "MIT" ]
null
null
null
import pygame class Cell: def __init__(self, pos, dimensions, color): self.pos = pos self.dimensions = dimensions self.color = color def draw(self, screen): pygame.draw.rect(screen, self.color, ((self.pos), (self.dimensions)))
26.8
77
0.630597
253
0.94403
0
0
0
0
0
0
0
0
f9d780addff74609d2c11318421ccdacd8b15d8d
1,845
py
Python
Creating a variable at template using filter.py/filter.py
YooInKeun/Facebook-Page-Insights-Web-Crawler
dbe8477b1e0671aca137cd94eff090d691e99ee2
[ "MIT" ]
1
2021-07-12T00:04:04.000Z
2021-07-12T00:04:04.000Z
Creating a variable at template using filter.py/filter.py
YooInKeun/Facebook-Page-Insights-Web-Crawler
dbe8477b1e0671aca137cd94eff090d691e99ee2
[ "MIT" ]
null
null
null
Creating a variable at template using filter.py/filter.py
YooInKeun/Facebook-Page-Insights-Web-Crawler
dbe8477b1e0671aca137cd94eff090d691e99ee2
[ "MIT" ]
null
null
null
from django import template register = template.Library() # 문자열 변수 생성 가능 class SetVarNode(template.Node): def __init__(self, new_val, var_name): self.new_val = new_val self.var_name = var_name def render(self, context): context[self.var_name] = self.new_val return ...
29.758065
112
0.616802
643
0.341476
0
0
1,073
0.569835
0
0
420
0.223048
f9d7b799633ebd72932c23f0a6056d0edfbe48dc
2,194
py
Python
kblight.py
marklr/system76-kbdlight-cli
03ba5ce04c7abd7b125e6777aac7cf19c6651f51
[ "MIT" ]
null
null
null
kblight.py
marklr/system76-kbdlight-cli
03ba5ce04c7abd7b125e6777aac7cf19c6651f51
[ "MIT" ]
null
null
null
kblight.py
marklr/system76-kbdlight-cli
03ba5ce04c7abd7b125e6777aac7cf19c6651f51
[ "MIT" ]
null
null
null
#!/bin/env python3 import sys import plac import webcolors import os _COLOR_FILTERS = { '#': '', '(': '', ')': '', } LIGHT_CONTROLS = { 'left': '/sys/class/leds/system76::kbd_backlight/color_left', 'center': '/sys/class/leds/system76::kbd_backlight/color_center', 'right': '/sys/class/leds/sys...
26.119048
91
0.592981
0
0
0
0
0
0
0
0
585
0.266636
f9d8c56ae37748311a4ccb37002818c53ff1fd16
420
py
Python
fimath/constants.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
fimath/constants.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
fimath/constants.py
kalinkinisaac/modular
301d26ad222a5ef3278aaf251908e0a8537bb58f
[ "MIT" ]
null
null
null
from .field import Field from .re_field import ReField from .matrix import Matrix inf = Field(is_inf=True) IDM = Matrix(1, 0, 0, 1) G0 = Matrix(0, -1, 1, 0) G1 = Matrix(0, 1, -1, 1) G1_2 = G1 ** 2 G0_ = Matrix(0, 1, -1, 0) G1_ = Matrix(1, 1, -1, 0) G1_2_ = G1_ ** 2 G_ = Matrix(1, -1, 0, 1) G__ = Matrix(1, 0, -1, 1)...
16.8
40
0.592857
0
0
0
0
0
0
0
0
0
0
f9dab830b35494d6660350f19bc8089f5510126e
116
py
Python
test/__init__.py
elagheb/at_commands
51f1fa553b651b639aa3d1e1b3ac4ff07322f7a0
[ "BSD-2-Clause" ]
null
null
null
test/__init__.py
elagheb/at_commands
51f1fa553b651b639aa3d1e1b3ac4ff07322f7a0
[ "BSD-2-Clause" ]
null
null
null
test/__init__.py
elagheb/at_commands
51f1fa553b651b639aa3d1e1b3ac4ff07322f7a0
[ "BSD-2-Clause" ]
null
null
null
import unittest import unittest.mock as mock from unittest.mock import patch __all__ = ['unittest','mock','patch']
19.333333
37
0.767241
0
0
0
0
0
0
0
0
23
0.198276
f9ddbc50ba159c971816ef0bfcfea8bf2513c89c
5,972
py
Python
reporte.py
InoveProyectos/Buscador-Alquileres-Python
78379da88db7957cdc8c804e0491f2a796e2c706
[ "Unlicense" ]
1
2020-05-13T04:29:44.000Z
2020-05-13T04:29:44.000Z
reporte.py
InoveProyectos/Buscador-Alquileres-Python
78379da88db7957cdc8c804e0491f2a796e2c706
[ "Unlicense" ]
null
null
null
reporte.py
InoveProyectos/Buscador-Alquileres-Python
78379da88db7957cdc8c804e0491f2a796e2c706
[ "Unlicense" ]
3
2020-05-13T18:25:34.000Z
2020-11-24T16:19:37.000Z
#!/usr/bin/env python ''' Reporte búsqueda de alquileres de Inmuebles --------------------------- Autor: Inove Coding School Version: 1.0 Descripcion: Este script realiza reportes de los datos adquiridos de alquileres de inmuebles Reporte Nº 0: Visualizar todos los reportes juntos de estudio por ambientes y...
39.289474
146
0.641996
0
0
0
0
0
0
0
0
2,585
0.432202
f9de9cbd50628088d488c6c5b4c6b194981f73ef
3,043
py
Python
imap.py
cynsky/voyage_data_emails
3cc3b1364248dd3fed56e4c9f4c3ad619c6650ae
[ "MIT" ]
1
2020-09-22T16:24:31.000Z
2020-09-22T16:24:31.000Z
imap.py
cynsky/voyage_data_emails
3cc3b1364248dd3fed56e4c9f4c3ad619c6650ae
[ "MIT" ]
null
null
null
imap.py
cynsky/voyage_data_emails
3cc3b1364248dd3fed56e4c9f4c3ad619c6650ae
[ "MIT" ]
null
null
null
""" Read voyage data emails. """ import email from imaplib import IMAP4_SSL import logging OK = 'OK' logger = logging.getLogger(__name__) class EmailCheckError(Exception): pass class EmailServer: def __init__(self, server, username, password): self.password = password self.server = server self.username...
20.019737
73
0.692737
2,895
0.951364
565
0.185672
0
0
0
0
1,449
0.476175
f9de9f006fc9afa79a63265eef2873fd5e7b5f5b
1,991
py
Python
2021/python/day3.py
majormunky/advent_of_code
4cccd7f3879e28e465bbc39176659bdd52bd70d6
[ "MIT" ]
null
null
null
2021/python/day3.py
majormunky/advent_of_code
4cccd7f3879e28e465bbc39176659bdd52bd70d6
[ "MIT" ]
null
null
null
2021/python/day3.py
majormunky/advent_of_code
4cccd7f3879e28e465bbc39176659bdd52bd70d6
[ "MIT" ]
1
2020-12-04T06:12:01.000Z
2020-12-04T06:12:01.000Z
from common import get_file_contents def most_common(index, items, total): if int(items[index]) >= total / 2: return "1" else: return "0" def least_common(index, items, total): # if our number is bigger than half our total lines # then we know that 1 is the more common value # so we return 0 if int(items[...
20.316327
72
0.658463
0
0
0
0
0
0
0
0
354
0.1778
f9e18afe3ddb7b565b697f03187cc311b80b604e
670
py
Python
dallinger/redis_utils.py
Dallinger/Dallinger
c3acf1375391ef8cb702641638bf5a5008aa9be3
[ "MIT" ]
100
2016-09-07T03:55:36.000Z
2022-02-28T02:20:10.000Z
dallinger/redis_utils.py
Dallinger/Dallinger
c3acf1375391ef8cb702641638bf5a5008aa9be3
[ "MIT" ]
3,457
2016-09-05T23:21:31.000Z
2022-03-31T19:11:31.000Z
dallinger/redis_utils.py
Dallinger/Dallinger
c3acf1375391ef8cb702641638bf5a5008aa9be3
[ "MIT" ]
53
2016-10-03T07:24:34.000Z
2021-10-20T20:42:38.000Z
import os import redis from urllib.parse import urlparse def connect_to_redis(url=None): """Return a connection to Redis. If a URL is supplied, it will be used, otherwise an environment variable is checked before falling back to a default. Since we are generally running on Heroku, and configuring S...
30.454545
78
0.723881
0
0
0
0
0
0
0
0
382
0.570149
f9e1ea0fa4cb837c6d62e27ef66230461e2beb01
139
py
Python
libkludge/generate/this_access.py
zhangxiao6776/kludge
17a561f4b15399edd8175c883f8410a1b23c4d90
[ "BSD-3-Clause" ]
null
null
null
libkludge/generate/this_access.py
zhangxiao6776/kludge
17a561f4b15399edd8175c883f8410a1b23c4d90
[ "BSD-3-Clause" ]
null
null
null
libkludge/generate/this_access.py
zhangxiao6776/kludge
17a561f4b15399edd8175c883f8410a1b23c4d90
[ "BSD-3-Clause" ]
2
2017-12-01T20:44:14.000Z
2021-08-21T21:47:04.000Z
# # Copyright (c) 2010-2016, Fabric Software Inc. All rights reserved. # class ThisAccess(object): const = 0 mutable = 1 static = 2
15.444444
68
0.676259
64
0.460432
0
0
0
0
0
0
70
0.503597
f9e2a6cf566ceeaab2c7f9874c63accbd13dbe53
88
py
Python
project/server/main/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
1
2019-01-15T10:33:04.000Z
2019-01-15T10:33:04.000Z
project/server/main/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
null
null
null
project/server/main/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
null
null
null
from . import modules def init_app(app, **kwargs): modules.init_app(app, **kwargs)
17.6
35
0.693182
0
0
0
0
0
0
0
0
0
0
f9e3c2c814e617eb1250bbe52b5026a15b1d2778
366
py
Python
Python by Harish/Class 1/Loops.py
kai92a/Learning_Python
5195aeb950e21150838c44d7c6af87cd86d31301
[ "MIT" ]
null
null
null
Python by Harish/Class 1/Loops.py
kai92a/Learning_Python
5195aeb950e21150838c44d7c6af87cd86d31301
[ "MIT" ]
null
null
null
Python by Harish/Class 1/Loops.py
kai92a/Learning_Python
5195aeb950e21150838c44d7c6af87cd86d31301
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 2 03:02:57 2021 @author: sgaa_ """ print ("for loop") for i in range (1,20): print (i) print ("while loop") i=1 while i<12: print (i) i+=1 if 1 in range(2,5): print ("Yes 1 is in the range") elif 3 in range (3,5): print ("Yes 1 is in range 2") el...
14.64
41
0.565574
0
0
0
0
0
0
0
0
177
0.483607
f9e4232dbd5470195e751b3cfb7348b26305a4d1
12,684
py
Python
src/utils/datasets.py
gorjanradevski/siamese_multi_head_attention
fcbfe21f284bf98a1d0e725a9e6f2df19363b4a5
[ "MIT" ]
2
2020-06-11T03:03:35.000Z
2022-01-08T07:15:46.000Z
src/utils/datasets.py
gorjanradevski/multimodal_representations_deep_learning
fcbfe21f284bf98a1d0e725a9e6f2df19363b4a5
[ "MIT" ]
null
null
null
src/utils/datasets.py
gorjanradevski/multimodal_representations_deep_learning
fcbfe21f284bf98a1d0e725a9e6f2df19363b4a5
[ "MIT" ]
null
null
null
import json import re import os import logging from abc import ABC from typing import Dict, Any, List, Tuple from utils.constants import pascal_train_size, pascal_val_size logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def preprocess_caption(caption: str) -> str: """Basic method us...
34.467391
88
0.601861
11,880
0.936613
0
0
8,705
0.686298
0
0
4,768
0.375907
dda43962342edb0739a7efdbd01b8d80c87c5e19
26,474
py
Python
libica/openapi/libgds/api/volumes_api.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
null
null
null
libica/openapi/libgds/api/volumes_api.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
4
2021-11-15T10:47:51.000Z
2022-02-22T04:43:20.000Z
libica/openapi/libgds/api/volumes_api.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
null
null
null
# coding: utf-8 """ Genomic Data Store Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import im...
49.116883
261
0.619136
25,920
0.978926
0
0
0
0
0
0
16,933
0.639512
dda4affe6b2847c17389112e2763a725bc4f7b5b
5,545
py
Python
jaxtorch/image.py
GallagherCommaJack/jaxtorch
3bc6785d781f12fabf3a436d9cfc0b839ebf5aec
[ "MIT" ]
null
null
null
jaxtorch/image.py
GallagherCommaJack/jaxtorch
3bc6785d781f12fabf3a436d9cfc0b839ebf5aec
[ "MIT" ]
null
null
null
jaxtorch/image.py
GallagherCommaJack/jaxtorch
3bc6785d781f12fabf3a436d9cfc0b839ebf5aec
[ "MIT" ]
null
null
null
import math from typing import Tuple import jax import jax.numpy as jnp import numpy as np from einops import repeat def factor_int(n: int) -> Tuple[int, int]: f1 = int(math.ceil(math.sqrt(n))) while n % f1: f1 -= 1 f2 = n // f1 return min(f1, f2), max(f1, f2) def compute_channel_change_mat...
25.671296
85
0.544274
0
0
0
0
0
0
0
0
305
0.055005
dda604bdbe931306a411dfabae424401c18dc54e
1,210
py
Python
1-image2ascii/image2ascii.py
dourgey/Python_Exercise
f41d69033b76d2fea3671f751e936cb804742b57
[ "MIT" ]
null
null
null
1-image2ascii/image2ascii.py
dourgey/Python_Exercise
f41d69033b76d2fea3671f751e936cb804742b57
[ "MIT" ]
null
null
null
1-image2ascii/image2ascii.py
dourgey/Python_Exercise
f41d69033b76d2fea3671f751e936cb804742b57
[ "MIT" ]
null
null
null
# Author: @dourgey # Create Time: 2019/12/27: 18:06 # 主要知识点: # argparse的使用 # 检查文件路径是否存在 # PILLOW读取图片并处理 # 文件写入 import argparse import os import sys from PIL import Image parser = argparse.ArgumentParser() parser.add_argument("-i", "--image", help="主人要转换的图片路径喵,默认在当前路径下读取喵~") parser.add_argument("-f", "--file", help="...
22
107
0.629752
0
0
0
0
0
0
0
0
701
0.46609
dda62a60e83b2ac0fa35757329d616e26ea6b265
6,536
py
Python
python/ray/serialization.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
python/ray/serialization.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
python/ray/serialization.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import ray.numbuf import ray.pickling as pickling def check_serializable(cls): """Throws an exception if Ray cannot serialize this class efficiently. Args: cls (type): The class t...
35.521739
79
0.684823
0
0
0
0
0
0
0
0
3,282
0.502142
dda91173fa6aa6ba29a55f8ecc21898b460a57e2
3,729
py
Python
wlcsim/FrankElastic/stonefence.py
SpakowitzLab/BasicWLC
13edbbc8e8cd36a3586571ff4d80880fc89d30e6
[ "MIT" ]
1
2021-03-16T01:39:18.000Z
2021-03-16T01:39:18.000Z
wlcsim/FrankElastic/stonefence.py
riscalab/wlcsim
e34877ef6c5dc83c6444380dbe624b371d70faf2
[ "MIT" ]
17
2016-07-08T21:17:40.000Z
2017-01-24T09:05:25.000Z
wlcsim/FrankElastic/stonefence.py
riscalab/wlcsim
e34877ef6c5dc83c6444380dbe624b371d70faf2
[ "MIT" ]
9
2016-06-21T22:03:53.000Z
2016-11-10T00:55:01.000Z
from numpy import sqrt import numpy as np #from util import sphinx_compat_jit as jit from numba import jit ORDER_L=50 @jit def alpha(l,m): return sqrt((3*(l-m)*(l+m))/(4*np.pi*(2*l-1)*(2*l+1))) @jit def alpha_plus(l,m): return sqrt((3*(l+m)*(l+m+1))/(8*np.pi*(2*l-1)*(2*l+1))) @jit def Alm(l,m): retu...
30.565574
79
0.592116
0
0
0
0
2,799
0.750603
0
0
1,191
0.319389
dda9ad1f88ac589e37e334d17add8aea6f4a5cd4
2,694
py
Python
main.py
vojtsek/twitter-sentiment
8f3fbb7be8ac9c0e786b5a58253a24ee8b3f5dae
[ "MIT" ]
null
null
null
main.py
vojtsek/twitter-sentiment
8f3fbb7be8ac9c0e786b5a58253a24ee8b3f5dae
[ "MIT" ]
null
null
null
main.py
vojtsek/twitter-sentiment
8f3fbb7be8ac9c0e786b5a58253a24ee8b3f5dae
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import json import os import os.path as path from collections import OrderedDict import argparse import tweepy from tweepy import Stream import twitter_config from tweet_writer_listener import TweetWriterListener CITIES = ['San Francisco', 'New York', 'Boston', 'Los Angeles', '...
32.071429
99
0.682257
0
0
0
0
0
0
0
0
473
0.175575
ddaa279788a0d07cc55b56c6e5a215a8e2e118cc
9,283
py
Python
controllers/default.py
npfe/pursuit
edd2d66ec0770251041b748c4b9f967a15c138b5
[ "Unlicense" ]
null
null
null
controllers/default.py
npfe/pursuit
edd2d66ec0770251041b748c4b9f967a15c138b5
[ "Unlicense" ]
16
2020-03-30T13:00:10.000Z
2020-05-16T16:42:52.000Z
controllers/default.py
npfe/pursuit
edd2d66ec0770251041b748c4b9f967a15c138b5
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------- # This is a sample controller # this file is released under public domain and you can use without limitations # ------------------------------------------------------------------------- import json from datetime import d...
39.004202
129
0.596251
0
0
0
0
180
0.01939
0
0
2,324
0.25035
ddaaf774a1abba687897e41a33028b028a3ed7fd
2,200
py
Python
convertgf.py
Wivik/gundam-france
65d84098eec431e7e27b6a6c0f1e6eadea1c2bc8
[ "MIT" ]
null
null
null
convertgf.py
Wivik/gundam-france
65d84098eec431e7e27b6a6c0f1e6eadea1c2bc8
[ "MIT" ]
null
null
null
convertgf.py
Wivik/gundam-france
65d84098eec431e7e27b6a6c0f1e6eadea1c2bc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from markdownify import markdownify as md import argparse import re import os import sys parser = argparse.ArgumentParser() parser.add_argument('input_file', help='file to convert') args = parser.parse_args() input_file = args.input_file print(input_file) if not re.search('.dist.php', input_...
32.352941
86
0.537727
0
0
0
0
0
0
0
0
991
0.449433
ddab10387c063d1c5dd03502020dc60340b9c9c1
1,957
py
Python
scripts/disktest.py
CloudAdvocacy/ObjectDetection
ba823455a43684dea8f0bc1eab6f669a818895bb
[ "MIT" ]
null
null
null
scripts/disktest.py
CloudAdvocacy/ObjectDetection
ba823455a43684dea8f0bc1eab6f669a818895bb
[ "MIT" ]
null
null
null
scripts/disktest.py
CloudAdvocacy/ObjectDetection
ba823455a43684dea8f0bc1eab6f669a818895bb
[ "MIT" ]
null
null
null
import io, os import argparse from timeit import default_timer as timer parser = argparse.ArgumentParser(description="File Performance Testing Util") parser.add_argument("command",help="Test to perform",choices=['read','write','readany']) parser.add_argument("dir",help="Directory to use") args = parser.parse_args() ...
33.169492
94
0.616249
0
0
0
0
0
0
0
0
343
0.175268
ddab703f80463a12929dce437920fcb4f1403fd4
151
py
Python
assignment2/scripts/exploit15/exploit15.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
8
2020-02-22T12:47:12.000Z
2021-12-03T11:39:19.000Z
assignment2/scripts/exploit15/exploit15.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
null
null
null
assignment2/scripts/exploit15/exploit15.py
vhazali/cs5331
3b3618aaa17199ebcd3c01bc6c25ddbdbe4f3d0f
[ "MIT" ]
4
2018-08-15T12:58:36.000Z
2021-12-29T07:06:29.000Z
import webbrowser url = 'http://www.wsb.com/Assignment2/case15.php?videourl=" onerror="alert(document.cookie)' new = 2 webbrowser.open(url, new=new)
21.571429
92
0.748344
0
0
0
0
0
0
0
0
86
0.569536
ddabee57641e5f2212bdb1af4233c76d2dc9db3e
2,238
py
Python
introspection/call_stack.py
Aran-Fey/introspection
0ce3a16688b51bdcb72c7b070d571a1004f5151b
[ "MIT" ]
1
2022-03-02T23:13:06.000Z
2022-03-02T23:13:06.000Z
introspection/call_stack.py
Aran-Fey/introspection
0ce3a16688b51bdcb72c7b070d571a1004f5151b
[ "MIT" ]
null
null
null
introspection/call_stack.py
Aran-Fey/introspection
0ce3a16688b51bdcb72c7b070d571a1004f5151b
[ "MIT" ]
null
null
null
import types from typing import Iterable, Union from .call_frame import CallFrame __all__ = ['CallStack'] class CallStack: """ Represents the call stack - a series of :class:`CallFrame` instances. This class can be used like a read-only list. It supports iteration, indexing, membership testing, etc. ...
26.963855
156
0.626005
2,125
0.949508
0
0
677
0.302502
0
0
1,050
0.469169
ddaf61fd3b67b0ad82d3ff5a5a750292ac61bd57
2,728
py
Python
products/views.py
deepindo/DoPython
d80b85b3b24566de6ece9f452564e4827e705959
[ "MIT" ]
4
2022-01-04T09:56:19.000Z
2022-01-20T12:14:16.000Z
products/views.py
deepindo/DoPython
d80b85b3b24566de6ece9f452564e4827e705959
[ "MIT" ]
null
null
null
products/views.py
deepindo/DoPython
d80b85b3b24566de6ece9f452564e4827e705959
[ "MIT" ]
1
2022-01-20T09:40:16.000Z
2022-01-20T09:40:16.000Z
from django.shortcuts import render, get_object_or_404 from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from products.models import Product def productList(request, productName): """产品的列表页""" submenu = productName if productName == 'robot': productName = '家用机器人' elif p...
29.978022
93
0.535924
0
0
0
0
0
0
0
0
548
0.190014
ddb0240924a8101cddcbf80261a52d4f5843c4bf
1,545
py
Python
misc/CharacterMotion.py
qwewqa/dl-datamine
a8e050731f67e4cf49123947eadf66ac0fd948ca
[ "MIT" ]
2
2020-03-31T00:07:54.000Z
2020-04-01T23:39:23.000Z
misc/CharacterMotion.py
qwewqa/dl-datamine
a8e050731f67e4cf49123947eadf66ac0fd948ca
[ "MIT" ]
null
null
null
misc/CharacterMotion.py
qwewqa/dl-datamine
a8e050731f67e4cf49123947eadf66ac0fd948ca
[ "MIT" ]
1
2021-08-02T04:21:31.000Z
2021-08-02T04:21:31.000Z
import json import os from dataclasses import dataclass, field from typing import Dict, Optional @dataclass class AnimationClipData: name: str startTime: float stopTime: float id: Optional[int] = field(init=False) duration: float = field(init=False) def __post_init__(self): self.durat...
28.611111
100
0.618123
379
0.245307
0
0
390
0.252427
0
0
62
0.040129
ddb050b82209d0997ed09ca448c8c2752e16f7c5
14,431
py
Python
kube/config.py
nearmap/kubefs
e2f6c019f04e436d031874e40c59ba0ee61d8c58
[ "MIT" ]
3
2021-05-31T06:45:37.000Z
2021-10-05T22:36:37.000Z
kube/config.py
nearmap/kubefs
e2f6c019f04e436d031874e40c59ba0ee61d8c58
[ "MIT" ]
8
2021-09-06T00:43:13.000Z
2021-10-01T00:22:53.000Z
kube/config.py
nearmap/kubefs
e2f6c019f04e436d031874e40c59ba0ee61d8c58
[ "MIT" ]
null
null
null
import base64 import fnmatch import logging import os import tempfile from ssl import SSLContext, create_default_context from typing import Dict, List, Optional, Sequence import yaml from kube.tools.repr import disp_secret_blob, disp_secret_string class ExecCmd: def __init__(self, *, command: str, args: List[st...
30.901499
86
0.56538
13,960
0.967362
0
0
0
0
0
0
1,893
0.131176
ddb11949c25d2f8ec4e231606475f6d7c71dff61
1,256
py
Python
other/application/windowApp/test6.py
Ethan7102/FYP
c6560a0b95ad78d5e1a341ab2d93c063e10c6631
[ "MIT" ]
null
null
null
other/application/windowApp/test6.py
Ethan7102/FYP
c6560a0b95ad78d5e1a341ab2d93c063e10c6631
[ "MIT" ]
null
null
null
other/application/windowApp/test6.py
Ethan7102/FYP
c6560a0b95ad78d5e1a341ab2d93c063e10c6631
[ "MIT" ]
1
2021-01-23T07:59:57.000Z
2021-01-23T07:59:57.000Z
from PyQt5.QtCore import QThread, pyqtSignal, QDateTime, QObject from PyQt5.QtWidgets import QApplication, QDialog, QLineEdit import time import sys class BackendThread(QObject): # 通过类成员对象定义信号 update_date = pyqtSignal(str) # 处理业务逻辑 def run(self): while True: data = QDateTime.curre...
25.632653
64
0.627389
1,076
0.795858
0
0
0
0
0
0
195
0.144231
ddb1e5dab629942b29ba8fb6aab9cb866f52c858
13,098
py
Python
model/meter.py
meiwei92/meter-alignment
dc92e4aca0ca80ed1c9418027b050e9631b5fb7a
[ "MIT" ]
null
null
null
model/meter.py
meiwei92/meter-alignment
dc92e4aca0ca80ed1c9418027b050e9631b5fb7a
[ "MIT" ]
null
null
null
model/meter.py
meiwei92/meter-alignment
dc92e4aca0ca80ed1c9418027b050e9631b5fb7a
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import List, Tuple, OrderedDict as OrderedDictType, DefaultDict, Optional from collections import OrderedDict, defaultdict from metric import MusicNote, TimePointSequence from model.base import MidiModel, MidiModelState from model.beat import TatumTrackingModelState, Tatu...
42.803922
134
0.64506
12,580
0.960452
0
0
0
0
0
0
564
0.04306
ddb3b3248298a56481c0e14a355de5998e1c7be4
1,029
py
Python
hw2skeleton/find_features.py
hasuni-max/hw2-skeleton
498f5d250ec18042c1e21fac177a92f3c7d3da7c
[ "Apache-2.0" ]
null
null
null
hw2skeleton/find_features.py
hasuni-max/hw2-skeleton
498f5d250ec18042c1e21fac177a92f3c7d3da7c
[ "Apache-2.0" ]
null
null
null
hw2skeleton/find_features.py
hasuni-max/hw2-skeleton
498f5d250ec18042c1e21fac177a92f3c7d3da7c
[ "Apache-2.0" ]
null
null
null
global plus global minus minus = ["ASP","GLU"] plus = ["ARG","HIS","LYS"] def find_charge(residues): """ Takes a list of residues and returns the number of plus and minus charged residues. This function uses the global plus and minus variables """ global plus global minus plus_charge = sum([res in plu...
25.097561
73
0.737609
0
0
0
0
0
0
0
0
284
0.275996
ddb4c04468f28635f43140d7b43e540cbcb4c57d
632
py
Python
main.py
jalexray/CSV-Empty-Finder
69d545ec9a757d331dbd2b1b298842de2c079129
[ "MIT" ]
null
null
null
main.py
jalexray/CSV-Empty-Finder
69d545ec9a757d331dbd2b1b298842de2c079129
[ "MIT" ]
null
null
null
main.py
jalexray/CSV-Empty-Finder
69d545ec9a757d331dbd2b1b298842de2c079129
[ "MIT" ]
null
null
null
# imports import csv # open the file with open("example.csv") as file: reader = csv.reader(file) # prep to store names of columns titleRow = reader.next() #rest = [row for row in reader] columnList = {} for row in reader: iterator = 0 cellList = [] for cell in row: if cell == "": cellList.app...
20.387097
76
0.629747
0
0
0
0
0
0
0
0
196
0.310127
ddb85f6c9f54c6a26a73cc1b1e07e1f705ce4e40
124
py
Python
test_suite/suite/test09/other_mod.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
755
2017-12-09T05:34:43.000Z
2022-03-26T09:15:56.000Z
test_suite/suite/test09/other_mod.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
8
2017-12-12T01:03:18.000Z
2020-06-29T01:41:03.000Z
test_suite/suite/test09/other_mod.py
joncatanio/cannoli
410f6bea362bf9e33eecc0e01fb080dadd14ef23
[ "MIT" ]
23
2018-05-17T17:48:23.000Z
2022-03-26T09:15:57.000Z
import some_mod def functione(b): a = some_mod.some_class() print(b) print("othermod calling in " + str(a.hello))
17.714286
47
0.669355
0
0
0
0
0
0
0
0
22
0.177419
ddb88819c796db53b08989fe1a656955b84d1760
140
py
Python
application/blueprints/user/__init__.py
demetrius-mp/flask-template
2dbab372bf2d7d5ff60af430c4b69c95a41cd681
[ "MIT" ]
null
null
null
application/blueprints/user/__init__.py
demetrius-mp/flask-template
2dbab372bf2d7d5ff60af430c4b69c95a41cd681
[ "MIT" ]
2
2021-10-14T02:00:15.000Z
2021-10-14T02:19:44.000Z
application/blueprints/user/__init__.py
demetrius-mp/flask-template
2dbab372bf2d7d5ff60af430c4b69c95a41cd681
[ "MIT" ]
null
null
null
from flask import Flask from application.blueprints.user.routes import users def init_app(app: Flask): app.register_blueprint(users)
17.5
52
0.792857
0
0
0
0
0
0
0
0
0
0
ddb942c43951bea6ec9329f93418d8030cd886cd
249
py
Python
src/methods/defs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
13
2021-08-04T21:07:50.000Z
2022-02-17T20:16:41.000Z
src/methods/defs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
null
null
null
src/methods/defs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
1
2021-10-03T00:37:05.000Z
2021-10-03T00:37:05.000Z
from collections import namedtuple import torch NONLINEARITIES = { "tanh": torch.nn.Tanh, "relu": torch.nn.ReLU, } TimeDerivative = namedtuple("TimeDerivative", ["dq_dt", "dp_dt"]) StepPrediction = namedtuple("StepPrediction", ["q", "p"])
22.636364
65
0.698795
0
0
0
0
0
0
0
0
64
0.257028
ddba665d13fe8e2f5bc1b2bf2549c77f6e609bdd
1,213
py
Python
caosmedicallab.py
erichilarysmithsr/CAOSMedicalLabDb
9a7acee44f9f3680c0a01332797ce94a0895c2d1
[ "Apache-2.0" ]
null
null
null
caosmedicallab.py
erichilarysmithsr/CAOSMedicalLabDb
9a7acee44f9f3680c0a01332797ce94a0895c2d1
[ "Apache-2.0" ]
10
2021-04-03T14:00:28.000Z
2022-01-28T23:44:11.000Z
caosmedicallab.py
erichilarysmithsr/CAOSMedicalLabDb
9a7acee44f9f3680c0a01332797ce94a0895c2d1
[ "Apache-2.0" ]
null
null
null
>>> S = 'Susceptible' >>> print(S) >>> E = 'Exposed' >>> print(E) >>> I = 'Infectious' >>> print(I) >>> R = 'Removed' >>> print(R) >>> N = 'Total Population' >>> print(N) >>> C = 'Living with COVID19' >>> print(C) >>> D = 'Living with Diabetes' >>> print(D) >>> Susceptible = input('Enter number of Susceptible Individua...
31.921053
84
0.645507
0
0
0
0
0
0
0
0
392
0.323166
ddbaaba267f11c03c921ef7b0388970b8db8a6b9
2,396
py
Python
src/quacks/__init__.py
ariebovenberg/quacks
839d307b24f3f37d9a5318c16acb631b9a1153f0
[ "MIT" ]
11
2021-12-12T20:51:15.000Z
2022-02-02T12:08:32.000Z
src/quacks/__init__.py
ariebovenberg/quacks
839d307b24f3f37d9a5318c16acb631b9a1153f0
[ "MIT" ]
8
2021-12-14T12:53:51.000Z
2022-03-15T04:29:44.000Z
src/quacks/__init__.py
ariebovenberg/quacks
839d307b24f3f37d9a5318c16acb631b9a1153f0
[ "MIT" ]
1
2021-12-15T16:50:34.000Z
2021-12-15T16:50:34.000Z
from typing import _GenericAlias # type: ignore from typing import ClassVar from typing_extensions import Protocol # Single-sourcing the version number with poetry: # https://github.com/python-poetry/poetry/pull/2366#issuecomment-652418094 try: __version__ = __import__("importlib.metadata").metadata.version(__na...
29.95
79
0.647329
0
0
0
0
109
0.045492
0
0
1,436
0.599332
ddbb30413bba7d94f4e08a1b8b5b0f62d116a712
13,818
py
Python
gobbli/inspect/evaluate.py
RTIInternational/gobbli
d9ec8132f74ce49dc4bead2fad25b661bcef6e76
[ "Apache-2.0" ]
276
2019-09-13T08:25:51.000Z
2022-03-05T13:07:55.000Z
gobbli/inspect/evaluate.py
RTIInternational/gobbli
d9ec8132f74ce49dc4bead2fad25b661bcef6e76
[ "Apache-2.0" ]
15
2019-09-06T14:05:30.000Z
2022-01-01T20:15:06.000Z
gobbli/inspect/evaluate.py
RTIInternational/gobbli
d9ec8132f74ce49dc4bead2fad25b661bcef6e76
[ "Apache-2.0" ]
24
2019-09-18T15:11:42.000Z
2021-12-23T18:59:55.000Z
from dataclasses import dataclass from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union import altair as alt import pandas as pd from sklearn.metrics import ( accuracy_score, classification_report, f1_score, precision_score, recall_score, ) from gobbli.util import ( as_mult...
35.25
102
0.56506
12,424
0.899117
0
0
12,446
0.900709
0
0
5,334
0.386018
ddbc20a9147b17ccfb31328be56cce367423b65a
791
py
Python
victor_fake_hardware_interface/scripts/fake_grippers_node.py
MMintLab/kuka_iiwa_interface
0dd258641377263e7275bc63f37cf32eb12f3e56
[ "BSD-2-Clause" ]
5
2021-01-11T09:00:26.000Z
2021-12-13T15:59:01.000Z
victor_fake_hardware_interface/scripts/fake_grippers_node.py
MMintLab/kuka_iiwa_interface
0dd258641377263e7275bc63f37cf32eb12f3e56
[ "BSD-2-Clause" ]
35
2020-07-01T14:48:40.000Z
2021-07-13T18:38:53.000Z
victor_fake_hardware_interface/scripts/fake_grippers_node.py
MMintLab/kuka_iiwa_interface
0dd258641377263e7275bc63f37cf32eb12f3e56
[ "BSD-2-Clause" ]
1
2021-01-08T23:39:17.000Z
2021-01-08T23:39:17.000Z
#!/usr/bin/env python import rospy from victor_fake_hardware_interface.minimal_fake_arm_interface import MinimalFakeGripperInterface def main(): rospy.init_node("minimal_fake_arm_interface") interfaces = {} arm_names = ["left_arm", "right_arm"] for arm in arm_names: interfaces[arm + "/gripp...
27.275862
114
0.652339
0
0
0
0
0
0
0
0
165
0.208597
ddbc90c6ac864e7ce62505e078e39b8bc44056dd
11,647
py
Python
python/bgraph.py
brunodferrari/bdp
d320add1e451c85b6777ae34901bbd6fd3797114
[ "Unlicense" ]
null
null
null
python/bgraph.py
brunodferrari/bdp
d320add1e451c85b6777ae34901bbd6fd3797114
[ "Unlicense" ]
null
null
null
python/bgraph.py
brunodferrari/bdp
d320add1e451c85b6777ae34901bbd6fd3797114
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import networkx as nx import pandas as pd import copy from numba import njit from numba.typed import Dict, List from numba.core import types from concurrent.futures import ThreadPoolExecutor np.seterr(over='ignore') def pi(setlist, i): ...
28.06506
145
0.479608
6,411
0.550442
0
0
847
0.072723
0
0
1,218
0.104576
ddbf5e2f65d38e783f4768e0ca9abc2a32d54029
3,403
py
Python
src/odin/http/server.py
stfc-aeg/odin-control
71ab2e6e6e1a7c7ce322ea0df31a9d675f7b92bf
[ "Apache-2.0" ]
4
2018-05-24T13:38:23.000Z
2021-08-18T08:32:54.000Z
src/odin/http/server.py
stfc-aeg/odin-control
71ab2e6e6e1a7c7ce322ea0df31a9d675f7b92bf
[ "Apache-2.0" ]
20
2018-04-10T09:28:01.000Z
2022-03-17T11:43:59.000Z
src/odin/http/server.py
stfc-aeg/odin-control
71ab2e6e6e1a7c7ce322ea0df31a9d675f7b92bf
[ "Apache-2.0" ]
3
2017-06-07T13:28:38.000Z
2019-07-16T10:02:21.000Z
"""odin.http.server - ODIN HTTP Server class. This module provides the core HTTP server class used in ODIN, which handles all client requests, handing off API requests to the appropriate API route and adapter plugins, and defining the default route used to serve static content. Tim Nicholls, STFC Application Engineer...
35.447917
96
0.658537
2,869
0.84308
0
0
0
0
0
0
1,591
0.467529
ddc0751188e1d1856d4d69064affd55e5821f001
1,382
py
Python
leetcode/ds_stack_valid_parentheses.py
ngovindaraj/Python
edbcd302533bef81aa0c01e902e6081df58f383c
[ "MIT" ]
null
null
null
leetcode/ds_stack_valid_parentheses.py
ngovindaraj/Python
edbcd302533bef81aa0c01e902e6081df58f383c
[ "MIT" ]
null
null
null
leetcode/ds_stack_valid_parentheses.py
ngovindaraj/Python
edbcd302533bef81aa0c01e902e6081df58f383c
[ "MIT" ]
null
null
null
# @file Valid Parentheses # @brief Given a string containing just the characters '(', ')', '{', '}', # '[' and ']', determine if the input string is valid. # https://leetcode.com/problems/valid-parentheses/ import collections ''' Given a string containing just the characters '(', ')', '{', '}', '[' and ']', de...
40.647059
79
0.552822
0
0
0
0
0
0
0
0
868
0.628075
ddc0a159fdea30685a3e6c6f67386c3bf2f75073
3,746
py
Python
2016/round_1b/technobabble.py
laichunpongben/CodeJam
a048229bce1bc680dc85c8a69ef395a2f049732a
[ "Apache-2.0" ]
null
null
null
2016/round_1b/technobabble.py
laichunpongben/CodeJam
a048229bce1bc680dc85c8a69ef395a2f049732a
[ "Apache-2.0" ]
null
null
null
2016/round_1b/technobabble.py
laichunpongben/CodeJam
a048229bce1bc680dc85c8a69ef395a2f049732a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from collections import deque def parse_and_sort_topics(topics): topic_deque = deque(tuple(topic.split(' ')) for topic in topics) word0s = [item[0] for item in topic_deque] word1s = [item[1] for item in topic_deque] topic_deque = deque(sorted...
30.455285
95
0.509343
0
0
0
0
0
0
0
0
525
0.140149
ddc2ab09f2aabd1f5e1c2e16308c14b4efc96586
101
py
Python
dask_xgboost/__init__.py
ksangeek/dask-xgboost
8ca1d69f21a6c666eaf581fb88b20cff2b6b05ef
[ "BSD-3-Clause" ]
null
null
null
dask_xgboost/__init__.py
ksangeek/dask-xgboost
8ca1d69f21a6c666eaf581fb88b20cff2b6b05ef
[ "BSD-3-Clause" ]
null
null
null
dask_xgboost/__init__.py
ksangeek/dask-xgboost
8ca1d69f21a6c666eaf581fb88b20cff2b6b05ef
[ "BSD-3-Clause" ]
null
null
null
from .core import _train, train, predict, XGBClassifier, XGBRegressor # noqa __version__ = '0.1.7'
25.25
77
0.742574
0
0
0
0
0
0
0
0
13
0.128713
ddc39e71f4d5f6b6a53e16b07decfbb4b7887488
12,963
py
Python
life360.indigoPlugin/Contents/Server Plugin/plugin.py
ryanbuckner/life360-plugin
3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe
[ "MIT" ]
1
2021-09-25T15:43:00.000Z
2021-09-25T15:43:00.000Z
life360.indigoPlugin/Contents/Server Plugin/plugin.py
ryanbuckner/life360-plugin
3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe
[ "MIT" ]
null
null
null
life360.indigoPlugin/Contents/Server Plugin/plugin.py
ryanbuckner/life360-plugin
3e64108b91c4ee0f4f85f6e7aa31fa7bd1b1d6fe
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- #################### # Copyright (c) 2021 ryanbuckner # https://github.com/ryanbuckner/life360-plugin/wiki # # Based on neilk's Solcast plugin ################################################################################ # Imports #####################################...
36.931624
174
0.66011
12,121
0.935046
0
0
0
0
0
0
5,274
0.40685
ddc3d50c63fd6d2bc041dad2539a4d22872461ff
699
py
Python
accounts/views.py
airmoor/learnweb
5867eadaca45b847f6fba8fd0be8a8ccdaeceea0
[ "MIT" ]
null
null
null
accounts/views.py
airmoor/learnweb
5867eadaca45b847f6fba8fd0be8a8ccdaeceea0
[ "MIT" ]
null
null
null
accounts/views.py
airmoor/learnweb
5867eadaca45b847f6fba8fd0be8a8ccdaeceea0
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.decorators import login_required from django.urls import reverse_lazy from django.views import generic, View class SignUp(generic.CreateView): form_class = UserCreationForm success_url = revers...
27.96
64
0.726753
468
0.669528
0
0
0
0
0
0
67
0.095851
ddc4e2961bdd997e8ed912766a3c871b4f8b1cc7
3,306
py
Python
openmapi/globales.py
IgnacioPardo/mAPI-Provincias
812fc12bcc72d6aa28ab2e39af2d64d0aa68c86b
[ "MIT" ]
4
2020-08-02T06:51:04.000Z
2022-03-22T21:31:44.000Z
openmapi/globales.py
Creativity-Hub/Open-mAPI
b7e0ee9acda424aec0e84513d8e968aa6ff5d7c5
[ "MIT" ]
null
null
null
openmapi/globales.py
Creativity-Hub/Open-mAPI
b7e0ee9acda424aec0e84513d8e968aa6ff5d7c5
[ "MIT" ]
1
2022-03-24T22:20:47.000Z
2022-03-24T22:20:47.000Z
import requests from bs4 import BeautifulSoup class Pais: name = '' casos = {} def __init__(self, name, infectados=None, recuperados=None, fallecidos=None, activos = None): self.name = name self.casos['infectados'] = infectados self.casos['recuperados'] = recuperados self.casos['fallecidos'] = fallecidos ...
23.614286
119
0.650333
3,257
0.985178
168
0.050817
0
0
0
0
533
0.161222
ddc738c6ed27c814c11c63a6fb453a793040af60
947
py
Python
openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
2
2022-03-18T01:46:03.000Z
2022-03-18T01:46:16.000Z
openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
import pyblish.api from openpype.pipeline import PublishXmlValidationError from openpype.hosts.tvpaint.api import lib class RepairStartFrame(pyblish.api.Action): """Repair start frame.""" label = "Repair" icon = "wrench" on = "failed" def process(self, context, plugin): lib.execute_georg...
24.921053
57
0.636748
823
0.86906
0
0
0
0
0
0
209
0.220697
ddc806857072eff9c83a07e28e06781742f5341f
1,304
py
Python
leds/rgbLed.py
JDRyder/stardust
a1b1de99e7d10c18f7243217a72aa5e7a3566e74
[ "MIT" ]
null
null
null
leds/rgbLed.py
JDRyder/stardust
a1b1de99e7d10c18f7243217a72aa5e7a3566e74
[ "MIT" ]
null
null
null
leds/rgbLed.py
JDRyder/stardust
a1b1de99e7d10c18f7243217a72aa5e7a3566e74
[ "MIT" ]
null
null
null
import board import neopixel import time pixels = neopixel.NeoPixel(board.D21, 1) GREEN = (255, 0, 0) # RED = (0,255,0) # BLUE = (0,0,255) # YELLOW = (255,255,0) # CYAN = (255,0,255) # VIOLET = (0,127,255) # WHITE = (255,255,255) # OFF = (0,0,0) # def off(): pixels[0] = OFF def startup(): pixels[0] = GREEN time....
15.162791
40
0.624233
0
0
0
0
0
0
0
0
8
0.006135
ddc862cde96df508b37a55b7bb12e12b0c12e813
3,548
py
Python
utils/Model_builder.py
Devwalkar/General_codebase
d52eee09248caa715d7e5e8b87f145d1989e278d
[ "MIT" ]
null
null
null
utils/Model_builder.py
Devwalkar/General_codebase
d52eee09248caa715d7e5e8b87f145d1989e278d
[ "MIT" ]
null
null
null
utils/Model_builder.py
Devwalkar/General_codebase
d52eee09248caa715d7e5e8b87f145d1989e278d
[ "MIT" ]
null
null
null
import torch import pretrainedmodels as PM import torch.nn as nn from .Mobilenet import MobileNetV2 device = 'cuda' if torch.cuda.is_available() else 'cpu' def Model_builder(configer): model_name = configer.model['name'] No_classes = configer.dataset_cfg["id_cfg"]["num_classes"] model_pretra...
37.744681
94
0.669391
0
0
0
0
0
0
0
0
336
0.094701
ddc91781c017fdef90c8f25f225a0256fda47415
828
py
Python
examples/main.py
marcoaaguiar/erised
26a304afb2058f532b07ecde6c6fc85d8864696c
[ "MIT" ]
null
null
null
examples/main.py
marcoaaguiar/erised
26a304afb2058f532b07ecde6c6fc85d8864696c
[ "MIT" ]
3
2021-03-15T00:51:37.000Z
2021-03-15T01:01:30.000Z
examples/main.py
marcoaaguiar/erised
26a304afb2058f532b07ecde6c6fc85d8864696c
[ "MIT" ]
null
null
null
from erised.proxy import Proxy class Dog: def bark(self, loud: bool): sound = "woof-woof" if loud: return sound.upper() return sound class Person: def __init__(self, dog: Dog = None): self.dog = dog if __name__ == "__main__": person = Person() person.dog...
23.657143
77
0.649758
218
0.263285
0
0
0
0
0
0
271
0.327295
ddcc7c8aaeb73f494f7fe3439f603884d9bf5226
480
py
Python
ontask/migrations/0056_auto_20190323_1122.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/migrations/0056_auto_20190323_1122.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/migrations/0056_auto_20190323_1122.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# Generated by Django 2.1.7 on 2019-03-23 00:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ontask', '0055_action_nrows_all_false'), ] operations = [ migrations.AlterField( model_name='action', name='nrows_al...
25.263158
132
0.641667
387
0.80625
0
0
0
0
0
0
151
0.314583
ddcde07c3cbd2e093fb249312865d2348a9e3b73
6,863
py
Python
proteus/MeshAdaptPUMI/Checkpoint.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
null
null
null
proteus/MeshAdaptPUMI/Checkpoint.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
13
2018-02-08T23:22:59.000Z
2020-12-06T19:40:32.000Z
proteus/MeshAdaptPUMI/Checkpoint.py
acatwithacomputer/proteus
80dfad95da6ab4d18a88a035f55c26b03540a864
[ "MIT" ]
1
2020-02-17T03:25:34.000Z
2020-02-17T03:25:34.000Z
from __future__ import division from builtins import str from builtins import range import proteus import sys import numpy from proteus import Profiling #it should probably be associated with the PUMI domain somehow #The current implementation assumes we're using NS, VOF, LS, RD, MCorr setup with lagging and Backwards...
48.673759
208
0.722862
6,292
0.9168
0
0
0
0
0
0
1,931
0.281364
ddd0869ac7a679df101a618ba69ece08f889a431
596
py
Python
rlunch/lunch/migrations/0002_talk_how_was_it.py
acdh-oeaw/django-generic-apps
4af63a8a95826ede787347fc86951e933ccdbc6c
[ "MIT" ]
null
null
null
rlunch/lunch/migrations/0002_talk_how_was_it.py
acdh-oeaw/django-generic-apps
4af63a8a95826ede787347fc86951e933ccdbc6c
[ "MIT" ]
null
null
null
rlunch/lunch/migrations/0002_talk_how_was_it.py
acdh-oeaw/django-generic-apps
4af63a8a95826ede787347fc86951e933ccdbc6c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2017-02-02 14:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('vocabs', '0002_auto_20170202_1030'), ('lunch', '0001...
25.913043
129
0.644295
406
0.681208
0
0
0
0
0
0
162
0.271812
ddd0b7f89eb5fdc6f55d6efae895022ea00e5fd2
2,634
py
Python
ream/decode.py
chmlee/ream-python
13f46596f59bb411308d1c9070b8d6f8a0afeb31
[ "MIT" ]
null
null
null
ream/decode.py
chmlee/ream-python
13f46596f59bb411308d1c9070b8d6f8a0afeb31
[ "MIT" ]
null
null
null
ream/decode.py
chmlee/ream-python
13f46596f59bb411308d1c9070b8d6f8a0afeb31
[ "MIT" ]
null
null
null
""" REAM: REAM Ain't Markdown ~~~~~~~~~~~~~~~~~~~~~~~~~ This file is part of the ream package :copyright: Copyright 2020 by Chih-Ming Louis Lee :license: MIT, see LICENSE for details """ import sys import os import re import json import pandas as pd from ream.transformer import Ream2Dict from ream.grammar import REA...
24.849057
74
0.566059
0
0
0
0
0
0
0
0
431
0.163629
ddd0baa5f55beee804fd811c66a9f9297112106b
444
py
Python
snippets/3DEM/useful_bits/scratch_hdf5_2_nii.py
michielkleinnijenhuis/EM
f46a9b11298919b359e80d9f23a7e824df1356cb
[ "Apache-2.0" ]
null
null
null
snippets/3DEM/useful_bits/scratch_hdf5_2_nii.py
michielkleinnijenhuis/EM
f46a9b11298919b359e80d9f23a7e824df1356cb
[ "Apache-2.0" ]
null
null
null
snippets/3DEM/useful_bits/scratch_hdf5_2_nii.py
michielkleinnijenhuis/EM
f46a9b11298919b359e80d9f23a7e824df1356cb
[ "Apache-2.0" ]
null
null
null
### get all the blocked raw datafiles from ARC and convert to nifti's ### #rsync -avz ndcn0180@arcus.arc.ox.ac.uk:/data/ndcn-fmrib-water-brain/ndcn0180/EM/M3/M3_S1_GNU/testblock/m000_?????-?????_?????-?????_?????-?????.h5 /Users/michielk/oxdata/P01/EM/M3/M3_S1_GNU/ for f in `ls m000_?????-?????_?????-?????_?????-?????....
74
191
0.614865
0
0
0
0
0
0
0
0
322
0.725225
ddd0c824e4d2d1eee0fd05d787911e01b80ce07a
53
py
Python
Week1/sumofdigits_teacher.py
CrazyDi/Python1
016dd77ace04fccfec61edf37ec5a990ead6c4ef
[ "Unlicense" ]
null
null
null
Week1/sumofdigits_teacher.py
CrazyDi/Python1
016dd77ace04fccfec61edf37ec5a990ead6c4ef
[ "Unlicense" ]
null
null
null
Week1/sumofdigits_teacher.py
CrazyDi/Python1
016dd77ace04fccfec61edf37ec5a990ead6c4ef
[ "Unlicense" ]
null
null
null
import sys print(sum([int(x) for x in sys.argv[1]]))
17.666667
41
0.660377
0
0
0
0
0
0
0
0
0
0
ddd11496dad00035846edb605bc410d5d8e9ecb5
1,549
py
Python
cyborg/accelerator/drivers/nic/base.py
NeCTAR-RC/cyborg
e0fab29181467c0c72667ea26a8b04c53b238ddb
[ "Apache-2.0" ]
37
2017-03-23T02:10:35.000Z
2021-11-25T07:57:36.000Z
cyborg/accelerator/drivers/nic/base.py
openstack/nomad
8cd846a16c2da04c2f204b02b90db814e32acd63
[ "Apache-2.0" ]
null
null
null
cyborg/accelerator/drivers/nic/base.py
openstack/nomad
8cd846a16c2da04c2f204b02b90db814e32acd63
[ "Apache-2.0" ]
27
2017-07-14T02:26:24.000Z
2022-01-19T07:55:10.000Z
# Copyright 2020 Intel, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
29.788462
75
0.672692
891
0.57521
0
0
506
0.326662
0
0
1,022
0.659781
ddd29b6ed93109a393ac788b23f262d228d22a8b
621
py
Python
reviews/migrations/0016_auto_20180908_1733.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
null
null
null
reviews/migrations/0016_auto_20180908_1733.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
4
2020-06-05T18:21:18.000Z
2021-06-10T20:17:31.000Z
reviews/migrations/0016_auto_20180908_1733.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-09-08 16:33 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reviews', '0015_auto_20180908_1626'), ] operations = [ migrations.RemoveField( ...
22.178571
48
0.574879
471
0.758454
0
0
0
0
0
0
175
0.281804
ddd324b790a9312a2fcc8cac11385ac3c12a277d
2,796
py
Python
src/markup.py
alex-panda/PDFCompiler
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
[ "MIT" ]
null
null
null
src/markup.py
alex-panda/PDFCompiler
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
[ "MIT" ]
null
null
null
src/markup.py
alex-panda/PDFCompiler
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
[ "MIT" ]
null
null
null
from constants import ALIGNMENT, STRIKE_THROUGH, UNDERLINE def assert_bool(val): assert isinstance(val, (bool, None)), f'Can only be True, False, or None. {val} was given instead.' class Markup: """ A Markup for a range of MarkedUpText. """ def __init__(self): from placer.templates import ...
29.125
114
0.65093
2,601
0.930258
0
0
0
0
0
0
842
0.301144
ddd3332668c74ceeb6666a897a79187f953f120f
10,476
py
Python
svirl/vars/params.py
microsoft/svirl
8d0da6a03ad20315a690a3c65bb8b60c196c3f3d
[ "MIT" ]
6
2020-12-21T20:11:13.000Z
2022-03-21T07:55:33.000Z
svirl/vars/params.py
ivan-sadovsky/svirl
523abe9fcf2a5e9d192782d7aeb7093c86ef4036
[ "MIT" ]
4
2021-07-15T20:12:55.000Z
2021-08-07T22:11:18.000Z
svirl/vars/params.py
ivan-sadovsky/svirl
523abe9fcf2a5e9d192782d7aeb7093c86ef4036
[ "MIT" ]
9
2020-12-22T06:06:16.000Z
2022-03-25T17:26:55.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import numpy as np import svirl.config as cfg from svirl.storage import GArray from . import FixedVortices class Params(object): """This class contains setters and getters for parameters""" def __init__(self, mesh, vars): self...
31.939024
132
0.616648
10,289
0.98215
0
0
5,097
0.486541
0
0
1,885
0.179935
ddd3cf7e6c6e22a81fc4f44dcb742ce19a9d4e7a
1,570
py
Python
src/2_save_images.py
Irio/photoshopped-or-not
70ae1a2e7e54003d916b501f8d9e020c13ca6c98
[ "MIT" ]
77
2016-07-13T13:36:55.000Z
2022-02-25T07:49:38.000Z
src/2_save_images.py
goldservice2017/FakeImageDetection
e7f618989d004e24444854df63d9f1c408d0463f
[ "MIT" ]
1
2017-07-11T10:28:36.000Z
2017-07-11T10:28:36.000Z
src/2_save_images.py
goldservice2017/FakeImageDetection
e7f618989d004e24444854df63d9f1c408d0463f
[ "MIT" ]
20
2016-10-23T14:57:19.000Z
2022-03-21T13:32:45.000Z
from hashlib import sha256 from helpers import load_dataset import numpy as np import os import pandas as pd import requests import sys import time import urllib.request CSV_PATH = sys.argv[1] URL_COLUMN = sys.argv[2] PATH = sys.argv[3] def download_image(url, file_path): try: if 'imgur.com' in url: ...
30.784314
83
0.66051
0
0
0
0
0
0
0
0
154
0.098089
ddd71b2e4c6346f49e71518346e30e3f595d4613
1,169
py
Python
lf3py/task/data.py
rog-works/lf3py
e89937f7aa133ed54d85764f06101ab9abf6b960
[ "CNRI-Python" ]
null
null
null
lf3py/task/data.py
rog-works/lf3py
e89937f7aa133ed54d85764f06101ab9abf6b960
[ "CNRI-Python" ]
48
2020-12-19T13:47:26.000Z
2021-01-07T22:27:56.000Z
lf3py/task/data.py
rog-works/lf3py
e89937f7aa133ed54d85764f06101ab9abf6b960
[ "CNRI-Python" ]
null
null
null
from abc import ABCMeta, abstractmethod from dataclasses import dataclass from typing import Any, List, Type, TypeVar from lf3py.lang.dsn import DSN from lf3py.serialization.serializer import DictSerializer, Serializer T_OBJ = TypeVar('T_OBJ') class Command(metaclass=ABCMeta): @property @abstractmethod ...
21.648148
69
0.662104
887
0.758768
0
0
424
0.362703
0
0
21
0.017964
ddd7b262ec09a987c21172c82cd032e817c1ba5b
801
py
Python
quapy/method/__init__.py
valgur/QuaPy
6b1ba4886a1d64b086829306cbba689cdcfd60e8
[ "BSD-3-Clause" ]
34
2021-01-06T14:01:06.000Z
2022-03-08T06:59:04.000Z
quapy/method/__init__.py
valgur/QuaPy
6b1ba4886a1d64b086829306cbba689cdcfd60e8
[ "BSD-3-Clause" ]
4
2021-06-07T07:45:57.000Z
2021-06-21T11:16:10.000Z
quapy/method/__init__.py
valgur/QuaPy
6b1ba4886a1d64b086829306cbba689cdcfd60e8
[ "BSD-3-Clause" ]
6
2021-06-07T10:08:17.000Z
2022-03-07T13:42:15.000Z
from . import aggregative from . import base from . import meta from . import non_aggregative EXPLICIT_LOSS_MINIMIZATION_METHODS = { aggregative.ELM, aggregative.SVMQ, aggregative.SVMAE, aggregative.SVMKLD, aggregative.SVMRAE, aggregative.SVMNKLD } AGGREGATIVE_METHODS = { aggregative.CC, ...
18.627907
85
0.741573
0
0
0
0
0
0
0
0
0
0
ddd886a1ce049e2677d31fc3b30fe240938605cc
208
py
Python
day 5 2nd.py
shalini-22/Letsupgrade-Python-essentials
fda98097be08dbb9bfbba6e0622954c6eba0f7f3
[ "MIT" ]
null
null
null
day 5 2nd.py
shalini-22/Letsupgrade-Python-essentials
fda98097be08dbb9bfbba6e0622954c6eba0f7f3
[ "MIT" ]
null
null
null
day 5 2nd.py
shalini-22/Letsupgrade-Python-essentials
fda98097be08dbb9bfbba6e0622954c6eba0f7f3
[ "MIT" ]
null
null
null
def prime_num(n): if n>1: for i in range (2,n): if n%i==0: return False return True lst_prime=list(filter(prime_num,range(1,2500))) print(len(lst_prime))
26
48
0.533654
0
0
0
0
0
0
0
0
0
0
ddd9ee0a17827daaf5df8b02b71f681e46b3a8a2
916
py
Python
OT/test_subplots.py
pine2104/Python_for_Lab
571398c2422711d8a74f9c95a746537859458557
[ "MIT" ]
5
2022-02-03T20:10:21.000Z
2022-03-30T08:05:10.000Z
OT/test_subplots.py
pine2104/Python_for_Lab
571398c2422711d8a74f9c95a746537859458557
[ "MIT" ]
null
null
null
OT/test_subplots.py
pine2104/Python_for_Lab
571398c2422711d8a74f9c95a746537859458557
[ "MIT" ]
null
null
null
from EM_Algorithm.gen_gauss import gen_gauss from EM_Algorithm.gen_poisson import gen_poisson import numpy as np import matplotlib.pyplot as plt x = gen_gauss([8],[2],[1000]) y = gen_poisson([1],[1000]) fig = plt.figure(figsize=(8, 8)) # Add a gridspec with two rows and two columns and a ratio of 2 to 7 between # th...
35.230769
84
0.689956
0
0
0
0
0
0
0
0
238
0.259825
ddda6ce0c1f2ddd975f7aba52a0da244fa436a75
2,114
py
Python
code/examples/VsevolodTymofyeyev2/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
code/examples/VsevolodTymofyeyev2/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
code/examples/VsevolodTymofyeyev2/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
import os from threading import Thread from typing import List from aiExchangeMessages_pb2 import SimulationID, TestResult def _handle_vehicle(sid: SimulationID, vid: str, requests: List[str]) -> None: vid_obj = VehicleID() vid_obj.vid = vid i = 0 while i < 3: i += 1 print(sid.sid + ...
33.555556
102
0.638127
0
0
0
0
0
0
0
0
325
0.153737
dddd2ef86d68662ac04401af3b7b61b4ab5cb9ed
1,916
py
Python
rfap.py
anabanami/RFAP
09b434d115ae1872810d65126bcbc9d7af510e89
[ "MIT" ]
null
null
null
rfap.py
anabanami/RFAP
09b434d115ae1872810d65126bcbc9d7af510e89
[ "MIT" ]
null
null
null
rfap.py
anabanami/RFAP
09b434d115ae1872810d65126bcbc9d7af510e89
[ "MIT" ]
null
null
null
# PHS3350 # Week 2 - wave packet and RFAP - # "what I cannot create I cannot understand" - R. Feynman. # Ana Fabela Hinojosa, 13/03/2021 import os from pathlib import Path import numpy as np import matplotlib import matplotlib.pyplot as plt import physunits from scipy.fft import fft, ifft plt.rcParams['figure.dpi'] =...
23.95
64
0.598643
0
0
0
0
0
0
0
0
476
0.245868
dddf4b825918a14f6e6549a6e8c4a604f9609cd9
295
py
Python
tests/test_pass.py
zaber-paul/base
9c4d4e40db7a5059dcaa32d44be0146b6bb829c4
[ "Apache-2.0" ]
null
null
null
tests/test_pass.py
zaber-paul/base
9c4d4e40db7a5059dcaa32d44be0146b6bb829c4
[ "Apache-2.0" ]
null
null
null
tests/test_pass.py
zaber-paul/base
9c4d4e40db7a5059dcaa32d44be0146b6bb829c4
[ "Apache-2.0" ]
null
null
null
""" run with nosetests -v --nocapture or nosetests -v """ from builtins import object from cloudmesh_base.util import HEADING class Test_pass(object): def setup(self): pass def tearDown(self): pass def test_dummy(self): HEADING() assert True
11.8
39
0.630508
162
0.549153
0
0
0
0
0
0
61
0.20678
dde27c4c382b986590140f153b007830bdfd2e36
3,725
py
Python
tests/api/test_record_permissions.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
tests/api/test_record_permissions.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
tests/api/test_record_permissions.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2018-2019 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Test record permissions.""" from __future__ import unicode_literals import uuid import pytest from flas...
33.863636
77
0.633289
0
0
0
0
3,089
0.829262
0
0
1,317
0.353557
dde28d401374fdc16a1d1b838ec6fd235235e1cc
945
py
Python
src/Index.py
bhed01/bhed01.github.io
132cf8e4afa05a00d71555afa2002a2d50c304c8
[ "MIT" ]
3
2020-10-16T12:26:31.000Z
2022-02-03T18:06:35.000Z
src/Index.py
bhed01/bhed01.github.io
132cf8e4afa05a00d71555afa2002a2d50c304c8
[ "MIT" ]
null
null
null
src/Index.py
bhed01/bhed01.github.io
132cf8e4afa05a00d71555afa2002a2d50c304c8
[ "MIT" ]
null
null
null
from .components.Head import Head from .components.NavIcons import Hamburger from .components.Screens import HomeScreen, AboutScreen, ProjectsScreen from .components.Footer import Footer from .utils import JSON_DIR from json import load import os def Index(): with open(os.path.join(JSON_DIR, 'home_data....
32.586207
72
0.649735
0
0
0
0
0
0
0
0
270
0.285714
dde2faa4056b42852281bc2be32673929adfef2b
5,190
py
Python
bisk/features/base.py
facebookresearch/bipedal-skills
edd424a8779e3a0121fb995cad00839d8226cf46
[ "MIT" ]
6
2021-11-05T16:57:58.000Z
2022-03-16T10:34:46.000Z
bisk/features/base.py
facebookresearch/bipedal-skills
edd424a8779e3a0121fb995cad00839d8226cf46
[ "MIT" ]
null
null
null
bisk/features/base.py
facebookresearch/bipedal-skills
edd424a8779e3a0121fb995cad00839d8226cf46
[ "MIT" ]
1
2021-11-05T16:57:47.000Z
2021-11-05T16:57:47.000Z
# Copyright (c) 2021-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # import logging from typing import Dict, List import gym import numpy as np from dm_control import mujoco from dm_control.mujoco.wrapper.mjbinding...
36.293706
76
0.511753
4,751
0.915414
0
0
0
0
0
0
691
0.133141
dde38c8eda97903a41ce2ff61801ff8773e4a599
1,124
py
Python
dns.py
bernd-wechner/OpenWRT-Tools
4ca2eb0d0774e0d97b48a485fa18a4d4bbc3f108
[ "Unlicense" ]
3
2017-06-12T11:03:56.000Z
2021-04-11T20:09:47.000Z
dns.py
bernd-wechner/OpenWRT-Tools
4ca2eb0d0774e0d97b48a485fa18a4d4bbc3f108
[ "Unlicense" ]
null
null
null
dns.py
bernd-wechner/OpenWRT-Tools
4ca2eb0d0774e0d97b48a485fa18a4d4bbc3f108
[ "Unlicense" ]
1
2021-08-25T02:39:40.000Z
2021-08-25T02:39:40.000Z
#!/usr/bin/python # # identify the DNS servers used on the WAN interface. # # Tries to find the owner of the DNS as well. # # DNS spoofing is one of the entry points for malware. I haven't seen it since I dumped # Windows at home but in past have seen malware that would change the DNS config on # the router. Kind of ...
30.378378
109
0.669929
0
0
0
0
0
0
0
0
554
0.492883
dde5915014c5c7fff2dcda09f7e0ecc75334cecc
398
py
Python
downloadHSfiles.py
McDowellLab/downloadNEON
b43d47d40cbf0e168dfa307969687025e3f5fa34
[ "MIT" ]
null
null
null
downloadHSfiles.py
McDowellLab/downloadNEON
b43d47d40cbf0e168dfa307969687025e3f5fa34
[ "MIT" ]
null
null
null
downloadHSfiles.py
McDowellLab/downloadNEON
b43d47d40cbf0e168dfa307969687025e3f5fa34
[ "MIT" ]
null
null
null
from hs_restclient import HydroShare, HydroShareAuthBasic # Download LCZO sesnor database from Hydroshare # link to the Hydroshare resource https://www.hydroshare.org/resource/b38bc00887ec45ac9499f9dea45eb8d5/ auth = HydroShareAuthBasic(username="miguelcleon", password = "x") hs = HydroShare(auth = auth) hs.getResour...
39.8
103
0.81407
0
0
0
0
0
0
0
0
212
0.532663
dde641d979074c8c01c9f5c1fbef8f55228ae8fe
339
py
Python
protonfixes/gamefixes/287260.py
bmaupin/protonfixes
9fc87a9a487d7dfbd0c602a079f3b026f8a84638
[ "BSD-2-Clause" ]
213
2018-10-06T01:40:26.000Z
2022-03-16T16:17:37.000Z
protonfixes/gamefixes/287260.py
bmaupin/protonfixes
9fc87a9a487d7dfbd0c602a079f3b026f8a84638
[ "BSD-2-Clause" ]
88
2018-10-06T17:38:56.000Z
2022-02-19T13:27:26.000Z
protonfixes/gamefixes/287260.py
bmaupin/protonfixes
9fc87a9a487d7dfbd0c602a079f3b026f8a84638
[ "BSD-2-Clause" ]
67
2018-10-09T16:57:16.000Z
2022-03-14T13:06:25.000Z
""" Game fix for Toybox Turbos """ #pylint: disable=C0103 from protonfixes import util from protonfixes.logger import log def main(): """ Changes the proton argument from the launcher to the game """ log('Applying fixes for Toybox Turbos') # Fix infinite startup screen util.set_environment('PROT...
21.1875
65
0.707965
0
0
0
0
0
0
0
0
208
0.613569
dde74c584ce2a956ca4842502658de5be6e68e74
4,035
py
Python
systrade/models/strategies.py
pdghawk/systrade
2200b950a3172f22a424c9e547aa6fa982f54c46
[ "BSD-3-Clause" ]
1
2022-02-09T20:16:51.000Z
2022-02-09T20:16:51.000Z
systrade/models/strategies.py
pdghawk/systrade
2200b950a3172f22a424c9e547aa6fa982f54c46
[ "BSD-3-Clause" ]
null
null
null
systrade/models/strategies.py
pdghawk/systrade
2200b950a3172f22a424c9e547aa6fa982f54c46
[ "BSD-3-Clause" ]
null
null
null
""" The strategies module provides utilities for designing trading strategies Notes ------ All strategies should inherit from BaseStrategy, and provide a get_order_list method. For details of the requirements of this method, see its docstring in base/BaseStrategy, or in the method within SimpleStrategy in this module....
44.340659
91
0.601983
3,162
0.783643
0
0
0
0
0
0
2,183
0.541016
dde864bb1233daa956ab699eaa628d9606c4448f
144
py
Python
ParkFinder/Parks/migrations/__init__.py
Krause2023/CS224-ParkFinder-Web_App
ccfa2faf61d6adb300f319ae11dd983483451410
[ "MIT" ]
1
2021-12-22T16:00:36.000Z
2021-12-22T16:00:36.000Z
ParkFinder/Parks/migrations/__init__.py
Krause2023/CS224-ParkFinder-Web_App
ccfa2faf61d6adb300f319ae11dd983483451410
[ "MIT" ]
null
null
null
ParkFinder/Parks/migrations/__init__.py
Krause2023/CS224-ParkFinder-Web_App
ccfa2faf61d6adb300f319ae11dd983483451410
[ "MIT" ]
null
null
null
# Create your migrations here. # WILL USE THIS LATER IF/WHEN YOU CREATE A DATABASE AND USER ACCOUNTS - THIS MAY BE IN A DIFFERENT APP AS WELL!!!
72
113
0.756944
0
0
0
0
0
0
0
0
143
0.993056
ddea0dbcc4c809d7b5a35e5b2781bf028ff2f764
140
py
Python
tests/framework/Optimizers/Infinite/infinite.py
milljm/raven
5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b
[ "Apache-2.0" ]
2
2019-10-11T15:59:10.000Z
2021-04-08T18:23:57.000Z
tests/framework/Optimizers/Infinite/infinite.py
milljm/raven
5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b
[ "Apache-2.0" ]
1
2018-03-27T13:06:00.000Z
2018-03-27T13:06:00.000Z
tests/framework/Optimizers/Infinite/infinite.py
milljm/raven
5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b
[ "Apache-2.0" ]
1
2017-08-29T16:09:13.000Z
2017-08-29T16:09:13.000Z
import numpy as np def run(self,Inputs): if self.x != 0.0: self.ans = self.y/self.x else: self.ans = np.array([float('inf')])
15.555556
39
0.592857
0
0
0
0
0
0
0
0
5
0.035714
ddea413a66b41dee24d47cda24474b0ccba4f292
1,955
py
Python
pyinterfaces/enum/ENUM_USAGE.py
OaklandPeters/pyinterfaces
c60efaad92e8d2e1ec25df718dfb43f034a083bb
[ "MIT" ]
null
null
null
pyinterfaces/enum/ENUM_USAGE.py
OaklandPeters/pyinterfaces
c60efaad92e8d2e1ec25df718dfb43f034a083bb
[ "MIT" ]
null
null
null
pyinterfaces/enum/ENUM_USAGE.py
OaklandPeters/pyinterfaces
c60efaad92e8d2e1ec25df718dfb43f034a083bb
[ "MIT" ]
null
null
null
""" Provides example of how I would like `enum` to be used. Implementation details: (1) Uses Metaclass for two reasons: (1.1) So that the subclasses can be iterable (we want class objects, not instance objects) (1.2) To automatically collect Enumeratee enum.Enumerator EnumSet, Partition, Basis Produc...
29.621212
130
0.707417
521
0.266496
288
0.147315
305
0.15601
0
0
1,310
0.670077
ddebffcf3d40adc0208ac8b35c967b6d0551178a
38,079
py
Python
port/platform/common/automation/u_utils.py
stephanboner/ubxlib
64025c5760771ac2accd09f9f176693c7add2919
[ "Apache-2.0" ]
null
null
null
port/platform/common/automation/u_utils.py
stephanboner/ubxlib
64025c5760771ac2accd09f9f176693c7add2919
[ "Apache-2.0" ]
null
null
null
port/platform/common/automation/u_utils.py
stephanboner/ubxlib
64025c5760771ac2accd09f9f176693c7add2919
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python '''Generally useful bits and bobs.''' import queue # For PrintThread and exe_run from time import sleep, time, gmtime, strftime # For lock timeout, exe_run timeout and logging import threading # For PrintThread import os # For ChangeDir, ...
42.930101
120
0.536437
10,699
0.280969
0
0
0
0
0
0
10,774
0.282938