hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7967ee274db5e63aad235ebb8e44dd892128f5ca
9,281
py
Python
shoppingmall_back/apis/v1/views.py
KangJuSeong/sellerShop_server
4b3e56e39885a2538abff7d6d404d05360cbd932
[ "MIT" ]
null
null
null
shoppingmall_back/apis/v1/views.py
KangJuSeong/sellerShop_server
4b3e56e39885a2538abff7d6d404d05360cbd932
[ "MIT" ]
null
null
null
shoppingmall_back/apis/v1/views.py
KangJuSeong/sellerShop_server
4b3e56e39885a2538abff7d6d404d05360cbd932
[ "MIT" ]
null
null
null
import importlib import json from datetime import timedelta from django.db.utils import IntegrityError from django.db.models import Count from django.contrib.auth import login, get_user_model from django.utils import timezone from utils.views import AuthAPIView, APIView from utils.functions import make_jwt, check_pas...
36.829365
119
0.603814
7967ef76e04b7d23680713633349b2121ef0ecb0
933
py
Python
scratch.py
victor-shepardson/pylivecode
98da82921905ae32a9749792f3a04fd4b39c3551
[ "MIT" ]
null
null
null
scratch.py
victor-shepardson/pylivecode
98da82921905ae32a9749792f3a04fd4b39c3551
[ "MIT" ]
null
null
null
scratch.py
victor-shepardson/pylivecode
98da82921905ae32a9749792f3a04fd4b39c3551
[ "MIT" ]
null
null
null
import numpy as np from glumpy import app from livecode import * size = np.array((900, 1800)) screen_size = np.array((1600, 900)) win_size = screen_size*2 def get_shaders(s): return ('shader/lib.glsl', 'shader/'+s+'.glsl') screen = Layer(screen_size, get_shaders('display-stretch')) post = Layer( screen_size,...
20.282609
66
0.693462
7967eff9217c817a14dea955e6e8207f813f72a2
2,614
py
Python
hard-gists/723736/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/723736/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/723736/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
""" Author: Oliver Mitevski References: A Generalized Linear Model for Principal Component Analysis of Binary Data, Andrew I. Schein; Lawrence K. Saul; Lyle H. Ungar The code was translated and adapted from Jakob Verbeek's "Hidden Markov models and mixtures for Binary PCA" implementation in MATLAB """ import sys ...
21.252033
76
0.583015
7967f08a7b6636ec951adaa9f265f9ab97af1b51
3,373
py
Python
adapters/lumi/__init__.py
pafailler/domoticz-zigbee2mqtt-plugin
2b14f7ad6e3040747e91a0d7e26d860a3b7c1de3
[ "MIT" ]
null
null
null
adapters/lumi/__init__.py
pafailler/domoticz-zigbee2mqtt-plugin
2b14f7ad6e3040747e91a0d7e26d860a3b7c1de3
[ "MIT" ]
null
null
null
adapters/lumi/__init__.py
pafailler/domoticz-zigbee2mqtt-plugin
2b14f7ad6e3040747e91a0d7e26d860a3b7c1de3
[ "MIT" ]
null
null
null
from adapters.on_off_switch_adapter import OnOffSwitchAdapter from adapters.dimmable_ct_bulb_adapter import DimmableCtBulbAdapter from adapters.generic.motion_sensor import MotionSensorAdapter from adapters.generic.smoke_sensor import SmokeSensorAdapter from adapters.generic.water_leak_sensor import WaterLeakSensorAdap...
63.641509
97
0.735547
7967f142b307d4cb782b9317fcd06ff2d5910327
26,667
py
Python
src/core/utils/data_utils.py
joe3d1998/GraphFlow
8a751e4fc69a1e0c06ded23b7d1096f3161931a1
[ "Apache-2.0" ]
30
2019-08-18T21:56:20.000Z
2022-03-18T10:04:02.000Z
src/core/utils/data_utils.py
joe3d1998/GraphFlow
8a751e4fc69a1e0c06ded23b7d1096f3161931a1
[ "Apache-2.0" ]
2
2019-11-12T02:28:36.000Z
2022-03-20T05:27:05.000Z
src/core/utils/data_utils.py
joe3d1998/GraphFlow
8a751e4fc69a1e0c06ded23b7d1096f3161931a1
[ "Apache-2.0" ]
11
2020-02-17T02:47:26.000Z
2021-09-05T05:37:29.000Z
# -*- coding: utf-8 -*- """ Module to handle getting data loading classes and helper functions. """ import json import io import torch import numpy as np from scipy.sparse import * from collections import Counter, defaultdict from torch.utils.data import Dataset from .bert_utils import * from .eval_utils import norm...
47.031746
164
0.59958
7967f1705123594e84e135df12e901fc6aa650f1
887
py
Python
gittra/utilities/fileType.py
saksham1991999/GitTra
bfce7e989b5613a411db3d4f7c93790dab25a7e6
[ "MIT" ]
2
2021-02-26T19:19:16.000Z
2021-11-05T06:23:31.000Z
gittra/utilities/fileType.py
saksham1991999/MLH-Hackathon-1
bfce7e989b5613a411db3d4f7c93790dab25a7e6
[ "MIT" ]
15
2021-02-12T18:56:26.000Z
2021-02-25T00:09:57.000Z
gittra/utilities/fileType.py
saksham1991999/MLH-Hackathon-1
bfce7e989b5613a411db3d4f7c93790dab25a7e6
[ "MIT" ]
1
2021-03-22T16:48:44.000Z
2021-03-22T16:48:44.000Z
""" This module is for identifying the filetype of the code and returning the type of file, based on the extensions """ import os MIME_MAP = { '.html': 'text/html', # HTML '.c': 'text/x-c', # C '.cpp': 'text/x-c++', # C++/C# '.cs': 'text/x-c++', # C++/C# '.cxx': 'text/x-c++', # C++/C# '.g...
27.71875
111
0.559188
7967f289e3774a08837278e76210f8426262e394
3,975
py
Python
biowardrobe_airflow_advanced/utils/connect.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
null
null
null
biowardrobe_airflow_advanced/utils/connect.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
1
2018-09-30T16:57:06.000Z
2018-09-30T16:57:06.000Z
biowardrobe_airflow_advanced/utils/connect.py
Barski-lab/biowardrobe-airflow-advanced
e43aa268fd05635e8356788b8e814279b698263f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 import MySQLdb # TODO Do I need to add it into requirements in setup.py import logging from sqlparse import split from contextlib import closing from airflow import models from airflow.hooks.mysql_hook import MySqlHook from airflow.utils.db import...
34.267241
119
0.565535
7967f3cb6765cf6cb7a9ded4b3a9d8427f84ff6c
103
py
Python
os_command/urls.py
Abhinivesh27/djsec
53c20bf45802b782899e62cd4d7569dc81f99aeb
[ "CC0-1.0" ]
null
null
null
os_command/urls.py
Abhinivesh27/djsec
53c20bf45802b782899e62cd4d7569dc81f99aeb
[ "CC0-1.0" ]
null
null
null
os_command/urls.py
Abhinivesh27/djsec
53c20bf45802b782899e62cd4d7569dc81f99aeb
[ "CC0-1.0" ]
null
null
null
from django.urls import path from os_command import views urlpatterns = [ path('',views.search), ]
17.166667
28
0.728155
7967f5b6cb3ad42bf671575d23c6fe19aef70c4b
1,087
py
Python
tests/test_core.py
mdgreenwald/flintrock
838a367e14732efdda7080cf8b64a666148e5723
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_core.py
mdgreenwald/flintrock
838a367e14732efdda7080cf8b64a666148e5723
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_core.py
mdgreenwald/flintrock
838a367e14732efdda7080cf8b64a666148e5723
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os import pytest # Flintrock from flintrock.core import ( generate_template_mapping, get_formatted_template, ) FLINTROCK_ROOT_DIR = ( os.path.dirname( os.path.dirname( os.path.realpath(__file__)))) @pytest.mark.parametrize( 'spark_version', [ (''), ('2.4.3'...
28.605263
77
0.580497
7967f5ccb1ac5ed59f73b704d0cbe5bb1971f07c
1,101
py
Python
framework/workload/DeFogWorkload.py
BirgittM/COSCO-1
2140b3d9fa2d5a8027a0d062fdcf0ff952f65b0f
[ "BSD-3-Clause" ]
20
2020-11-17T17:44:41.000Z
2022-03-30T19:35:53.000Z
framework/workload/DeFogWorkload.py
imperial-qore/CAROL
57dc42c4ddeb9e75eed43a91ceb336a1ecc9c8b9
[ "BSD-3-Clause" ]
6
2021-06-04T18:06:17.000Z
2022-03-10T14:16:46.000Z
framework/workload/DeFogWorkload.py
imperial-qore/CAROL
57dc42c4ddeb9e75eed43a91ceb336a1ecc9c8b9
[ "BSD-3-Clause" ]
12
2020-12-28T17:59:12.000Z
2022-03-29T06:07:35.000Z
from .Workload import * from datetime import datetime from framework.database.Database import * from random import gauss, choices import random class DFW(Workload): def __init__(self, num_workloads, std_dev, database): super().__init__() self.num_workloads = num_workloads self.std_dev = std...
42.346154
96
0.66485
7967f62c7ed85c1bcaa4d2c17362046c6225d3b6
9,332
py
Python
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/aio/_data_box_edge_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/aio/_data_box_edge_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/aio/_data_box_edge_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
55.547619
135
0.755679
7967f6f66caf2327930c5d1dd462e8e894b733bb
5,358
py
Python
modules/auxiliary/scanner/smb/impacket/wmiexec.py
Davdegreat/metasploit-framework
d30b6b136af58ce2efd97f1f61d2116b4d52ab6c
[ "BSD-2-Clause", "BSD-3-Clause" ]
334
2019-04-18T23:42:52.000Z
2020-09-09T17:14:37.000Z
modules/auxiliary/scanner/smb/impacket/wmiexec.py
Davdegreat/metasploit-framework
d30b6b136af58ce2efd97f1f61d2116b4d52ab6c
[ "BSD-2-Clause", "BSD-3-Clause" ]
42
2019-04-19T12:52:24.000Z
2020-08-03T18:01:38.000Z
modules/auxiliary/scanner/smb/impacket/wmiexec.py
Davdegreat/metasploit-framework
d30b6b136af58ce2efd97f1f61d2116b4d52ab6c
[ "BSD-2-Clause", "BSD-3-Clause" ]
73
2019-04-19T10:20:56.000Z
2020-09-11T11:16:57.000Z
#!/usr/bin/env python # Copyright (c) 2003-2018 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # import logging import os import string import sys try: from impacket.smbcon...
38.271429
139
0.62206
7967f7626a2693efe20ce8e3b2c6b244252824a0
402
py
Python
TD/TD1/Code/Python/3.py
sumaxime/LIFAP1
b5da0395de9775cd8b319b56af7a6d0257d542db
[ "MIT" ]
1
2019-06-19T08:40:24.000Z
2019-06-19T08:40:24.000Z
TD/TD1/Code/Python/3.py
sumaxime/LIFAP1
b5da0395de9775cd8b319b56af7a6d0257d542db
[ "MIT" ]
13
2016-11-15T16:44:23.000Z
2016-12-16T09:42:48.000Z
TD/TD1/Code/Python/3.py
sumaxime/LIFAP1
b5da0395de9775cd8b319b56af7a6d0257d542db
[ "MIT" ]
1
2019-12-06T11:48:09.000Z
2019-12-06T11:48:09.000Z
#!/usr/bin/python # Informer si le produit est poitif, négatif ou nul, sans le calculer # print('Donne moi premier entier : ', end='') a = int(input()) print('Donne moi deuxième entier : ', end='') b = int(input()) if (a > 0 and b > 0) or (a < 0 and b < 0): print('Le produit est positif !') elif (a == 0 or b == 0)...
28.714286
71
0.609453
7967f76734e225e83544eb34ad4e72f895427898
5,315
py
Python
f0031b_MIPASorACEorAMICA_age_tiles.py
Chenxiqiu/age_fire_code
7e64cb24a70bc6d00eada7e613407b80e1e069a8
[ "MIT" ]
null
null
null
f0031b_MIPASorACEorAMICA_age_tiles.py
Chenxiqiu/age_fire_code
7e64cb24a70bc6d00eada7e613407b80e1e069a8
[ "MIT" ]
null
null
null
f0031b_MIPASorACEorAMICA_age_tiles.py
Chenxiqiu/age_fire_code
7e64cb24a70bc6d00eada7e613407b80e1e069a8
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import pandas as pd import clean.clean_03 as southtrac import process.constants as c from matplotlib import gridspec from datetime import datetime import winsound duration = 1000 # milliseconds freq = 440 # Hz import plotly.io as pio impor...
35.912162
130
0.652493
7967f78080458e1d856bec7fa724a659b3836195
772
py
Python
_snippets/convert_mvs.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
7
2015-12-21T03:52:46.000Z
2020-07-24T19:17:23.000Z
_snippets/convert_mvs.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
12
2016-03-05T18:11:05.000Z
2021-06-17T20:20:03.000Z
_snippets/convert_mvs.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
4
2016-07-17T20:19:38.000Z
2021-03-23T12:47:20.000Z
import codecs import sys import json from tqdm import tqdm if __name__ == '__main__': assert len(sys.argv) == 3 with codecs.open(sys.argv[1], "r") as fp_in: with codecs.open(sys.argv[2], "w", encoding="utf8") as fp_out: data = json.load(fp_in) for d in tqdm(data): ...
30.88
70
0.525907
7967f7f8f663ab00f035e60217a0a3aca021870e
4,268
py
Python
mwsessions/sessionizer.py
halfak/mwsessions
bbbc7330075a2066514df21a64a9afd7a4e0de52
[ "MIT" ]
1
2018-05-20T08:52:48.000Z
2018-05-20T08:52:48.000Z
mwsessions/sessionizer.py
mediawiki-utilities/python-mwsessions
bbbc7330075a2066514df21a64a9afd7a4e0de52
[ "MIT" ]
null
null
null
mwsessions/sessionizer.py
mediawiki-utilities/python-mwsessions
bbbc7330075a2066514df21a64a9afd7a4e0de52
[ "MIT" ]
null
null
null
import logging from collections import namedtuple import mwtypes from . import defaults from .event import Event, unpack_events from .heap import Heap logger = logging.getLogger("mw.lib.sessions.cache") Session = namedtuple("Session", ["user", "events"]) """ Represents a user session (a cluster over events for a us...
32.830769
77
0.593252
7967f81b43e61c3a0765ec53c4c30a6942621124
2,870
py
Python
azure_deploy_development_stage.py
ketangangal/Mlops-Azure-Integration
704259ae78a5420a32b80833ff4a3ca8e9f630f1
[ "MIT" ]
null
null
null
azure_deploy_development_stage.py
ketangangal/Mlops-Azure-Integration
704259ae78a5420a32b80833ff4a3ca8e9f630f1
[ "MIT" ]
null
null
null
azure_deploy_development_stage.py
ketangangal/Mlops-Azure-Integration
704259ae78a5420a32b80833ff4a3ca8e9f630f1
[ "MIT" ]
4
2022-03-12T03:14:47.000Z
2022-03-20T11:36:08.000Z
from azure_utils.common import read_config, update_config import mlflow.azureml from azureml.core import Workspace from azureml.core.webservice import AciWebservice, Webservice import os from from_root import from_root class azure_workspace: def __init__(self, config=None): self.config = config se...
39.861111
119
0.622997
7967f94a877d80506a0bffa105f04b8d7e5026d4
606
py
Python
lab06/tests/q3_1.py
ucsb-int5/int5-f19-notebooks
5b3d1ee6964d9357f211f4706787403ec5a3079c
[ "MIT" ]
1
2019-10-02T21:43:12.000Z
2019-10-02T21:43:12.000Z
lab06/tests/q3_1.py
ucsb-int5/int5-f19-notebooks
5b3d1ee6964d9357f211f4706787403ec5a3079c
[ "MIT" ]
3
2019-12-14T06:20:14.000Z
2019-12-14T07:12:33.000Z
lab06/tests/q3_1.py
ucsb-int5/int5-f19-notebooks
5b3d1ee6964d9357f211f4706787403ec5a3079c
[ "MIT" ]
3
2019-10-02T18:36:06.000Z
2019-12-03T18:16:45.000Z
test = { 'name': 'Question31', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> from datascience import * >>> retweets_likes.num_rows 7 """, 'hidden': False, 'locked': False }, { 'code': r...
18.363636
40
0.354785
7967fa2f4ed1a29ae791b649e25432da743396c9
126
py
Python
manage.py
taymonbeal/eahub.org
311be65b927b7c7b02f16fba97d74903cf13cf59
[ "MIT" ]
1
2020-12-05T13:10:58.000Z
2020-12-05T13:10:58.000Z
manage.py
taymonbeal/eahub.org
311be65b927b7c7b02f16fba97d74903cf13cf59
[ "MIT" ]
null
null
null
manage.py
taymonbeal/eahub.org
311be65b927b7c7b02f16fba97d74903cf13cf59
[ "MIT" ]
null
null
null
import sys from django.core import management if __name__ == "__main__": management.execute_from_command_line(sys.argv)
18
50
0.785714
7967fb9fa75d71b5b577f4008444398acf40b148
1,822
py
Python
lib/spack/spack/build_systems/aspell_dict.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
lib/spack/spack/build_systems/aspell_dict.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
lib/spack/spack/build_systems/aspell_dict.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) # Why doesn't this work for me? # from spack import * from llnl.util.filesystem import filter_file from spack.build_syste...
35.038462
75
0.688255
7967fc10cca8a5ef18e7f721dcee08654deb0d77
26,192
py
Python
rasa/core/policies/rule_policy.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
null
null
null
rasa/core/policies/rule_policy.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
46
2020-09-26T11:36:38.000Z
2022-03-01T13:38:02.000Z
rasa/core/policies/rule_policy.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
null
null
null
import logging from typing import List, Dict, Text, Optional, Any, Set, TYPE_CHECKING, Union from tqdm import tqdm import numpy as np import json from rasa.shared.constants import DOCS_URL_RULES import rasa.shared.utils.io from rasa.shared.core.events import FormValidation, UserUttered, ActionExecuted from rasa.core....
39.268366
88
0.640845
7967fd29331e0baa43be60c3952f568753cf242f
2,253
py
Python
data2/getdatanomads2.py
StudioFolder/Floatpredictor-data
677f9d4876d42eae8097f9f938074d860033665a
[ "MIT" ]
null
null
null
data2/getdatanomads2.py
StudioFolder/Floatpredictor-data
677f9d4876d42eae8097f9f938074d860033665a
[ "MIT" ]
null
null
null
data2/getdatanomads2.py
StudioFolder/Floatpredictor-data
677f9d4876d42eae8097f9f938074d860033665a
[ "MIT" ]
1
2018-07-19T19:10:52.000Z
2018-07-19T19:10:52.000Z
# see license.txt # python getdatanomads2.py yyyymmdd tttt import sys import numpy as np from scipy.io.netcdf import netcdf_file import subprocess t=[ 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78,...
25.314607
83
0.50688
7967fd5e04dc9fec23907d25b1b4200f78518a10
28,552
py
Python
src/jobs/automl.py
easyautoml/easyml
5c4a724836c5dbd9eb66a81ae33d3d63961a0f80
[ "Apache-2.0" ]
2
2022-03-30T06:57:05.000Z
2022-03-30T23:44:10.000Z
src/jobs/automl.py
easyautoml/easyml
5c4a724836c5dbd9eb66a81ae33d3d63961a0f80
[ "Apache-2.0" ]
null
null
null
src/jobs/automl.py
easyautoml/easyml
5c4a724836c5dbd9eb66a81ae33d3d63961a0f80
[ "Apache-2.0" ]
null
null
null
from utils import config from utils.transform import Input, Output, Excel, get_experiments_url, get_predict_url, get_experiments_dataset_url, \ get_file_url, distribution_density, get_evaluation_url, Histogram from utils import services from sklearn.metrics import accuracy_score, f1_score, balanced_accuracy_score, ...
38.952251
128
0.609625
7967fd9df17d3242297f21e3bbdc5b720176a3b3
6,064
py
Python
utils/SubwordHash.py
GODA47/Fasttext
9781430b60954516d968feb6e9ca03fc20ed24da
[ "MIT" ]
null
null
null
utils/SubwordHash.py
GODA47/Fasttext
9781430b60954516d968feb6e9ca03fc20ed24da
[ "MIT" ]
null
null
null
utils/SubwordHash.py
GODA47/Fasttext
9781430b60954516d968feb6e9ca03fc20ed24da
[ "MIT" ]
null
null
null
import os import numpy as np from tqdm import tqdm from nltk import word_tokenize import re import nltk import math import torch from nltk import word_tokenize from nltk import WordNetLemmatizer from nltk.corpus import stopwords from .replace_dict import rep from .config import * lem = WordNetLemmatizer() stop_words...
33.318681
101
0.565633
7967fdd1e3130f778267160440a8c2bf915196dd
390
py
Python
songpay/mainapp/admin.py
malfin/SongPay
998a0e72410cd5484069edc79e09bf0e50d87aa2
[ "Apache-2.0" ]
null
null
null
songpay/mainapp/admin.py
malfin/SongPay
998a0e72410cd5484069edc79e09bf0e50d87aa2
[ "Apache-2.0" ]
null
null
null
songpay/mainapp/admin.py
malfin/SongPay
998a0e72410cd5484069edc79e09bf0e50d87aa2
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from mainapp.models import Category, Key, Arrangement, Order, Support class ArrangementAdmin(admin.ModelAdmin): search_fields = ('category', 'key') list_filter = ('category', 'key') admin.site.register(Category) admin.site.register(Key) admin.site.register(Arrangement, Arra...
24.375
69
0.774359
7967fdde085020f7b0576b115875136344984e99
175
py
Python
oldcontrib/media/video/forms.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
oldcontrib/media/video/forms.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
oldcontrib/media/video/forms.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
from django import forms from oldcontrib.media.video.models import Video class VideoUpload(forms.ModelForm): class Meta: model = Video fields = ('video',)
25
47
0.697143
7967fe29ca903cdcad4fbf6117d88a7fc792f2a4
1,168
py
Python
day5/day5.py
gamescoot/advent2020
73cfd69e474e7447688849b08c5a2d11a74fa4a2
[ "MIT" ]
null
null
null
day5/day5.py
gamescoot/advent2020
73cfd69e474e7447688849b08c5a2d11a74fa4a2
[ "MIT" ]
null
null
null
day5/day5.py
gamescoot/advent2020
73cfd69e474e7447688849b08c5a2d11a74fa4a2
[ "MIT" ]
null
null
null
import advent_util FILE_TEXT = advent_util.read_file() # Part 1: Parse the input into a list of seat numbers. If you replace the R's and B's with 1 and L's and F's with 0, # then you can just cast it directly to an integer using base 2 cast.While on each line it iterates through the string # and converts the letters...
46.72
120
0.707192
7967fedbf7f58fe666ca120d69e5cbd2d3cc2ee4
14,263
py
Python
coffea/nanoevents/factory.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
coffea/nanoevents/factory.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
coffea/nanoevents/factory.py
danbarto/coffea
2b28e28f602f8b81a1449ee85578187a7f52b602
[ "BSD-3-Clause" ]
null
null
null
import warnings import weakref import awkward import uproot import pathlib import io import uuid from collections.abc import Mapping from coffea.nanoevents.util import quote, key_to_tuple, tuple_to_key from coffea.nanoevents.mapping import ( TrivialUprootOpener, TrivialParquetOpener, UprootSourceMapping, ...
37.534211
118
0.598331
7967fef3b25111be006b3f84b248e3adcc53303b
1,917
py
Python
buffalo/data/prepro.py
awesome-archive/buffalo
1bcb76b61161e74324ca71ed05ce0576598798b5
[ "Apache-2.0" ]
577
2019-08-28T19:56:43.000Z
2022-03-22T19:44:58.000Z
buffalo/data/prepro.py
awesome-archive/buffalo
1bcb76b61161e74324ca71ed05ce0576598798b5
[ "Apache-2.0" ]
35
2019-08-28T23:48:58.000Z
2022-02-10T02:13:47.000Z
buffalo/data/prepro.py
awesome-archive/buffalo
1bcb76b61161e74324ca71ed05ce0576598798b5
[ "Apache-2.0" ]
128
2019-08-28T21:41:10.000Z
2022-02-21T17:46:17.000Z
# -*- coding: utf-8 -*- import numpy as np class PreProcess(object): def __init__(self, opt): self.opt = opt def pre(self, header): pass def __call__(self, v): return v def post(self, db): pass class OneBased(PreProcess): def __init__(self, opt): super(...
21.539326
80
0.550339
79680058ceea9da7f284d03797ac9e11d5477645
155
py
Python
output/models/ms_data/identity_constraint/id_h015_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/identity_constraint/id_h015_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/identity_constraint/id_h015_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.identity_constraint.id_h015_xsd.id_h015 import ( Kid, Root, Uid, ) __all__ = [ "Kid", "Root", "Uid", ]
12.916667
75
0.6
796801c8e1ef29aa61ffd8ee564551074635fe94
815
py
Python
tests/lib/test_host.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
18
2016-04-20T19:00:56.000Z
2021-12-19T16:43:57.000Z
tests/lib/test_host.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
461
2016-07-20T00:42:59.000Z
2022-03-25T17:03:07.000Z
tests/lib/test_host.py
agdsn/pycroft
ea771141d59c88fdb8a782eafbe106240550a33a
[ "Apache-2.0" ]
15
2016-07-15T18:46:43.000Z
2021-03-17T20:08:39.000Z
# Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file. # This file is part of the Pycroft project and licensed under the terms of # the Apache License, Version 2.0. See the LICENSE file for details. from pycroft.lib.host import change_mac from tests import FactoryDataTestBase from tests.factories import UserFa...
40.75
78
0.747239
796802068ff02b5ce9ba5bef78b4beb6bd108706
9,147
py
Python
python/nmigen_cfu/test_cfu.py
keadwen/CFU-Playground
74c79158e85e1365170ececd1d91ea3fa48faba0
[ "Apache-2.0" ]
240
2021-03-09T23:32:09.000Z
2022-03-28T14:54:08.000Z
python/nmigen_cfu/test_cfu.py
keadwen/CFU-Playground
74c79158e85e1365170ececd1d91ea3fa48faba0
[ "Apache-2.0" ]
283
2021-03-10T00:09:11.000Z
2022-03-31T16:39:40.000Z
python/nmigen_cfu/test_cfu.py
keadwen/CFU-Playground
74c79158e85e1365170ececd1d91ea3fa48faba0
[ "Apache-2.0" ]
78
2021-03-10T06:13:39.000Z
2022-03-30T14:09:00.000Z
#!/usr/bin/env python3 # Copyright 2021 The CFU-Playground Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
35.59144
121
0.519733
79680242df2192f069e825e7b13d782bc454416e
1,121
py
Python
rule.py
Iason/Thesis_sampling_from_probabilistic_context_free_grammars2
524f5588322c09844c92ffba646bbc9d27a40aad
[ "Apache-2.0" ]
5
2016-11-17T16:58:31.000Z
2019-05-08T15:29:17.000Z
rule.py
Iason/Thesis_sampling_from_probabilistic_context_free_grammars
524f5588322c09844c92ffba646bbc9d27a40aad
[ "Apache-2.0" ]
1
2017-01-09T12:15:00.000Z
2017-01-09T16:49:09.000Z
rule.py
Iason/Thesis_sampling_from_probabilistic_context_free_grammars
524f5588322c09844c92ffba646bbc9d27a40aad
[ "Apache-2.0" ]
2
2017-01-09T16:29:54.000Z
2019-05-08T15:29:18.000Z
""" @author wilkeraziz """ from collections import defaultdict class Rule(object): def __init__(self, lhs, rhs, log_prob): """ Constructs a Rule. @param lhs: the LHS nonterminal @param rhs: a sequence of RHS symbols @param log_prob: log probability of the rule """...
22.42
104
0.578055
7968033e65e02b5e9df8b5f00478accd2cf6a81e
3,962
py
Python
main_test.py
rhLahr/CNN_coffee_ring_effect
1445d1d97dfc04fd79ff1dabde0761af550ea394
[ "MIT" ]
null
null
null
main_test.py
rhLahr/CNN_coffee_ring_effect
1445d1d97dfc04fd79ff1dabde0761af550ea394
[ "MIT" ]
null
null
null
main_test.py
rhLahr/CNN_coffee_ring_effect
1445d1d97dfc04fd79ff1dabde0761af550ea394
[ "MIT" ]
1
2019-11-20T13:43:15.000Z
2019-11-20T13:43:15.000Z
import numpy as np from PIL import Image import torch import torch.nn as nn from load_test_data import load_test_data from sklearn.metrics import confusion_matrix from model_result import model_result import matplotlib.pyplot as plt import seaborn as sn import pandas as pd class CNN(nn.Module): def _...
35.693694
114
0.628723
796803a1622559a5d38984e59710050c2fec9443
9,256
py
Python
connect/cli/plugins/project/report_helpers.py
othercodes/connect-cli
c3eec5613a2e28dc1acc2f6852804f4771b9f045
[ "Apache-2.0" ]
1
2022-02-16T10:12:46.000Z
2022-02-16T10:12:46.000Z
connect/cli/plugins/project/report_helpers.py
othercodes/connect-cli
c3eec5613a2e28dc1acc2f6852804f4771b9f045
[ "Apache-2.0" ]
null
null
null
connect/cli/plugins/project/report_helpers.py
othercodes/connect-cli
c3eec5613a2e28dc1acc2f6852804f4771b9f045
[ "Apache-2.0" ]
null
null
null
# Copyright © 2021 CloudBlue. All rights reserved. import json import os import sys import inspect import importlib import tempfile import shutil from cookiecutter import generate from cookiecutter.main import cookiecutter from cookiecutter.config import get_user_config from cookiecutter.exceptions import OutputDirE...
36.876494
110
0.677615
7968048bdcd7115124ce33cbba523f3230eca634
10,641
py
Python
lib/galaxy/managers/folders.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/folders.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/managers/folders.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
null
null
null
""" Manager and Serializer for Library Folders. """ import galaxy.exceptions from sqlalchemy.orm.exc import MultipleResultsFound from sqlalchemy.orm.exc import NoResultFound import logging log = logging.getLogger( __name__ ) # ============================================================================= class Folder...
42.73494
154
0.646086
7968059c9b3c6aca3c83eed9c496f6b775730121
1,925
py
Python
tools/plot_Images_histogram_test.py
yghlc/rs_img_proc
2f704b0c6ac456b6893142f1900c732ea2b8c637
[ "MIT" ]
null
null
null
tools/plot_Images_histogram_test.py
yghlc/rs_img_proc
2f704b0c6ac456b6893142f1900c732ea2b8c637
[ "MIT" ]
null
null
null
tools/plot_Images_histogram_test.py
yghlc/rs_img_proc
2f704b0c6ac456b6893142f1900c732ea2b8c637
[ "MIT" ]
3
2021-02-08T02:32:43.000Z
2021-12-29T09:14:06.000Z
#!/usr/bin/env python # Filename: plot_Images_histogram_test.py """ introduction: # run "pytest plot_Images_histogram_test.py " or "pytest " for test, add " -s for allowing print out" # "pytest can automatically search *_test.py files " authors: Huang Lingcao email:huanglingcao@gmail.com add time: 07 February, 2021 ...
31.048387
133
0.696623
796805a2a2935f4cbaab671303f13c9876aa90b5
6,205
py
Python
calm/fixes.py
cygwin/calm
8e945375168eb6bb93e0e6cb1f437dacff9ff088
[ "MIT" ]
5
2016-03-18T22:12:31.000Z
2022-02-02T16:01:52.000Z
calm/fixes.py
cygwin/calm
8e945375168eb6bb93e0e6cb1f437dacff9ff088
[ "MIT" ]
null
null
null
calm/fixes.py
cygwin/calm
8e945375168eb6bb93e0e6cb1f437dacff9ff088
[ "MIT" ]
3
2016-03-21T12:54:16.000Z
2022-03-06T09:41:06.000Z
#!/usr/bin/env python3 # # Copyright (c) 2020 Jon Turney # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
34.472222
124
0.651894
796805b77f7913edd582aef49db72b060d077b07
603
py
Python
Error Handling/01_numbers_dict.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
Error Handling/01_numbers_dict.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
Error Handling/01_numbers_dict.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
numbers_dictionary = {} key = '' while True: key = input() if key == "Search": break value = input() if value == "Search": break number = int(value) numbers_dictionary[key] = number searched = input() while searched != "Remove": print(numbers_dictionary.get(searched, 'Num...
18.272727
82
0.613599
796805d5304b888340c664248431985b1a01fd59
8,635
py
Python
models/backbone/resnet.py
GIShkl/GAOFEN2021_CHANGEDETECTION
5b7251cb1e951a04c7effacab6c1233232158472
[ "MIT" ]
3
2021-12-12T09:45:41.000Z
2022-03-10T08:34:22.000Z
models/backbone/resnet.py
lyp19/GAOFEN2021_CHANGEDETECTION
5b7251cb1e951a04c7effacab6c1233232158472
[ "MIT" ]
null
null
null
models/backbone/resnet.py
lyp19/GAOFEN2021_CHANGEDETECTION
5b7251cb1e951a04c7effacab6c1233232158472
[ "MIT" ]
1
2021-11-13T05:40:18.000Z
2021-11-13T05:40:18.000Z
import torch.utils.model_zoo as model_zoo import torch import torch.nn as nn __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d'] def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1): return nn.Conv2d(in_planes, out_pl...
35.534979
97
0.597915
796805e0db017f80a8697dd5521a91e32fa5b08a
10,091
py
Python
tensorflow_probability/python/distributions/uniform_test.py
jihunchoi/probability
685c5012eba03a23d1b849d35f5e8efe7fdc402d
[ "Apache-2.0" ]
1
2018-11-07T16:31:11.000Z
2018-11-07T16:31:11.000Z
tensorflow_probability/python/distributions/uniform_test.py
jihunchoi/probability
685c5012eba03a23d1b849d35f5e8efe7fdc402d
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/uniform_test.py
jihunchoi/probability
685c5012eba03a23d1b849d35f5e8efe7fdc402d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
32.034921
78
0.653354
79680702c5efb0383036376619395df8bf340a30
11,934
py
Python
slim/nets/vgg.py
blahster/tf-models
eaa4a000ef8e5f094764c42a590bb1c49b7b6f7c
[ "Apache-2.0" ]
1,698
2017-04-19T12:37:58.000Z
2022-03-25T09:32:53.000Z
slim/nets/vgg.py
blahster/tf-models
eaa4a000ef8e5f094764c42a590bb1c49b7b6f7c
[ "Apache-2.0" ]
83
2017-04-21T08:34:17.000Z
2022-03-13T09:41:26.000Z
slim/nets/vgg.py
blahster/tf-models
eaa4a000ef8e5f094764c42a590bb1c49b7b6f7c
[ "Apache-2.0" ]
576
2017-04-20T15:07:30.000Z
2022-03-03T06:37:22.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
45.376426
84
0.663734
7968074a09567c96b6f25108448ed56100992810
1,905
py
Python
day03/python/subesokun/main.py
DEvHiII/aoc-2018
7f262984866bf6d8616e744d21c578edbde07978
[ "MIT" ]
17
2018-11-24T21:47:57.000Z
2021-12-05T18:06:27.000Z
day03/python/subesokun/main.py
DEvHiII/aoc-2018
7f262984866bf6d8616e744d21c578edbde07978
[ "MIT" ]
12
2018-11-28T20:42:30.000Z
2021-05-07T22:57:00.000Z
day03/python/subesokun/main.py
DEvHiII/aoc-2018
7f262984866bf6d8616e744d21c578edbde07978
[ "MIT" ]
17
2018-11-27T10:32:45.000Z
2018-12-16T23:51:55.000Z
fabric_piece_map = {} claim_overlap_map = {} def getClaimObject(claim_str): # Hopefully, faster than regex :o) parts = claim_str[1:].split(' ') claim_id = int(parts[0]) coords = parts[2][:-1].split(',') left_coord, top_coord = int(coords[0]), int(coords[1]) dimensions = parts[3].split('x') ...
37.352941
90
0.63727
796807e1b12244b90c36b6a12ee0102cbb05fffa
1,406
py
Python
worldometers/worldometers/spiders/countries.py
derekdyer0309/web_scraping_tests
ab8576b40f1cf6495816ab74095126e185b36e8f
[ "MIT" ]
null
null
null
worldometers/worldometers/spiders/countries.py
derekdyer0309/web_scraping_tests
ab8576b40f1cf6495816ab74095126e185b36e8f
[ "MIT" ]
null
null
null
worldometers/worldometers/spiders/countries.py
derekdyer0309/web_scraping_tests
ab8576b40f1cf6495816ab74095126e185b36e8f
[ "MIT" ]
null
null
null
import scrapy import logging class CountriesSpider(scrapy.Spider): name = 'countries' allowed_domains = ['www.worldometers.info'] start_urls = ['https://www.worldometers.info/world-population/population-by-country/'] def parse(self, response): countries = response.xpath("//td/a") for c...
38
138
0.613087
79680950fe809ef8c16b2d6dbc028b141c8f2aa8
10,091
py
Python
spark/pyspark/arctern_pyspark/_wrapper_func.py
cydrain/arctern
447de51faede01548fd4ce6dca2935ca3f9a5d17
[ "Apache-2.0" ]
1
2020-04-25T04:21:01.000Z
2020-04-25T04:21:01.000Z
spark/pyspark/arctern_pyspark/_wrapper_func.py
cydrain/arctern
447de51faede01548fd4ce6dca2935ca3f9a5d17
[ "Apache-2.0" ]
null
null
null
spark/pyspark/arctern_pyspark/_wrapper_func.py
cydrain/arctern
447de51faede01548fd4ce6dca2935ca3f9a5d17
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019-2020 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
31.145062
75
0.717471
7968097ec4f01c68675e0acac1f497cbcbdcc159
2,771
py
Python
RunBrutesacOnVideo.py
Elucidation/ChessboardDetect
a5d2a2c2ab2434e4e041b4f384f3cd7d6884d2c4
[ "MIT" ]
43
2016-10-28T02:13:26.000Z
2022-02-16T14:20:32.000Z
RunBrutesacOnVideo.py
AnkaChan/ChessboardDetect
a5d2a2c2ab2434e4e041b4f384f3cd7d6884d2c4
[ "MIT" ]
3
2016-11-15T19:04:46.000Z
2020-08-26T20:41:29.000Z
RunBrutesacOnVideo.py
AnkaChan/ChessboardDetect
a5d2a2c2ab2434e4e041b4f384f3cd7d6884d2c4
[ "MIT" ]
12
2018-08-22T22:33:21.000Z
2021-08-20T08:40:42.000Z
# coding=utf-8 import os import glob import PIL.Image import cv2 import skvideo.io import numpy as np import Brutesac def videostream(filename='carlsen_match.mp4', SAVE_FRAME=True): print("Loading video %s" % filename) vidstream = skvideo.io.vread(filename)#, num_frames=1000) print("Finished loading") print(vi...
28.56701
131
0.665464
79680a803afcebc896d3b8c8f93d9ebbd528951c
65,250
py
Python
scripts/mock_icd_generator.py
expipiplus1/Vulkan-Tools
0387f633882df56347c368149759b825ec55fd71
[ "Apache-2.0" ]
null
null
null
scripts/mock_icd_generator.py
expipiplus1/Vulkan-Tools
0387f633882df56347c368149759b825ec55fd71
[ "Apache-2.0" ]
null
null
null
scripts/mock_icd_generator.py
expipiplus1/Vulkan-Tools
0387f633882df56347c368149759b825ec55fd71
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 -i # # Copyright (c) 2015-2017 The Khronos Group Inc. # Copyright (c) 2015-2017 Valve Corporation # Copyright (c) 2015-2017 LunarG, Inc. # Copyright (c) 2015-2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
45.629371
233
0.670023
79680ad518ec0738d491dd256eeb2ee560a5290d
4,269
py
Python
sner/plugin/nmap/parser.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
9
2019-05-15T11:33:43.000Z
2022-02-17T04:05:28.000Z
sner/plugin/nmap/parser.py
bodik/sner4
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
1
2019-03-01T11:48:13.000Z
2019-03-01T11:48:13.000Z
sner/plugin/nmap/parser.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
3
2020-03-03T21:06:37.000Z
2021-01-11T14:40:56.000Z
# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file. """ parsers to import from agent outputs to storage """ import json import re import sys from datetime import datetime from pathlib import Path from pprint import pprint from time import time from zipfile import ZipFile import lib...
31.622222
111
0.60178
79680cdb47def4cc15318c67f1526394d65ed178
1,548
py
Python
setup.py
eivtho/PyLaia
2a7a6e2eeb9b5af68c0faed0c564b02063e72be0
[ "MIT" ]
89
2018-12-12T23:06:26.000Z
2022-02-03T09:04:21.000Z
setup.py
eivtho/PyLaia
2a7a6e2eeb9b5af68c0faed0c564b02063e72be0
[ "MIT" ]
30
2019-03-06T14:29:48.000Z
2022-03-16T14:53:43.000Z
setup.py
jpuigcerver/PyLaia
1b2e864247f1bfb8d95ac1910de9c52df71c017a
[ "MIT" ]
26
2018-12-13T17:48:19.000Z
2022-02-28T12:52:29.000Z
import os import setuptools DIR = os.path.dirname(os.path.abspath(__file__)) def get_requirements(): requirements_path = os.path.join(DIR, "requirements.txt") with open(requirements_path, encoding="utf-8") as f: return [line.strip() for line in f] def get_long_description(): readme_path = os.p...
30.352941
73
0.665375
79680da9347afc7fa5fe38c10db5059118d1104c
433
py
Python
snuba/utils/metrics/decorators.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
snuba/utils/metrics/decorators.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
snuba/utils/metrics/decorators.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
from functools import wraps from typing import Callable, TypeVar from snuba.utils.metrics.backends.abstract import MetricsBackend T = TypeVar("T") def track_calls( metrics: MetricsBackend, key: str, function: Callable[[], T] ) -> Callable[[], T]: """Tracks how frequently a function is called.""" @wrap...
20.619048
64
0.678984
79680de79635c6e039b857ce93f3edcec0582035
531
py
Python
26_SVMClasssification/main.py
ManMohan291/PyProgram
edcaa927bd70676bd14355acad7262ae2d32b8e5
[ "MIT" ]
2
2018-09-07T17:44:54.000Z
2018-09-07T17:44:57.000Z
26_SVMClasssification/main.py
ManMohan291/PyProgram
edcaa927bd70676bd14355acad7262ae2d32b8e5
[ "MIT" ]
null
null
null
26_SVMClasssification/main.py
ManMohan291/PyProgram
edcaa927bd70676bd14355acad7262ae2d32b8e5
[ "MIT" ]
null
null
null
import SVMClassification as C C.clearScreen() dataTraining1= C.loadData("dataTraining1.txt") X1=dataTraining1[:,0:2] y1=dataTraining1[:,2:3] dataTraining2= C.loadData("dataTraining2.txt") X2=dataTraining2[:,0:2] y2=dataTraining2[:,2:3] dataTraining3= C.loadData("dataTraining3.txt") X3=dataTraining3[:,0:2] y3=dataTrain...
21.24
46
0.749529
79680f334a45e33df5f60d72d30b825937eea985
115
py
Python
django_elastico_vuejs/apps.py
fatse/django-elasticsearch-vuejs
fb2b4589a2ebc2377a46566d7bfc49da98c6bc1d
[ "MIT" ]
null
null
null
django_elastico_vuejs/apps.py
fatse/django-elasticsearch-vuejs
fb2b4589a2ebc2377a46566d7bfc49da98c6bc1d
[ "MIT" ]
null
null
null
django_elastico_vuejs/apps.py
fatse/django-elasticsearch-vuejs
fb2b4589a2ebc2377a46566d7bfc49da98c6bc1d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DjangoElasticoVuejsConfig(AppConfig): name = 'django_elastico_vuejs'
19.166667
43
0.808696
7968102c11b7bd6041f531ae6da3fe5086d428cf
2,602
py
Python
runner.py
GuillaumeSachet/Deep-Deterministic-Policy-Gradient
210dd8dbcb3411c9f3bade0b5f39ce4210f818fb
[ "MIT" ]
null
null
null
runner.py
GuillaumeSachet/Deep-Deterministic-Policy-Gradient
210dd8dbcb3411c9f3bade0b5f39ce4210f818fb
[ "MIT" ]
null
null
null
runner.py
GuillaumeSachet/Deep-Deterministic-Policy-Gradient
210dd8dbcb3411c9f3bade0b5f39ce4210f818fb
[ "MIT" ]
null
null
null
import gym import time import numpy as np class Runner: def __init__(self, env_id, monitor_dir, max_timesteps=100000): self.monitor_dir = monitor_dir self.max_timesteps = max_timesteps self.env = gym.make(env_id) def run(self, agent, num_episodes,timestep, save): if save: ...
45.649123
117
0.541891
796810528f5bde55e6ef7a14b1c8c7f2e96c1a33
4,002
py
Python
numba/cuda/tests/cudapy/test_device_func.py
ARF1/numba
8a6d09b15f0090144161158d01550847f15fc1c8
[ "BSD-2-Clause" ]
1
2020-10-09T18:11:44.000Z
2020-10-09T18:11:44.000Z
numba/cuda/tests/cudapy/test_device_func.py
ARF1/numba
8a6d09b15f0090144161158d01550847f15fc1c8
[ "BSD-2-Clause" ]
1
2019-08-29T21:03:09.000Z
2019-08-29T21:04:26.000Z
numba/cuda/tests/cudapy/test_device_func.py
ARF1/numba
8a6d09b15f0090144161158d01550847f15fc1c8
[ "BSD-2-Clause" ]
1
2020-10-09T18:11:50.000Z
2020-10-09T18:11:50.000Z
import re import types import numpy as np from numba.cuda.testing import unittest, skip_on_cudasim, SerialMixin from numba import cuda, jit, int32 from numba.core.errors import TypingError class TestDeviceFunc(SerialMixin, unittest.TestCase): def test_use_add2f(self): @cuda.jit("float32(float32, float...
27.410959
77
0.577211
796810f4283f0bf3f96c7986f027f47d234a7424
2,266
py
Python
silx/io/nxdata/__init__.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
1
2016-10-26T11:05:46.000Z
2016-10-26T11:05:46.000Z
silx/io/nxdata/__init__.py
vallsv/silx
834bfe9272af99096faa360e1ad96291bf46a2ac
[ "CC0-1.0", "MIT" ]
7
2016-10-19T09:27:26.000Z
2020-01-24T13:26:56.000Z
silx/io/nxdata/__init__.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2018 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal #...
34.861538
79
0.704766
7968115b343ff1d7377e330e03e2424c3b8e1d6a
30,240
py
Python
pywebio/input.py
brumar/PyWebIO
1292fafe9908de1cc6ea75d8ee112b6f82bf5e8d
[ "MIT" ]
null
null
null
pywebio/input.py
brumar/PyWebIO
1292fafe9908de1cc6ea75d8ee112b6f82bf5e8d
[ "MIT" ]
null
null
null
pywebio/input.py
brumar/PyWebIO
1292fafe9908de1cc6ea75d8ee112b6f82bf5e8d
[ "MIT" ]
null
null
null
""" This module provides functions to get all kinds of input of user from the browser There are two ways to use the input functions, one is to call the input function alone to get a single input:: name = input("What's your name") print("Your name is %s" % name) The other is to use `input_group` to get multi...
47.102804
379
0.655258
796811fc229390ef5f994e0f2490a93098d5fcb9
813
py
Python
sbtc-django/myproject/boards/tests/test_view_home.py
rafaelmm82/learning
c8cd7408404dbbcc0af3ae0a18c6c311d4003269
[ "MIT" ]
null
null
null
sbtc-django/myproject/boards/tests/test_view_home.py
rafaelmm82/learning
c8cd7408404dbbcc0af3ae0a18c6c311d4003269
[ "MIT" ]
null
null
null
sbtc-django/myproject/boards/tests/test_view_home.py
rafaelmm82/learning
c8cd7408404dbbcc0af3ae0a18c6c311d4003269
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import resolve, reverse from ..models import Board from ..views import BoardListView class HomeTests(TestCase): def setUp(self): self.board = Board.objects.create(name='Django', description='Django board.') url = reverse('home') self.resp...
31.269231
85
0.712177
7968124aca1df5f99d6ccfbf6ef850d773f0f09d
8,103
py
Python
run_match.py
deepettas/google_aind_Adversarial_Game_Playing_Agent
49d5b93a5922c7cc28516ec2015cfbc07e5d0196
[ "MIT" ]
null
null
null
run_match.py
deepettas/google_aind_Adversarial_Game_Playing_Agent
49d5b93a5922c7cc28516ec2015cfbc07e5d0196
[ "MIT" ]
null
null
null
run_match.py
deepettas/google_aind_Adversarial_Game_Playing_Agent
49d5b93a5922c7cc28516ec2015cfbc07e5d0196
[ "MIT" ]
null
null
null
############################################################################### # YOU DO NOT NEED TO MODIFY THIS FILE # ############################################################################### import argparse import logging import math import os import random import textwr...
41.13198
98
0.632729
79681423278e91e9efc7b271e48af9cbf296e962
513
py
Python
module1-web-application-development-with-flask/twitoff/app.py
ianforrest11/DS-Unit-3-Sprint-3-Productization-and-Cloud
8f85547b9543641635eac533ad168fcc18131c1e
[ "MIT" ]
null
null
null
module1-web-application-development-with-flask/twitoff/app.py
ianforrest11/DS-Unit-3-Sprint-3-Productization-and-Cloud
8f85547b9543641635eac533ad168fcc18131c1e
[ "MIT" ]
null
null
null
module1-web-application-development-with-flask/twitoff/app.py
ianforrest11/DS-Unit-3-Sprint-3-Productization-and-Cloud
8f85547b9543641635eac533ad168fcc18131c1e
[ "MIT" ]
null
null
null
""" main application and routing logic for twitoff """ # import flask, 'DB' from .models folder from flask import Flask from .models import DB def create_app(): """Create and configure an instance of the Flask application.""" app = Flask(__name__) # vvvvv use sqlite database vvvvv app.config['SQLALCH...
23.318182
68
0.672515
79681452600a3c0e22cedb696c7131d4e378b621
230
py
Python
uninond/views/__init__.py
yeleman/uninond
0b130e68c6a0799d896f060cfc925b467b179fe6
[ "MIT" ]
null
null
null
uninond/views/__init__.py
yeleman/uninond
0b130e68c6a0799d896f060cfc925b467b179fe6
[ "MIT" ]
null
null
null
uninond/views/__init__.py
yeleman/uninond
0b130e68c6a0799d896f060cfc925b467b179fe6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu from __future__ import (unicode_literals, absolute_import, division, print_function) from uninond.views.dashboard import home
25.555556
58
0.66087
79681615b94b46fb1e92e063aa44e55b7af2e309
2,615
py
Python
openpype/tools/standalonepublish/widgets/widget_family_desc.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
null
null
null
openpype/tools/standalonepublish/widgets/widget_family_desc.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
null
null
null
openpype/tools/standalonepublish/widgets/widget_family_desc.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
null
null
null
import six from Qt import QtWidgets, QtCore, QtGui import qtawesome from . import FamilyRole, PluginRole class FamilyDescriptionWidget(QtWidgets.QWidget): """A family description widget. Shows a family icon, family name and a help description. Used in creator header. _________________ | ____ ...
27.239583
79
0.610325
796816775b881ac37794eb5b9aa54f7585b34bb4
11,797
py
Python
pybind/nos/v7_1_0/rbridge_id/route_map/content/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/rbridge_id/route_map/content/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/rbridge_id/route_map/content/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
57.828431
514
0.723998
796816ef1bd3352effcb5a3b699c7cf205725872
9,285
py
Python
code/tfomics/explain.py
p-koo/exponential_activations
7e48054b64a565364439c45932338a09eb2eb4d3
[ "MIT" ]
1
2021-09-18T04:09:07.000Z
2021-09-18T04:09:07.000Z
code/tfomics/explain.py
koo-lab/exponential_activations
9032a360c1abb0f07b824e3ce6d20707efe306fd
[ "MIT" ]
null
null
null
code/tfomics/explain.py
koo-lab/exponential_activations
9032a360c1abb0f07b824e3ce6d20707efe306fd
[ "MIT" ]
4
2020-08-03T02:08:42.000Z
2021-10-01T18:46:47.000Z
import numpy as np import pandas as pd import logomaker import matplotlib.pyplot as plt import tensorflow as tf tf.compat.v1.disable_eager_execution() from tensorflow import keras from tensorflow.keras import backend as K import tensorflow.compat.v1.keras.backend as K1 import shap def saliency(model, X, class_index=...
32.017241
109
0.579752
796817195f6a1efa50d7c52b64e7080673dbe9b1
37,879
py
Python
venv/Lib/site-packages/psutil/tests/__init__.py
Lneedy/pyBlobDemo
19ff1d9b5478f62bbc7f510bffa81adc7915a73b
[ "MIT" ]
2
2019-12-04T16:24:44.000Z
2020-04-06T21:49:34.000Z
venv/Lib/site-packages/psutil/tests/__init__.py
Lneedy/pyBlobDemo
19ff1d9b5478f62bbc7f510bffa81adc7915a73b
[ "MIT" ]
7
2020-02-12T03:06:52.000Z
2021-06-10T19:33:14.000Z
venv/Lib/site-packages/psutil/tests/__init__.py
Lneedy/pyBlobDemo
19ff1d9b5478f62bbc7f510bffa81adc7915a73b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Test utilities. """ from __future__ import print_function import atexit import contextlib import ctypes import errno import ...
31.382767
79
0.580797
796818f8bd37664dad9b9e26408327ff49d5b1e0
12,269
py
Python
spirecomm/communication/action.py
ysjin94/Slaying_the_Spire_AI
172b2e44b9da81f35cbdfa1ee0fd2a4ecbc66634
[ "MIT" ]
null
null
null
spirecomm/communication/action.py
ysjin94/Slaying_the_Spire_AI
172b2e44b9da81f35cbdfa1ee0fd2a4ecbc66634
[ "MIT" ]
null
null
null
spirecomm/communication/action.py
ysjin94/Slaying_the_Spire_AI
172b2e44b9da81f35cbdfa1ee0fd2a4ecbc66634
[ "MIT" ]
2
2020-07-13T18:21:46.000Z
2020-08-04T21:18:10.000Z
from spirecomm.spire.screen import ScreenType, RewardType class Action: """A base class for an action to take in Slay the Spire""" def __init__(self, command="state", requires_game_ready=True): self.command = command self.requires_game_ready = requires_game_ready def can_be_executed(self...
36.19174
150
0.673323
7968198707cc27bc51345cf5841e39e14f0636cd
527
py
Python
indicators/migrations/0070_indicator_indicator_key.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
null
null
null
indicators/migrations/0070_indicator_indicator_key.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
268
2020-03-31T15:46:59.000Z
2022-03-31T18:01:08.000Z
indicators/migrations/0070_indicator_indicator_key.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
1
2021-01-05T01:58:24.000Z
2021-01-05T01:58:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-04 20:06 from __future__ import unicode_literals from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('indicators', '0069_merge_20190821_1922'), ] operations = [ mig...
23.954545
101
0.643264
796819d84606469a89952ae451822650046047e3
868
py
Python
maio/models/Caption.py
jonmsawyer/maio
468fe495189d970ccc6ec01665865bbf2c6ec578
[ "MIT" ]
null
null
null
maio/models/Caption.py
jonmsawyer/maio
468fe495189d970ccc6ec01665865bbf2c6ec578
[ "MIT" ]
5
2016-09-22T23:17:40.000Z
2018-04-05T22:36:37.000Z
maio/models/Caption.py
jonmsawyer/maio
468fe495189d970ccc6ec01665865bbf2c6ec578
[ "MIT" ]
null
null
null
import uuid from django.db import models from django.db.models import Q from .Media import Media from .maiofields import FixedCharField #: Quick way of saying "NULL" for Django models NULL = {'null': True, 'blank': True} class Caption(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4) ...
29.931034
92
0.708525
79681a54928cded711894c2ad590d7a110634b4d
5,209
py
Python
src/nerven/CapturePanel.py
olorin/nerven
7f082854cb2b1d4545bd61d68229f15e1167e237
[ "MIT" ]
1
2017-09-04T18:19:44.000Z
2017-09-04T18:19:44.000Z
src/nerven/CapturePanel.py
olorin/nerven
7f082854cb2b1d4545bd61d68229f15e1167e237
[ "MIT" ]
null
null
null
src/nerven/CapturePanel.py
olorin/nerven
7f082854cb2b1d4545bd61d68229f15e1167e237
[ "MIT" ]
null
null
null
import os, os.path, datetime import wx from wx import calendar import writer from util import * from consts import * class CapturePanel(wx.Panel): def __init__(self, parent, epoc_mgr): wx.Panel.__init__(self, parent) self.epoc_mgr = epoc_mgr self.capture_path = None self.cur_dir =...
37.207143
105
0.582645
79681b633060e259e2c9f1c31eb2b4313a0c40fb
1,117
py
Python
apps/patrimonio/apps/ferramenta/tests/test_cadastro.py
mequetrefe-do-subtroco/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
1
2020-06-18T09:03:53.000Z
2020-06-18T09:03:53.000Z
apps/patrimonio/apps/ferramenta/tests/test_cadastro.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
33
2020-06-16T18:59:33.000Z
2021-08-12T21:33:17.000Z
apps/patrimonio/apps/ferramenta/tests/test_cadastro.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.contrib.auth.models import Group class YourTestClass(TestCase): def setUp(self) -> None: user = get_user_model() self.user = user.objects.create_user('temporary', 'temporary@gmail.com', 'temporary') ...
36.032258
93
0.700985
79681ba17d9163cf6b2f48fc7ea324a85fa51aae
24,065
py
Python
library/python/testing/yatest_common/yatest/common/process.py
wingrime/catboost
5592b3fd25e4c6377414cad5aedd2939d92c3741
[ "Apache-2.0" ]
null
null
null
library/python/testing/yatest_common/yatest/common/process.py
wingrime/catboost
5592b3fd25e4c6377414cad5aedd2939d92c3741
[ "Apache-2.0" ]
null
null
null
library/python/testing/yatest_common/yatest/common/process.py
wingrime/catboost
5592b3fd25e4c6377414cad5aedd2939d92c3741
[ "Apache-2.0" ]
1
2019-02-01T12:17:04.000Z
2019-02-01T12:17:04.000Z
# coding: utf-8 import os import re import sys import time import types import signal import shutil import logging import tempfile import subprocess import errno import cores import runtime import path import environment MAX_OUT_LEN = 1000 * 1000 # 1 mb MAX_MESSAGE_LEN = 1500 SANITIZER_ERROR_PATTERN = r": ([A-Z][\...
38.940129
194
0.621567
79681be071e2a593409fa14183654f66270f24d0
47
py
Python
sk_dsp_comm/sdr_helper/__init__.py
chiranthsiddappa/sdr_helper
4b9f8762a23642109c83881dfc417373251be2ca
[ "BSD-2-Clause" ]
2
2020-08-27T10:56:29.000Z
2022-03-14T21:56:03.000Z
sk_dsp_comm/sdr_helper/__init__.py
chiranthsiddappa/sdr_helper
4b9f8762a23642109c83881dfc417373251be2ca
[ "BSD-2-Clause" ]
3
2020-03-21T17:07:19.000Z
2020-07-20T05:27:43.000Z
sk_dsp_comm/sdr_helper/__init__.py
chiranthsiddappa/sdr_helper
4b9f8762a23642109c83881dfc417373251be2ca
[ "BSD-2-Clause" ]
2
2020-07-19T03:30:18.000Z
2021-04-02T10:58:01.000Z
from . sdr_helper import * from . import rtlsdr
23.5
26
0.765957
79681cfd216e31e1d8fedc49993b044ec5a70c3b
19,888
py
Python
dev_code/demo_color_seg.py
Computational-Plant-Science/smart
852f9651555cc24ff3603b5b44937bf07ffe9480
[ "BSD-3-Clause" ]
3
2020-11-23T18:41:21.000Z
2020-11-24T22:13:06.000Z
dev_code/demo_color_seg.py
Computational-Plant-Science/smart
852f9651555cc24ff3603b5b44937bf07ffe9480
[ "BSD-3-Clause" ]
3
2020-11-23T17:03:31.000Z
2021-04-29T20:07:27.000Z
dev_code/demo_color_seg.py
Computational-Plant-Science/spg
852f9651555cc24ff3603b5b44937bf07ffe9480
[ "BSD-3-Clause" ]
null
null
null
''' Name: color_segmentation.py Version: 1.0 Summary: K-means color clustering based segmentation. This is achieved by converting the source image to a desired color space and running K-means clustering on only the desired channels, with the pixels being grouped into a desired number ...
30.224924
273
0.617508
79681d940c827fd893abc0da5d50d404598bd186
270
py
Python
apps/webapp/migrations/0011_merge_20201023_1257.py
garrisok/gffa
0b25bedf3ec8d36cbc8f588cd366ec8fa17c23c3
[ "MIT" ]
1
2021-03-04T21:27:10.000Z
2021-03-04T21:27:10.000Z
apps/webapp/migrations/0011_merge_20201023_1257.py
garrisok/gffa
0b25bedf3ec8d36cbc8f588cd366ec8fa17c23c3
[ "MIT" ]
null
null
null
apps/webapp/migrations/0011_merge_20201023_1257.py
garrisok/gffa
0b25bedf3ec8d36cbc8f588cd366ec8fa17c23c3
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-10-23 16:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('webapp', '0007_auto_20201007_1725'), ('webapp', '0010_remove_person_owner'), ] operations = [ ]
18
47
0.648148
79681dae91801aa85b6fd4066f5a3c0700b38ba7
3,660
py
Python
pipeline/contrib/external_plugins/tests/mock_settings.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
55
2021-09-07T11:50:35.000Z
2022-03-23T13:19:38.000Z
pipeline/contrib/external_plugins/tests/mock_settings.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
64
2021-09-07T12:04:12.000Z
2022-03-29T03:47:18.000Z
pipeline/contrib/external_plugins/tests/mock_settings.py
wkma/bk-sops
8fb5609c0c4495c28d588fbafa9d9f5f2976929b
[ "Apache-2.0" ]
20
2021-09-07T11:52:08.000Z
2022-03-28T08:05:22.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
57.1875
119
0.849727
79681e815239e5469f4701292f015bcb3f4d6e5d
46,731
py
Python
shared/audit.py
anshubansal2000/cloudmapper
86340a345b33b1dd3d3d67cd9914cbc039b4647f
[ "BSD-3-Clause" ]
5,021
2018-02-20T14:27:33.000Z
2022-03-31T23:40:48.000Z
shared/audit.py
anshubansal2000/cloudmapper
86340a345b33b1dd3d3d67cd9914cbc039b4647f
[ "BSD-3-Clause" ]
724
2018-02-20T15:51:01.000Z
2022-03-24T20:40:23.000Z
shared/audit.py
anshubansal2000/cloudmapper
86340a345b33b1dd3d3d67cd9914cbc039b4647f
[ "BSD-3-Clause" ]
792
2018-02-20T16:21:43.000Z
2022-03-30T13:14:17.000Z
import json import yaml from os.path import exists import pyjq import traceback import re import pkgutil import importlib import inspect from logging import CRITICAL from logging import getLogger from policyuniverse.policy import Policy from netaddr import IPNetwork from shared.common import ( make_list, get_...
37.716707
135
0.518906
79681fb49dd52fc65eaa0df0ca95631d110705d4
11,902
py
Python
tests/hs2/test_hs2.py
AtScaleInc/Impala
1073a9108220faffe61c3bc9dff7a953adde12df
[ "Apache-2.0" ]
2
2017-05-30T16:47:31.000Z
2020-07-21T04:28:17.000Z
tests/hs2/test_hs2.py
AtScaleInc/Impala
1073a9108220faffe61c3bc9dff7a953adde12df
[ "Apache-2.0" ]
null
null
null
tests/hs2/test_hs2.py
AtScaleInc/Impala
1073a9108220faffe61c3bc9dff7a953adde12df
[ "Apache-2.0" ]
2
2019-06-08T23:27:36.000Z
2022-02-08T09:53:37.000Z
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
45.427481
90
0.782978
796820f5910ec0067d967fca3e29177cdc2f0863
443
py
Python
app_handlers/thread_kick_handler.py
kskarbinski/threads-api
c144c1cb51422095922310d278f80e4996c10ea0
[ "MIT" ]
null
null
null
app_handlers/thread_kick_handler.py
kskarbinski/threads-api
c144c1cb51422095922310d278f80e4996c10ea0
[ "MIT" ]
null
null
null
app_handlers/thread_kick_handler.py
kskarbinski/threads-api
c144c1cb51422095922310d278f80e4996c10ea0
[ "MIT" ]
null
null
null
from time import time from app_data.threads import users_threads class ThreadKickHandler(object): def post(self, thread_model, user_ids): for user_id in user_ids: # Remove user from thread thread_model.users.remove(user_id) users_threads[user_id].remove(thread_model) ...
24.611111
55
0.663657
796821185faa9be5ca17ab302105fbc6a49d62c2
3,342
py
Python
classification_model/config/core.py
Windact/classification_model
e42e8099069467eeb21f94f6777eb34e68906500
[ "MIT" ]
null
null
null
classification_model/config/core.py
Windact/classification_model
e42e8099069467eeb21f94f6777eb34e68906500
[ "MIT" ]
null
null
null
classification_model/config/core.py
Windact/classification_model
e42e8099069467eeb21f94f6777eb34e68906500
[ "MIT" ]
null
null
null
import pandas as pd import pathlib import typing as t from pydantic import BaseModel, validator from strictyaml import load, YAML import classification_model pd.options.display.max_rows = 10 pd.options.display.max_columns = 10 PACKAGE_ROOT = pathlib.Path(classification_model.__file__).resolve().parent TRAINED_MODE...
27.85
106
0.680431
7968224745f46cd31f47ac31d039c907fd035372
1,978
py
Python
repos/system_upgrade/el8toel9/actors/checkcpu/libraries/cpu.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
21
2018-11-20T15:58:39.000Z
2022-03-15T19:57:24.000Z
repos/system_upgrade/el8toel9/actors/checkcpu/libraries/cpu.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
732
2018-11-21T18:33:26.000Z
2022-03-31T16:16:24.000Z
repos/system_upgrade/el8toel9/actors/checkcpu/libraries/cpu.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
85
2018-11-20T17:55:00.000Z
2022-03-29T09:40:31.000Z
from leapp import reporting from leapp.exceptions import StopActorExecutionError from leapp.libraries.common.config import architecture from leapp.libraries.stdlib import api from leapp.models import CPUInfo SUPPORTED_MACHINE_TYPES = [3906, 3907, 8561, 8562] def process(): if not architecture.matches_architectu...
47.095238
103
0.664307
796823660593bc9ed5611fc0309416cd1a184327
2,904
py
Python
day_7_bags/rules.py
Akhilian/Advent-of-code-2020
a543884b0fe39f7ba96736398690664254e63142
[ "MIT" ]
null
null
null
day_7_bags/rules.py
Akhilian/Advent-of-code-2020
a543884b0fe39f7ba96736398690664254e63142
[ "MIT" ]
null
null
null
day_7_bags/rules.py
Akhilian/Advent-of-code-2020
a543884b0fe39f7ba96736398690664254e63142
[ "MIT" ]
null
null
null
import re from typing import List, \ Union, \ Set from common.file_reader import FileReader def _find_bags_colors(color: str, in_bag: Union[str, None], rules: dict, path: List[str] = []) -> Union[int, Set]: if in_bag is None: total = set() for bag_option in set(rules): path_ne...
29.632653
114
0.626722
796823b771c04b34e8c305239a94ad4741ad50e6
1,433
py
Python
artificial_bias_experiments/known_prop_scores/scar/experiment_running/run_exp_multiple_settings.py
ML-KULeuven/KBC-as-PU-Learning
a00f606bd40ca06af0a5627e65a4582859976918
[ "Apache-2.0" ]
4
2021-12-14T16:13:47.000Z
2022-01-21T13:14:14.000Z
artificial_bias_experiments/known_prop_scores/scar/experiment_running/run_exp_multiple_settings.py
ML-KULeuven/KBC-as-PU-Learning
a00f606bd40ca06af0a5627e65a4582859976918
[ "Apache-2.0" ]
null
null
null
artificial_bias_experiments/known_prop_scores/scar/experiment_running/run_exp_multiple_settings.py
ML-KULeuven/KBC-as-PU-Learning
a00f606bd40ca06af0a5627e65a4582859976918
[ "Apache-2.0" ]
null
null
null
from typing import List from artificial_bias_experiments.known_prop_scores.scar.experiment_core.run_exp_stub import \ run_single_experiment_setting_of_experiment_known_prop_scores_scar from artificial_bias_experiments.known_prop_scores.scar.experiment_info import \ KnownPropScoresSCARExperimentInfo def run_p...
39.805556
93
0.732031
796823ff0429f255570305806b57009ea76eb544
1,088
py
Python
src/oidcrp/service_factory.py
AntonLazovsky/JWTConnect-Python-OidcRP
8a0447287b428d40ad8189baf117951a4901e9c0
[ "Apache-2.0" ]
49
2020-01-31T01:05:09.000Z
2022-02-14T11:56:33.000Z
src/oidcrp/service_factory.py
AntonLazovsky/JWTConnect-Python-OidcRP
8a0447287b428d40ad8189baf117951a4901e9c0
[ "Apache-2.0" ]
25
2020-02-11T09:53:49.000Z
2022-03-05T14:35:25.000Z
src/oidcrp/service_factory.py
IdentityPython/oidcrp
cef27f13eeebcedf67651632615c8055d038cd7d
[ "Apache-2.0" ]
16
2018-06-22T07:07:27.000Z
2019-11-09T01:42:59.000Z
from glob import glob import inspect from os.path import basename from os.path import dirname from os.path import join import sys from oidcrp.service import Service def service_factory(req_name, module_dirs, **kwargs): pwd = dirname(__file__) if pwd not in sys.path: sys.path.insert(0, pwd) for d...
32.969697
75
0.517463
796824a5d7883114b4a84ffbca2d29038d49e65a
3,686
py
Python
DQM/Integration/python/clients/dt_dqm_sourceclient-live_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQM/Integration/python/clients/dt_dqm_sourceclient-live_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
DQM/Integration/python/clients/dt_dqm_sourceclient-live_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("DTDQM") #---------------------------- #### Event Source #---------------------------- # for live online DQM in P5 process.load("DQM.Integration.config.inputsource_cfi") # for testing in lxplus #process.load("DQM.Integration.config.fileinputsource_cfi") ...
38.8
131
0.684753
796824d52f7cbbcc00ba941b20aefebf42cf8a64
1,931
py
Python
python_modules/couchdbkit/__init__.py
interactiveinstitute/watthappened
0c7ab7a5ae7f7a0f567c32a524b3c27294d1233f
[ "MIT" ]
1
2015-05-17T04:25:48.000Z
2015-05-17T04:25:48.000Z
python_modules/couchdbkit/__init__.py
interactiveinstitute/watthappened
0c7ab7a5ae7f7a0f567c32a524b3c27294d1233f
[ "MIT" ]
null
null
null
python_modules/couchdbkit/__init__.py
interactiveinstitute/watthappened
0c7ab7a5ae7f7a0f567c32a524b3c27294d1233f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 - # # This file is part of couchdbkit released under the MIT license. # See the NOTICE for more information. from .version import version_info, __version__ from .resource import RequestFailed, CouchdbResource from .exceptions import InvalidAttachment, DuplicatePropertyError,\ BadValueError, Multi...
32.728814
95
0.755049
7968252227e08e7ce53bab907469c39ad76f2bc8
40,565
py
Python
tools/export/gnuarmeclipse/__init__.py
bulislaw/mbed-os
a514216c8bc59ec990292f80e0d4160eaa44cb1a
[ "Apache-2.0" ]
2
2019-05-14T22:09:42.000Z
2020-02-21T03:50:24.000Z
tools/export/gnuarmeclipse/__init__.py
MXCHIP/mbed-os-AZ3166
9c49258791d454c17f093b2b6c5a487319e4197b
[ "Apache-2.0" ]
1
2018-05-18T10:50:02.000Z
2018-05-18T10:50:02.000Z
tools/export/gnuarmeclipse/__init__.py
bulislaw/mbed-os
a514216c8bc59ec990292f80e0d4160eaa44cb1a
[ "Apache-2.0" ]
null
null
null
""" mbed SDK Copyright (c) 2011-2017 ARM Limited 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 wr...
38.089202
112
0.543153
7968267e4f402a9e689df89391443c700bebbb7e
2,439
py
Python
src/test_workflow/integ_test/integ_test_runner.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
src/test_workflow/integ_test/integ_test_runner.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
src/test_workflow/integ_test/integ_test_runner.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import abc import logging import os from pathlib import Path from manifests.component_manifest import Components from manifest...
42.051724
132
0.712177
79682730f31ac9cadf906ca6bd0da51eca40d1f9
4,474
py
Python
src/ggrc/utils/objects_cache.py
mrR2D2/ggrc-core
f4f92628de4490512fcc9511be28e6cf1b875e14
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/utils/objects_cache.py
mrR2D2/ggrc-core
f4f92628de4490512fcc9511be28e6cf1b875e14
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/utils/objects_cache.py
mrR2D2/ggrc-core
f4f92628de4490512fcc9511be28e6cf1b875e14
[ "ECL-2.0", "Apache-2.0" ]
1
2020-02-13T12:32:45.000Z
2020-02-13T12:32:45.000Z
# Copyright (C) 2019 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Functionality for caching db data for GGRC objects.""" from collections import defaultdict import logging import sqlalchemy as sa from ggrc import db from ggrc.models import all_models from ggrc.utils i...
31.957143
78
0.679481
7968282bd3800c499fc2e55292fde3b8bca0a264
701
py
Python
tests/test_rpc.py
geometry-labs/icon-network-exporter
7035fad23692be103bb44806242ad76f61f85daf
[ "MIT" ]
null
null
null
tests/test_rpc.py
geometry-labs/icon-network-exporter
7035fad23692be103bb44806242ad76f61f85daf
[ "MIT" ]
1
2021-05-22T22:27:31.000Z
2021-05-22T23:00:47.000Z
tests/test_rpc.py
geometry-labs/icon-network-exporter
7035fad23692be103bb44806242ad76f61f85daf
[ "MIT" ]
null
null
null
import requests def test_get_preps(): payload = { "jsonrpc": "2.0", "id": 1234, "method": "icx_call", "params": { "to": "cx0000000000000000000000000000000000000000", "dataType": "call", "data": { "method": "getPReps", ...
24.172414
63
0.453638
7968289c048711797481539ac8ceffb604c5b190
10,598
py
Python
roles/models/third_party/auto_augment/policies.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
roles/models/third_party/auto_augment/policies.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
7
2020-11-13T17:50:07.000Z
2022-02-10T02:17:14.000Z
roles/models/third_party/auto_augment/policies.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
# Copyright 2018 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
54.348718
82
0.42725
79682a4f8536318e88f46dfaa1303417fa70cafc
4,175
py
Python
oldcode/ecoli_model.py
eladnoor/small-molecule-regulation
83127f20859093a06ee493128d672ac7428cec83
[ "MIT" ]
3
2018-03-29T12:14:05.000Z
2021-03-22T09:04:22.000Z
oldcode/ecoli_model.py
eladnoor/small-molecule-regulation
83127f20859093a06ee493128d672ac7428cec83
[ "MIT" ]
9
2016-05-30T16:43:21.000Z
2017-03-17T13:15:02.000Z
oldcode/ecoli_model.py
eladnoor/small-molecule-regulation
83127f20859093a06ee493128d672ac7428cec83
[ "MIT" ]
1
2021-03-22T09:04:26.000Z
2021-03-22T09:04:26.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 5 11:27:17 2016 @author: noore """ import os import json import settings import pandas as pd import numpy as np from pulp import LpProblem, LpVariable, lpSum, LpMinimize, LpMaximize, LpStatusOptimal, solvers, value class EcoliModel(object): PULP_SOLVER = None ...
40.144231
102
0.604551
79682a64e88243d4149b6dd02b7cfa3a4ea3c9bf
8,049
py
Python
cryptoapis/model/list_hd_walletx_pub_y_pub_z_pub_transactions_response_data.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
cryptoapis/model/list_hd_walletx_pub_y_pub_z_pub_transactions_response_data.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
cryptoapis/model/list_hd_walletx_pub_y_pub_z_pub_transactions_response_data.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
1
2021-07-21T03:35:18.000Z
2021-07-21T03:35:18.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
42.81383
484
0.612001
79682b31e53418e951248e546359e43718d580df
1,915
py
Python
algorithmic_efficiency/workloads/ogbg/ogbg_jax/models.py
ClashLuke/algorithmic-efficiency
1ecb4f5db1eea7b02d52a58d77ddf38278afc66b
[ "Apache-2.0" ]
2
2022-01-22T19:13:00.000Z
2022-02-03T11:08:56.000Z
algorithmic_efficiency/workloads/ogbg/ogbg_jax/models.py
ClashLuke/algorithmic-efficiency
1ecb4f5db1eea7b02d52a58d77ddf38278afc66b
[ "Apache-2.0" ]
null
null
null
algorithmic_efficiency/workloads/ogbg/ogbg_jax/models.py
ClashLuke/algorithmic-efficiency
1ecb4f5db1eea7b02d52a58d77ddf38278afc66b
[ "Apache-2.0" ]
null
null
null
# Forked from the init2winit implementation here # https://github.com/google/init2winit/blob/master/init2winit/model_lib/gnn.py. from typing import Tuple from flax import linen as nn import jax.numpy as jnp import jraph def _make_embed(latent_dim): def make_fn(inputs): return nn.Dense(features=latent_dim)(inp...
27.357143
80
0.711227
79682d8a7c729bdcea6526936def69aed33ddffc
16,912
py
Python
features/steps/steps.py
cbizon/translator-testing-framework
87f1768c65dcfab2a32af6afdc86bcc44632193e
[ "BSD-3-Clause" ]
null
null
null
features/steps/steps.py
cbizon/translator-testing-framework
87f1768c65dcfab2a32af6afdc86bcc44632193e
[ "BSD-3-Clause" ]
null
null
null
features/steps/steps.py
cbizon/translator-testing-framework
87f1768c65dcfab2a32af6afdc86bcc44632193e
[ "BSD-3-Clause" ]
null
null
null
import jsonpath_rw import logging import requests import json import pandas as pd import sys from behave import given, when, then from contextlib import closing from reasoner_diff.test_robokop import answer as robokop_answer from reasoner_diff.test_robokop import question as robokop_question from reasoner_diff.test_rob...
36.845316
120
0.688801
79682e6cd66a5fe01f827ad086f33c2d02cfdfb0
3,425
py
Python
afterglow_core/models/data_files.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-05-24T15:12:07.000Z
2022-02-17T19:58:16.000Z
afterglow_core/models/data_files.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
1
2022-02-27T03:01:06.000Z
2022-02-27T03:01:06.000Z
afterglow_core/models/data_files.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-06-08T18:16:40.000Z
2021-07-09T14:19:49.000Z
""" Afterglow Core: data file and session models """ from datetime import datetime from typing import Any, Dict as TDict, List as TList, Optional from marshmallow.fields import Dict, Integer, List, Nested, String from ..schemas import AfterglowSchema, Boolean, DateTime __all__ = ['DataFile', 'Session'] class Dat...
39.825581
79
0.687299
79683129dfa3198374f8894b5ce2cae5c6261b76
1,191
py
Python
entity.py
329124/PyCE
e770fd498af56b82a1da47b163f923e374abe4af
[ "MIT" ]
null
null
null
entity.py
329124/PyCE
e770fd498af56b82a1da47b163f923e374abe4af
[ "MIT" ]
null
null
null
entity.py
329124/PyCE
e770fd498af56b82a1da47b163f923e374abe4af
[ "MIT" ]
null
null
null
class Entity: def __init__(self, window, x = 0, y = 0): self.x = x self.y = y self.window = window self.window.addEntity(self) self.components = [] def translate(self, dx, dy): self.x = self.x + dx self.y = self.y + dy def updateComponents(self): ...
32.189189
145
0.61461
7968318bd6141e4072255c3562746c047dd4f6db
794
py
Python
scripts/Youtube_downloader.py
arifulhaqueuc/python-algorithm-excersice
7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e
[ "MIT" ]
null
null
null
scripts/Youtube_downloader.py
arifulhaqueuc/python-algorithm-excersice
7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e
[ "MIT" ]
4
2018-05-16T23:06:49.000Z
2018-10-26T22:47:52.000Z
scripts/Youtube_downloader.py
arifulhaqueuc/python-algorithm-excersice
7f2c93be7f87cbe2a8527f4edbf6c45f01e0597e
[ "MIT" ]
null
null
null
'''Make a Python script which downloads the You tube video. The video should be saved for future use.''' from urllib2 import urlopen from urlparse import unquote import re url ='https://www.youtube.com/watch?v=Wt1wFf53e2o' response = urlopen(url) content = response.read() direct_urls = re.findall(r'"url_en...
26.466667
166
0.707809
796831a767a4f3c7c897edd923865de3c6a8bf8c
5,406
py
Python
bin/Python27/Lib/site-packages/logilab/common/__init__.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
2
2017-07-05T09:57:33.000Z
2017-11-14T23:05:53.000Z
bin/Python27/Lib/site-packages/logilab/common/__init__.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
27
2017-04-01T15:06:36.000Z
2021-02-08T20:19:58.000Z
env/lib/python3.4/site-packages/logilab/common/__init__.py
tlksio/tlksio
f62f86972ba547bc18a84a83fc74db7a2c0de916
[ "MIT" ]
1
2022-02-09T15:49:18.000Z
2022-02-09T15:49:18.000Z
# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of logilab-common. # # logilab-common is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as publ...
29.221622
82
0.635405
796832284ec5beb0d93e3de2098cee7d04cbed89
18,718
py
Python
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
examples/connections.py
Thinker83/remote-computer-manager
1ea8353e77fc13a98625d744162f789503a8f400
[ "MIT" ]
null
null
null
from computer_communication_framework.base_connection import Connection import subprocess import re import datetime class BasePbs(Connection): """ This is meant to be a template to create a connection object for a standard PBS/TORQUE cluster. This inherits from the base_connect.Connection class in base_connecti...
76.713115
884
0.678865
79683238dfe8fca5ef60a4deaccaca16e0179b8b
13,626
py
Python
envs/__init__.py
Miffyli/rl-action-space-shaping
43294caa755f201ef33efd22a25aa566fcc6d42f
[ "MIT" ]
20
2020-05-26T09:58:21.000Z
2022-03-10T18:57:52.000Z
envs/__init__.py
Miffyli/rl-action-space-shaping
43294caa755f201ef33efd22a25aa566fcc6d42f
[ "MIT" ]
2
2021-03-05T06:40:54.000Z
2021-04-11T11:35:14.000Z
envs/__init__.py
Miffyli/rl-action-space-shaping
43294caa755f201ef33efd22a25aa566fcc6d42f
[ "MIT" ]
1
2021-06-08T15:41:40.000Z
2021-06-08T15:41:40.000Z
import os from gym.envs.registration import register from .get_to_goal_continuous import GetToGoalContinuous from .vizdoom_environment import DoomEnvironment ObstacleTowerEnv = None try: from .obstacle_tower_env import ObstacleTowerEnv except Exception: print("[Warning] Could not import ObstacleTower env (is ...
32.061176
110
0.585865
7968336c180b51257ec10f08b11cf3085291a3b6
374
py
Python
ch1/Recursion_Powers/algorithm.py
omar659/Algorithms-Sequential-Parallel-Distributed
3543631139a20625f413cea2ba1f013f3a40d123
[ "MIT" ]
2
2020-02-19T09:27:20.000Z
2020-02-19T09:28:21.000Z
ch1/Recursion_Powers/algorithm.py
omar-3/Algorithms-Sequential-Parallel-Distributed
3543631139a20625f413cea2ba1f013f3a40d123
[ "MIT" ]
null
null
null
ch1/Recursion_Powers/algorithm.py
omar-3/Algorithms-Sequential-Parallel-Distributed
3543631139a20625f413cea2ba1f013f3a40d123
[ "MIT" ]
null
null
null
# # For me I'd use it instead ltr or rtl # it is much more clear and follow the # exact scheme as the recurrence relation itself # def recursion_pow(x, n): if n == 1: pow = x else: if not (n&1): #even pow = recursion_pow(x*x,n/2) else: pow = x*recursion_pow(x...
19.684211
48
0.566845