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
795c4f2aaa6dd09b023ba14a1aaf12c6886ff3d7
191
py
Python
images/__init__.py
otrenav/dkt-street-analysis
e112d2f5c1092a7c39a71d137c35ba61745af41c
[ "Apache-2.0" ]
null
null
null
images/__init__.py
otrenav/dkt-street-analysis
e112d2f5c1092a7c39a71d137c35ba61745af41c
[ "Apache-2.0" ]
null
null
null
images/__init__.py
otrenav/dkt-street-analysis
e112d2f5c1092a7c39a71d137c35ba61745af41c
[ "Apache-2.0" ]
null
null
null
from shared import print_ def image_profiles(**kwargs): print_("IMAGE PROFILES", title=True) print_(kwargs) raise NotImplementedError("image_profiles() is not yet implemented")
23.875
72
0.743455
795c4f4d9d1a1ed4220b87dd6f41160659c9ce94
8,610
py
Python
cartography/intel/aws/ec2/load_balancer_v2s.py
kevin-j-smith/cartography
23cfa9b88b626dc8a410d6a0363fa02410990c2e
[ "Apache-2.0" ]
null
null
null
cartography/intel/aws/ec2/load_balancer_v2s.py
kevin-j-smith/cartography
23cfa9b88b626dc8a410d6a0363fa02410990c2e
[ "Apache-2.0" ]
null
null
null
cartography/intel/aws/ec2/load_balancer_v2s.py
kevin-j-smith/cartography
23cfa9b88b626dc8a410d6a0363fa02410990c2e
[ "Apache-2.0" ]
null
null
null
import logging from typing import Dict from typing import List import boto3 import botocore import neo4j from .util import get_botocore_config from cartography.util import aws_handle_regions from cartography.util import run_cleanup_job from cartography.util import timeit logger = logging.getLogger(__name__) @timei...
36.794872
120
0.677236
795c503f2815baea93da6f4eec5140fa1b285588
1,025
py
Python
__init__.py
satishnarasimhan/marina
846067931f3bea6d8a686820bffdc5650891b176
[ "MIT" ]
null
null
null
__init__.py
satishnarasimhan/marina
846067931f3bea6d8a686820bffdc5650891b176
[ "MIT" ]
null
null
null
__init__.py
satishnarasimhan/marina
846067931f3bea6d8a686820bffdc5650891b176
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python3 import functions as f import phrases as ph # Initialization / Driver Code if __name__ == "__main__": f.speak("Hello there. This is Marina, your digital assistant. How can I be of help? What is your name?") person = f.get_audio() if pers...
25.625
109
0.527805
795c50408779bbc5c6365380cfa24f96405f9984
235
py
Python
examples/ehireps/testing.py
hanyas/reps
447c461b89dec516ce3368d841cfe9734be78199
[ "MIT" ]
8
2021-06-21T18:58:56.000Z
2021-12-13T09:47:41.000Z
examples/ehireps/testing.py
hanyas/reps
447c461b89dec516ce3368d841cfe9734be78199
[ "MIT" ]
null
null
null
examples/ehireps/testing.py
hanyas/reps
447c461b89dec516ce3368d841cfe9734be78199
[ "MIT" ]
1
2021-06-29T04:42:45.000Z
2021-06-29T04:42:45.000Z
from reps.ehireps import eHiREPS from reps.envs import Himmelblau ehireps = eHiREPS(func=Himmelblau(), nb_components=5, nb_episodes=2500, kl_bound=0.1) trace = ehireps.run(nb_iter=10, verbose=True)
23.5
51
0.67234
795c50799d6f8009bbf14c4a25c81033682fce62
1,027
py
Python
Bio/Align/Applications/__init__.py
amblina/biopython
5045a7a3e86d5b32e0eaab941ab35daac86c59f8
[ "PostgreSQL" ]
1
2018-12-27T08:43:52.000Z
2018-12-27T08:43:52.000Z
Bio/Align/Applications/__init__.py
amblina/biopython
5045a7a3e86d5b32e0eaab941ab35daac86c59f8
[ "PostgreSQL" ]
null
null
null
Bio/Align/Applications/__init__.py
amblina/biopython
5045a7a3e86d5b32e0eaab941ab35daac86c59f8
[ "PostgreSQL" ]
1
2018-12-27T08:43:42.000Z
2018-12-27T08:43:42.000Z
# Copyright 2009 by Peter Cock & Cymon J. Cox. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Alignment command line tool wrappers.""" from ._Muscle import MuscleCommandline...
36.678571
70
0.737098
795c508a32e6a55119a6144a8bcee344078b046e
1,731
py
Python
FourthDimViz/TwoDGL.py
Tellusionist/FourthDimViz
6f33882fe122a7f6d10195be4d6c30c2ee68b7e6
[ "MIT" ]
null
null
null
FourthDimViz/TwoDGL.py
Tellusionist/FourthDimViz
6f33882fe122a7f6d10195be4d6c30c2ee68b7e6
[ "MIT" ]
null
null
null
FourthDimViz/TwoDGL.py
Tellusionist/FourthDimViz
6f33882fe122a7f6d10195be4d6c30c2ee68b7e6
[ "MIT" ]
null
null
null
import pygame from OpenGL.GL import glTranslatef, glRotatef, glClear, glBegin, glEnd, GL_LINES, glVertex3fv, GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT from OpenGL.GLU import gluPerspective # setup 3D cube vertices vertices= ( ( 1, -1, -1 ), ( 1, 1, -1 ), (-1, 1, -1 ), (-1, -1, -1 ), ...
24.041667
135
0.510687
795c50ed8148173565af2c03ee7ac426ad83d76c
1,009
py
Python
ddosdb/website/urls.py
ddos-clearing-house/ddosdb
bf65d4649cd07d8b097b9dade59860465b0f3634
[ "MIT" ]
6
2019-05-22T11:15:48.000Z
2021-10-02T06:06:53.000Z
ddosdb/website/urls.py
ddos-clearing-house/ddosdb
bf65d4649cd07d8b097b9dade59860465b0f3634
[ "MIT" ]
13
2019-02-25T11:12:22.000Z
2022-01-08T18:16:25.000Z
ddosdb/website/urls.py
ddos-clearing-house/ddosdb
bf65d4649cd07d8b097b9dade59860465b0f3634
[ "MIT" ]
3
2020-09-10T10:14:37.000Z
2022-01-18T19:23:38.000Z
"""website URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
32.548387
77
0.704658
795c514dc559235b001399bd197e82322c9589f0
5,475
py
Python
export.py
sickpig/cashnodes
a7fd9d48a1507fa99182746663b98b39938219b9
[ "MIT" ]
null
null
null
export.py
sickpig/cashnodes
a7fd9d48a1507fa99182746663b98b39938219b9
[ "MIT" ]
null
null
null
export.py
sickpig/cashnodes
a7fd9d48a1507fa99182746663b98b39938219b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # export.py - Exports enumerated data for reachable nodes into a JSON file. # # Copyright (c) Addy Yeow Chin Heng <ayeowch@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (th...
32.205882
79
0.652785
795c51f8cff7e057b6c4872de079c179d61c4014
140
py
Python
configs/pspnet/pspnet_r101-d8_480x480_80k_pascal_context_59.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
configs/pspnet/pspnet_r101-d8_480x480_80k_pascal_context_59.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
27
2022-01-27T07:12:49.000Z
2022-03-31T04:31:13.000Z
configs/pspnet/pspnet_r101-d8_480x480_80k_pascal_context_59.py
weiyx16/mmsegmentation
6d35d76195f173fbc6b119a7d7815e67d78024c6
[ "Apache-2.0" ]
53
2022-01-18T11:21:43.000Z
2022-03-31T06:42:41.000Z
_base_ = './pspnet_r50-d8_480x480_80k_pascal_context_59.py' model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
46.666667
79
0.792857
795c523e43cc2c6f2a77898917a5173e9bbc2414
6,926
py
Python
Validation/Performance/scripts/cmsBenchmark.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
1
2019-03-09T19:47:49.000Z
2019-03-09T19:47:49.000Z
Validation/Performance/scripts/cmsBenchmark.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
null
null
null
Validation/Performance/scripts/cmsBenchmark.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
1
2019-04-03T19:23:27.000Z
2019-04-03T19:23:27.000Z
#!/usr/bin/env python """ Usage: ./cmsBenchmark.py [options] Options: --cpu=... specify the core on which to run the performance suite --cores=... specify the number of cores of the machine (can be used with 0 to stop cmsScimark from running on the other cores) -n ..., --numevts spe...
39.804598
356
0.657956
795c5353f5fb88ed8be964d8a4cdba5d5a7df434
4,321
py
Python
app/views/dashboard/leadership/index.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
app/views/dashboard/leadership/index.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
app/views/dashboard/leadership/index.py
Wern-rm/raton.by
68f862f2bc0551bf2327e9d6352c0cde93f45301
[ "MIT" ]
null
null
null
import os from flask import render_template, redirect, url_for, request, current_app from flask_login import login_required from app import db, logger from app.controllers.dashboard_controller import dashboard_controller from app.forms.dashboard_leaderships import LeadershipsForm, LeadershipsEditForm, LeadershipsEdit...
50.244186
146
0.625087
795c5487d67b341c74212287fba5cc9ec24a5c06
4,747
py
Python
indel_analysis/endogenous_comparisons/compute_overbeek_indel_profiles.py
kaskamal/SelfTarget
c0bff0f11f4e69bafd80a1fa4d36b0f9689b9af7
[ "MIT" ]
20
2018-08-27T01:27:02.000Z
2022-03-07T07:12:56.000Z
indel_analysis/endogenous_comparisons/compute_overbeek_indel_profiles.py
kaskamal/SelfTarget
c0bff0f11f4e69bafd80a1fa4d36b0f9689b9af7
[ "MIT" ]
6
2019-01-18T19:54:52.000Z
2021-03-19T23:56:28.000Z
indel_analysis/endogenous_comparisons/compute_overbeek_indel_profiles.py
kaskamal/SelfTarget
c0bff0f11f4e69bafd80a1fa4d36b0f9689b9af7
[ "MIT" ]
14
2018-10-12T21:31:31.000Z
2021-11-08T08:32:40.000Z
import io import sys from Bio import SeqIO import os import numpy as np import re import csv import Bio.Seq from selftarget.util import getIndelMapExe sys.path.append('../compute_indels') from compile_mapped_null_profiles import compileMappedNull, convertToExpFile from reformat_indel_profile import reformatIndelProfi...
39.890756
156
0.641668
795c551f40c73343609e47d9cdbeef17bf38f4ae
3,122
py
Python
contrib/linearize/linearize-hashes.py
bitstakecore/bitstake
026c006222ca08a7137db7772961f2462ef45d03
[ "MIT" ]
null
null
null
contrib/linearize/linearize-hashes.py
bitstakecore/bitstake
026c006222ca08a7137db7772961f2462ef45d03
[ "MIT" ]
null
null
null
contrib/linearize/linearize-hashes.py
bitstakecore/bitstake
026c006222ca08a7137db7772961f2462ef45d03
[ "MIT" ]
null
null
null
#!/usr/bin/python # # linearize-hashes.py: List blocks in a linear, no-fork version of the chain. # # Copyright (c) 2013-2014 The Bitcoin developers # Copyright (c) 2015-2018 The PIVX developers # Copyright (c) 2018 The BS developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING...
26.913793
90
0.684497
795c55357c48663324c243543889f9db66f71765
218
py
Python
PyOpenWorm/data_trans/__init__.py
jaideep-seth/PyOpenWorm
c36baeda9590334ba810296934973da34f0eab78
[ "MIT" ]
1
2019-03-22T12:02:36.000Z
2019-03-22T12:02:36.000Z
PyOpenWorm/data_trans/__init__.py
BioComSoftware/PyOpenWorm
32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f
[ "MIT" ]
1
2015-05-23T19:26:57.000Z
2015-05-26T02:04:43.000Z
PyOpenWorm/data_trans/__init__.py
BioComSoftware/PyOpenWorm
32084f3570b4ea7fbdb1a4d20bd469d4af6ab28f
[ "MIT" ]
1
2015-06-21T17:34:15.000Z
2015-06-21T17:34:15.000Z
''' Data translators Some `DataSource` and `DataTranslator` types. Some deal with generic file types (e.g., comma-separated values) while others are specific to the format of a kind of file housed in PyOpenWorm. '''
27.25
116
0.756881
795c5537f18a2ffec5aa30a0003494b426a7d62d
14,182
py
Python
airflow_dbt_python/operators/dbt.py
apisarenco/airflow-dbt-python
de6ab08408b7acd3f9c6eb5ccbf32df8b1103291
[ "MIT" ]
null
null
null
airflow_dbt_python/operators/dbt.py
apisarenco/airflow-dbt-python
de6ab08408b7acd3f9c6eb5ccbf32df8b1103291
[ "MIT" ]
null
null
null
airflow_dbt_python/operators/dbt.py
apisarenco/airflow-dbt-python
de6ab08408b7acd3f9c6eb5ccbf32df8b1103291
[ "MIT" ]
null
null
null
from __future__ import annotations import datetime as dt from dataclasses import asdict, is_dataclass from pathlib import Path from tempfile import NamedTemporaryFile, TemporaryDirectory from typing import Any, Optional, Union import dbt.flags as flags from airflow import AirflowException from airflow.models.baseoper...
30.63067
88
0.590396
795c55fbef1712060b8c3014d53d8d0e07fb77d6
7,913
py
Python
python/GafferSceneTest/SetAlgoTest.py
ivanimanishi/gaffer
7cfd79d2f20c25ed1d680730de9d6a2ee356dd4c
[ "BSD-3-Clause" ]
1
2019-08-02T16:49:59.000Z
2019-08-02T16:49:59.000Z
python/GafferSceneTest/SetAlgoTest.py
rkoschmitzky/gaffer
ec6262ae1292767bdeb9520d1447d65a4a511884
[ "BSD-3-Clause" ]
2
2017-08-23T21:35:45.000Z
2018-01-29T08:59:33.000Z
python/GafferSceneTest/SetAlgoTest.py
rkoschmitzky/gaffer
ec6262ae1292767bdeb9520d1447d65a4a511884
[ "BSD-3-Clause" ]
1
2020-12-21T12:33:49.000Z
2020-12-21T12:33:49.000Z
########################################################################## # # Copyright (c) 2017, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
47.668675
167
0.671174
795c562478cbd534b60a7df58f11dc300fed9342
2,136
py
Python
app.py
sewon0918/pj4
144996e7f99e7639f1fffb34770ab9713307428d
[ "MIT" ]
null
null
null
app.py
sewon0918/pj4
144996e7f99e7639f1fffb34770ab9713307428d
[ "MIT" ]
null
null
null
app.py
sewon0918/pj4
144996e7f99e7639f1fffb34770ab9713307428d
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import pickle import numpy #import torch from game import Board, Game from mcts_pure import MCTSPlayer as MCTS_Pure from mcts_alphaZero import MCTSPlayer from collections import OrderedDict from policy_value_net_numpy import PolicyValueNetNumpy # from policy_value_net_...
31.880597
125
0.692416
795c5632ffe8f88e9d41b52932c34b5ac2538826
188,338
py
Python
yt_dlp/utils.py
TpmKranz/yt-dlp
182b6ae8a6b12ad49f2fa880f8db436f9a79a8ba
[ "Unlicense" ]
5
2021-08-24T17:08:12.000Z
2022-03-03T13:06:09.000Z
yt_dlp/utils.py
ZizzyDizzyMC/yt-dlp
5483c29b3a6ba527375c8deb02905c0d16e252ef
[ "Unlicense" ]
null
null
null
yt_dlp/utils.py
ZizzyDizzyMC/yt-dlp
5483c29b3a6ba527375c8deb02905c0d16e252ef
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals import base64 import binascii import calendar import codecs import collections import contextlib import ctypes import datetime import email.utils import email.header import errno import functools import gzip import imp import io import ite...
29.990127
282
0.518456
795c567ca08b4801dbbeefb3cae034edd19fb119
3,406
py
Python
app/migrations/0001_initial.py
rahulraj6000/E-commerce
383776d7a1ffbfe3aa0e75d7f2a59c96c95756b4
[ "MIT" ]
null
null
null
app/migrations/0001_initial.py
rahulraj6000/E-commerce
383776d7a1ffbfe3aa0e75d7f2a59c96c95756b4
[ "MIT" ]
null
null
null
app/migrations/0001_initial.py
rahulraj6000/E-commerce
383776d7a1ffbfe3aa0e75d7f2a59c96c95756b4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-06-29 05:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
53.21875
315
0.592777
795c5748dbbb5ccb628e757c4e0222014859de33
754
py
Python
1423. Maximum Points You Can Obtain from Cards/solution1.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
1423. Maximum Points You Can Obtain from Cards/solution1.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
1423. Maximum Points You Can Obtain from Cards/solution1.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
from typing import List class Solution: def maxScore(self, cardPoints: List[int], k: int) -> int: total = sum(cardPoints) k = len(cardPoints) - k if k == 0: return total # Now we transfer the problem to k sliding window, return the min sum ans = sum(cardPoints[0:k...
30.16
77
0.55305
795c57e4813ed3173b8c2d7c2c8f42550fdc7e8f
5,270
py
Python
tests/test_mpcdata.py
matthewjohnpayne/MPCData
bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4
[ "MIT" ]
null
null
null
tests/test_mpcdata.py
matthewjohnpayne/MPCData
bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4
[ "MIT" ]
null
null
null
tests/test_mpcdata.py
matthewjohnpayne/MPCData
bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4
[ "MIT" ]
null
null
null
# mpcformat/tests/test_mpcdata.py # import pytest # Third-party imports import json import os # Import other required local modules/functions import mpcdata.params as params # Import the specific package/module/function we are testing import mpcdata.mpcdata as mpcdata ''' def test_MPCMasterFile(): """ Want...
32.530864
102
0.681214
795c59f2f9d584f1a8e618f6d2abc9aa870b8914
368
py
Python
tests/basics/testAssemblePerf.py
mjziebarth/gimli
196ac4d6dd67e0326cccc44a87b367f64051e490
[ "Apache-2.0" ]
3
2021-07-10T00:56:59.000Z
2022-02-17T12:43:38.000Z
tests/basics/testAssemblePerf.py
ivek1312/gimli
5fafebb7c96dd0e04e2616df402fa27a01609d63
[ "Apache-2.0" ]
null
null
null
tests/basics/testAssemblePerf.py
ivek1312/gimli
5fafebb7c96dd0e04e2616df402fa27a01609d63
[ "Apache-2.0" ]
1
2022-03-29T04:28:40.000Z
2022-03-29T04:28:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ pygimli integration function """ import pygimli as pg import numpy as np def test(N): x = np.linspace(0, 1, N) pg.tic() mesh = pg.createGrid(x, x, x) print(mesh) pg.toc() A = pg.RSparseMatrix() A.fillStiffnessMatrix(mesh) pg....
14.72
33
0.581522
795c5a1e4a99f841453046ff6c081a6953bc584e
4,449
py
Python
mqtt/mqtt_subscribe.py
TwilioDevEd/raspberry-pi-prog-wireless-demos
88b7489038d5fe9750ce19ecfa013a080efa3aa4
[ "MIT" ]
null
null
null
mqtt/mqtt_subscribe.py
TwilioDevEd/raspberry-pi-prog-wireless-demos
88b7489038d5fe9750ce19ecfa013a080efa3aa4
[ "MIT" ]
null
null
null
mqtt/mqtt_subscribe.py
TwilioDevEd/raspberry-pi-prog-wireless-demos
88b7489038d5fe9750ce19ecfa013a080efa3aa4
[ "MIT" ]
null
null
null
############################################## # Twilio MQTT Demo for Programmable Wireless # ############################################## from time import sleep from sys import exit from smbus import SMBus import json import paho.mqtt.client as mqtt ############################################## # Global variables ...
33.704545
91
0.557204
795c5b1d796295ec18835a39cd09dd7784e3fc93
3,745
py
Python
tests/wph_quijote/wph_syntheses/sufficient_stat.py
Eralys/pywph_dev
bb864050c73b168c32a59f37ac0aca71ff159aed
[ "BSD-3-Clause" ]
3
2021-04-05T12:24:03.000Z
2022-02-14T22:15:03.000Z
tests/wph_quijote/wph_syntheses/sufficient_stat.py
Eralys/pywph_dev
bb864050c73b168c32a59f37ac0aca71ff159aed
[ "BSD-3-Clause" ]
null
null
null
tests/wph_quijote/wph_syntheses/sufficient_stat.py
Eralys/pywph_dev
bb864050c73b168c32a59f37ac0aca71ff159aed
[ "BSD-3-Clause" ]
1
2022-02-03T16:44:35.000Z
2022-02-03T16:44:35.000Z
import torch from .utils import periodic_dis def compute_idx_of_sufficient_stat(L, J, dj, dl, dn): L2 = L * 2 idx_j1, idx_j2, idx_k1, idx_k2, idx_ell2, idx_dn1, idx_dn2 = [], [], [], [], [], [], [] idx_lists = (idx_j1, idx_j2, idx_k1, idx_k2, idx_ell2, idx_dn1, idx_dn2) # j1=j2, k1=0,1, k2=0 or 1 ...
39.421053
113
0.587717
795c5bb039808095c69d00d7c52105da832a37d2
21,077
py
Python
pysnmp/POWERSUPPLY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/POWERSUPPLY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/POWERSUPPLY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module POWERSUPPLY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/POWERSUPPLY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:32:54 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
124.715976
2,641
0.737866
795c5cc245391cb0719d1ff3b2475599fd251801
4,824
py
Python
timemachines/skatertools/evaluation/evaluators.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
253
2021-01-08T17:33:30.000Z
2022-03-21T17:32:36.000Z
timemachines/skatertools/evaluation/evaluators.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
65
2021-01-20T16:43:35.000Z
2022-03-30T19:07:22.000Z
timemachines/skatertools/evaluation/evaluators.py
iklasky/timemachines
1820fa9453d31d4daaeff75274a935c7455febe3
[ "MIT" ]
28
2021-02-04T14:58:30.000Z
2022-01-17T04:35:17.000Z
from timemachines.skatertools.data.synthetic import brownian_with_noise, brownian_with_exogenous from timemachines.skating import residuals, prior_with_sporadic_fit from timemachines.inclusion.sklearninclusion import using_sklearn from timemachines.inclusion.scipyinclusion import using_scipy import numpy as np from tim...
45.942857
187
0.692579
795c5cc631f00375a27f784611616ef675d75412
4,289
py
Python
mangopay/tasks.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
mangopay/tasks.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
mangopay/tasks.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from django.conf import settings from celery.task import task from celery.task import PeriodicTask from celery.schedules import crontab from celery.utils.log import get_task_logger from mangopaysdk.types.exceptions.responseexception import ResponseException from .constants im...
32.007463
81
0.691303
795c5d69a40a270002f5d14a01a6227991060ee2
2,782
py
Python
scripts/demo_mode.py
birlrobotics/baxter_demo_ui
ca1a9dd3921af4f9bb6cee35b7c8212771a71a96
[ "BSD-3-Clause" ]
null
null
null
scripts/demo_mode.py
birlrobotics/baxter_demo_ui
ca1a9dd3921af4f9bb6cee35b7c8212771a71a96
[ "BSD-3-Clause" ]
null
null
null
scripts/demo_mode.py
birlrobotics/baxter_demo_ui
ca1a9dd3921af4f9bb6cee35b7c8212771a71a96
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2014, Rethink Robotics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this li...
41.522388
77
0.71028
795c5e0eebd5790e712bf989f631b99e8c4833c9
2,238
py
Python
heap.py
Kingcitaldo125/PyHeap
41a6cb719b92311378eeaca23823c935459aba36
[ "Apache-2.0" ]
null
null
null
heap.py
Kingcitaldo125/PyHeap
41a6cb719b92311378eeaca23823c935459aba36
[ "Apache-2.0" ]
null
null
null
heap.py
Kingcitaldo125/PyHeap
41a6cb719b92311378eeaca23823c935459aba36
[ "Apache-2.0" ]
null
null
null
from math import inf class Heap(object): def __init__(self): self.arr = [] def getLeftChildIdx(self, idx): if idx < 0 or idx >= len(self.arr): return -1 return 2*idx+1 def getRightChildIdx(self, idx): if idx < 0 or idx >= len(self.arr): return -1 return 2*idx+2 def getParentIdx(s...
19.80531
75
0.597408
795c5f110d248676df06ecf04decced731a52947
3,682
py
Python
demos/common/python/models/segmentation.py
ermubuzhiming/open_model_zoo
d204db6ae8afcfb9c484047e538692c89d775bf1
[ "Apache-2.0" ]
1
2021-01-14T03:33:06.000Z
2021-01-14T03:33:06.000Z
demos/common/python/models/segmentation.py
ermubuzhiming/open_model_zoo
d204db6ae8afcfb9c484047e538692c89d775bf1
[ "Apache-2.0" ]
null
null
null
demos/common/python/models/segmentation.py
ermubuzhiming/open_model_zoo
d204db6ae8afcfb9c484047e538692c89d775bf1
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 Intel Corporation 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 wri...
35.747573
122
0.661597
795c5f32f656142b269c042545334a5a99dc9f43
3,180
py
Python
google/ads/google_ads/util.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/util.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/util.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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 applicable law or agreed to in writing, ...
29.444444
78
0.674214
795c5feae0377b5aa1556d88952283b6c346219e
4,143
py
Python
src/CalculatorTest.py
nt27web/calculator_NK
6b61e169a2223fee26a78dd8b3186c57800e4bd2
[ "MIT" ]
1
2020-11-03T05:57:48.000Z
2020-11-03T05:57:48.000Z
src/CalculatorTest.py
nt27web/calculator_NK
6b61e169a2223fee26a78dd8b3186c57800e4bd2
[ "MIT" ]
null
null
null
src/CalculatorTest.py
nt27web/calculator_NK
6b61e169a2223fee26a78dd8b3186c57800e4bd2
[ "MIT" ]
null
null
null
import unittest from Calculator.Calculator import Calculator from CsvReader.CsvReader import CsvReader class MyTestCase(unittest.TestCase): # default test def setUp(self) -> None: self.calculator = Calculator() # instance check test def test_instantiate_calculator(self): self.assert...
38.009174
94
0.68839
795c61cad986baa30e94ce4d7ce11f0a2af14d2d
642
py
Python
gcpds/filters/spatial_filters/CAR.py
FrankYesid/python-gcpds.filters
f16b1384fb7640320728959f6a1f0fb1410db9f3
[ "BSD-2-Clause" ]
null
null
null
gcpds/filters/spatial_filters/CAR.py
FrankYesid/python-gcpds.filters
f16b1384fb7640320728959f6a1f0fb1410db9f3
[ "BSD-2-Clause" ]
null
null
null
gcpds/filters/spatial_filters/CAR.py
FrankYesid/python-gcpds.filters
f16b1384fb7640320728959f6a1f0fb1410db9f3
[ "BSD-2-Clause" ]
null
null
null
# common average reference (CAR) def CAR(subjects): SubjectsCAR = subjects fil = len(subjects) for l in range(0,fil): ## 9 subject = subjects[l,0] fil = len(subject) SubjectCAR = subject for k in range(0, fil): ## 273 Sample = subject[k,0] SampleCAR =...
32.1
50
0.556075
795c61cef2f9336f1e4f602957aa26755a0b72c9
341
py
Python
dc_utils/settings/whitenoise.py
DemocracyClub/dc_django_utils
ced65815c5d7e65852ed79648546ec37bc41c4f0
[ "MIT" ]
null
null
null
dc_utils/settings/whitenoise.py
DemocracyClub/dc_django_utils
ced65815c5d7e65852ed79648546ec37bc41c4f0
[ "MIT" ]
13
2021-06-10T10:14:05.000Z
2022-02-10T10:37:03.000Z
dc_utils/settings/whitenoise.py
DemocracyClub/dc_django_utils
ced65815c5d7e65852ed79648546ec37bc41c4f0
[ "MIT" ]
null
null
null
def whitenoise_add_middleware(MIDDLEWARE): insert_after = "django.middleware.security.SecurityMiddleware" index = 0 MIDDLEWARE = list(MIDDLEWARE) if insert_after in MIDDLEWARE: index = MIDDLEWARE.index(insert_after) + 1 MIDDLEWARE.insert(index, "whitenoise.middleware.WhiteNoiseMiddleware") ...
37.888889
74
0.756598
795c61deaa89b4a0edca183ad2a27dc0c66d9311
15,362
py
Python
kwiklib/dataio/kwikloader.py
klusta-team/kwiklib
617a6ceff55957728c3dc94109b64e4c427429c2
[ "BSD-3-Clause" ]
7
2015-01-20T13:55:51.000Z
2018-02-06T09:31:21.000Z
kwiklib/dataio/kwikloader.py
klusta-team/kwiklib
617a6ceff55957728c3dc94109b64e4c427429c2
[ "BSD-3-Clause" ]
6
2015-01-08T18:13:53.000Z
2016-06-22T09:53:53.000Z
kwiklib/dataio/kwikloader.py
klusta-team/kwiklib
617a6ceff55957728c3dc94109b64e4c427429c2
[ "BSD-3-Clause" ]
8
2015-01-22T22:57:19.000Z
2020-03-19T11:43:56.000Z
"""This module provides utility classes and functions to load spike sorting data sets.""" # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import os import os.path import shutil import re from colle...
37.837438
149
0.622315
795c62eeb29f6d2d2e3e67921969c108b228e910
5,152
py
Python
interpretation_package/.ipynb_checkpoints/interpret_flair-checkpoint.py
krzysztoffiok/interpret-flair
2f1911213cfe78a41b5c176d1d4303ef888718b7
[ "MIT" ]
10
2020-12-18T03:22:31.000Z
2021-09-06T20:07:51.000Z
interpretation_package/.ipynb_checkpoints/interpret_flair-checkpoint.py
krzysztoffiok/interpret-flair
2f1911213cfe78a41b5c176d1d4303ef888718b7
[ "MIT" ]
7
2020-11-21T22:10:20.000Z
2021-05-13T12:45:19.000Z
interpretation_package/.ipynb_checkpoints/interpret_flair-checkpoint.py
krzysztoffiok/interpret-flair
2f1911213cfe78a41b5c176d1d4303ef888718b7
[ "MIT" ]
3
2021-05-13T07:52:49.000Z
2021-12-27T15:14:01.000Z
import torch import torch.nn as nn from flair.data import Sentence from captum.attr import ( LayerIntegratedGradients ) from captum.attr import visualization as viz def interpret_sentence(flair_model_wrapper, lig, sentence, target_label, visualization_list, n_steps=100, estimation_method="gausslegendre",intern...
40.566929
166
0.657026
795c6428e693a34b6ba5c1102787477fab08ea63
8,544
py
Python
nets/GC_GST.py
haoyanbin918/Group-Contextualization
aa59d9979f6f6578f143df48086260afdde65b86
[ "Apache-2.0" ]
4
2022-03-21T03:25:57.000Z
2022-03-23T13:07:22.000Z
nets/GC_GST.py
haoyanbin918/Group-Contextualization
aa59d9979f6f6578f143df48086260afdde65b86
[ "Apache-2.0" ]
1
2022-03-21T06:49:25.000Z
2022-03-21T07:47:54.000Z
nets/GC_GST.py
haoyanbin918/Group-Contextualization
aa59d9979f6f6578f143df48086260afdde65b86
[ "Apache-2.0" ]
1
2022-03-22T06:03:33.000Z
2022-03-22T06:03:33.000Z
import torch import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import torchvision.models as models from nets.Calibrator3D import GC_L33Dnb, GC_T13Dnb, GC_S23DDnb, GC_CLLDnb __all__ = ['ResNet', 'resnet50', 'resnet101','resnet152'] model_urls = { 'resnet18': 'https://download.pytorch.org...
34.451613
130
0.660229
795c6606c019a7661269455e17110a482e63c8c4
693
py
Python
01 List/Problems/02_separate_even_odd.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
null
null
null
01 List/Problems/02_separate_even_odd.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
null
null
null
01 List/Problems/02_separate_even_odd.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
1
2021-09-15T11:17:36.000Z
2021-09-15T11:17:36.000Z
from typing import List, Tuple # Approach 1 - Simpler def separateEvenOdd(inputList: List) -> Tuple: even = [] odd = [] for element in inputList: if element % 2 == 0: even.append(element) else: odd.append(element) return even, odd # Approach 2 - List Comprehen...
22.354839
74
0.636364
795c665c96357ffa519960db2f4b35dd09a33717
3,971
py
Python
skactiveml/utils/_aggregation.py
AlexandreAbraham/scikit-activeml
1e1f4615948501cb9c9559de2e94433f700b2b80
[ "BSD-3-Clause" ]
40
2020-09-22T00:50:52.000Z
2022-03-15T14:16:42.000Z
skactiveml/utils/_aggregation.py
AlexandreAbraham/scikit-activeml
1e1f4615948501cb9c9559de2e94433f700b2b80
[ "BSD-3-Clause" ]
161
2020-08-10T09:24:03.000Z
2022-03-29T13:39:46.000Z
skactiveml/utils/_aggregation.py
AlexandreAbraham/scikit-activeml
1e1f4615948501cb9c9559de2e94433f700b2b80
[ "BSD-3-Clause" ]
3
2021-11-15T09:10:59.000Z
2021-12-15T11:40:47.000Z
import numpy as np from ._label import ExtLabelEncoder, is_labeled from sklearn.utils import check_array, check_consistent_length def compute_vote_vectors(y, w=None, classes=None, missing_label=np.nan): """Counts number of votes per class label for each sample. Parameters ---------- y : array-like, ...
34.530435
80
0.639637
795c674cfb8299abe5633b42de3847a970b71d1a
2,158
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/16_features/numtrees_30/rule_19.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/16_features/numtrees_30/rule_19.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/16_features/numtrees_30/rule_19.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Time, obj[3]: Coupon, obj[4]: Coupon_validity, obj[5]: Gender, obj[6]: Age, obj[7]: Children, obj[8]: Education, obj[9]: Occupation, obj[10]: Income, obj[11]: Bar, obj[12]: Coffeehouse, obj[13]: Restaurant20to50, obj[14]: Direction_same, obj[15]: Dista...
37.206897
323
0.567655
795c67a360132e33635e369db036484e1bf509be
32,143
py
Python
nova-19.0.1/nova/tests/functional/api_sample_tests/test_servers.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
1
2019-04-22T06:25:26.000Z
2019-04-22T06:25:26.000Z
nova/tests/functional/api_sample_tests/test_servers.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
nova/tests/functional/api_sample_tests/test_servers.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
37.638173
79
0.593131
795c67d2421a273cab1c570b6a0a74aa56dc60d8
69
py
Python
VideoDownloader.py
zhuduan/youtube-dl-gui
77a1fe1d49a157e8f2a06f3d04a2b43d7d2cbbce
[ "Unlicense" ]
4
2018-12-12T07:53:41.000Z
2019-02-03T11:05:16.000Z
VideoDownloader.py
zhuduan/youtube-dl-gui
77a1fe1d49a157e8f2a06f3d04a2b43d7d2cbbce
[ "Unlicense" ]
null
null
null
VideoDownloader.py
zhuduan/youtube-dl-gui
77a1fe1d49a157e8f2a06f3d04a2b43d7d2cbbce
[ "Unlicense" ]
1
2019-02-10T08:54:00.000Z
2019-02-10T08:54:00.000Z
# -*- coding: utf-8 -*- import youtube_dl_gui youtube_dl_gui.main()
13.8
23
0.695652
795c680ab2684cf05ad3e71c9cb77a3a5a746f98
1,840
py
Python
dtree_visualization.py
parwisenlared/Churn_analysis
a2c0e36fa3b6d12cefced05bde7b922a05722f67
[ "MIT" ]
null
null
null
dtree_visualization.py
parwisenlared/Churn_analysis
a2c0e36fa3b6d12cefced05bde7b922a05722f67
[ "MIT" ]
null
null
null
dtree_visualization.py
parwisenlared/Churn_analysis
a2c0e36fa3b6d12cefced05bde7b922a05722f67
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report,confusion_matrix from sklearn.tree import DecisionTreeClassifier from IPython.display import Image from sklearn.externals.six import StringIO from sklearn.tree import export_graphviz import py...
38.333333
194
0.760326
795c684e755b76bc868038a9ecfc7eaa91e449f4
215
py
Python
7_Sarven_Desert/298-Odd_Sandstorm/odd_sandstorm.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
7_Sarven_Desert/298-Odd_Sandstorm/odd_sandstorm.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
7_Sarven_Desert/298-Odd_Sandstorm/odd_sandstorm.py
katitek/Code-Combat
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
[ "MIT" ]
null
null
null
everybody = ['Yetu', 'Tabitha', 'Rasha', 'Max', 'Yazul', 'Todd'] enemyIndex = 0 while enemyIndex < everybody.length: ogre = everybody[enemyIndex] hero.attack(ogre) enemyIndex += 2 hero.moveXY(35, 54)
21.5
65
0.651163
795c68d935f060555dbba4756549e650afc0c462
1,511
py
Python
mayan/apps/locales/apps.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/locales/apps.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/locales/apps.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
import logging from django.conf import settings from django.contrib.auth.signals import user_logged_in from django.db.models.signals import post_save from django.utils.translation import ugettext_lazy as _ from mayan.apps.common.apps import MayanAppConfig from mayan.apps.common.menus import menu_user from ...
30.836735
99
0.714097
795c6938c9f19246b74ce5384b7478525638a6a6
289
py
Python
sam/entrypoint.py
cssat/sam-iam
8ad7f67d19fda8b5b9c08e4d3bbb57d429c45fda
[ "MIT" ]
4
2019-06-17T20:54:03.000Z
2020-10-09T22:42:21.000Z
sam/entrypoint.py
cssat/sam-iam
8ad7f67d19fda8b5b9c08e4d3bbb57d429c45fda
[ "MIT" ]
1
2020-05-19T20:33:00.000Z
2020-05-20T23:32:50.000Z
sam/entrypoint.py
cssat/sam-iam
8ad7f67d19fda8b5b9c08e4d3bbb57d429c45fda
[ "MIT" ]
5
2019-06-18T19:11:18.000Z
2021-03-25T06:25:33.000Z
import click from .config.cmds import configure from .iam.cmds import iam @click.group() def cli(): """ Basic Setup of the Ping 2 Aws Federated Programmatic Access Creation via a manual or automated process. """ pass cli.add_command(configure) cli.add_command(iam)
18.0625
111
0.712803
795c6953575d993b2db6915a20faf673abae0c70
3,703
py
Python
waterbutler/providers/googledrive/metadata.py
alexschiller/waterbutler
24014d7705aca3e99a6565fc3b9b4075ec6ec563
[ "Apache-2.0" ]
null
null
null
waterbutler/providers/googledrive/metadata.py
alexschiller/waterbutler
24014d7705aca3e99a6565fc3b9b4075ec6ec563
[ "Apache-2.0" ]
null
null
null
waterbutler/providers/googledrive/metadata.py
alexschiller/waterbutler
24014d7705aca3e99a6565fc3b9b4075ec6ec563
[ "Apache-2.0" ]
null
null
null
from waterbutler.core import metadata from waterbutler.providers.googledrive import utils class BaseGoogleDriveMetadata(metadata.BaseMetadata): def __init__(self, raw, path): super().__init__(raw) self._path = path @property def provider(self): return 'googledrive' @propert...
23.436709
94
0.622198
795c6a899bbe1cf71c1fb301fe494ae122dbbb04
1,818
py
Python
config.py
trandangtien1122/react_flask_temp_1
13c45f1e85fc11f5d6e1cc98a7d558d7b346cdd7
[ "Apache-2.0" ]
6
2020-03-06T13:11:23.000Z
2021-04-15T05:07:43.000Z
config.py
trandangtien1122/react_flask_temp_1
13c45f1e85fc11f5d6e1cc98a7d558d7b346cdd7
[ "Apache-2.0" ]
1
2021-03-10T14:47:25.000Z
2021-03-10T14:47:25.000Z
config.py
trandangtien1122/react_flask_temp_1
13c45f1e85fc11f5d6e1cc98a7d558d7b346cdd7
[ "Apache-2.0" ]
3
2021-02-04T02:06:24.000Z
2021-06-07T18:35:24.000Z
from dotenv import load_dotenv from pytz import timezone import os DEFAULTS = { # TODO: remove unsed database "MYSQL_HOST": "localhost", "MYSQL_USERNAME": "myuser", "MYSQL_PASSWORD": "mypassword", "MYSQL_DATABASE": "mydatabase", "MONGO_URL": "mongodb://localhost:27017", "MONGO_DB": "mydata...
24.567568
109
0.643564
795c6c075d9007ecc111851fd4504f2bb903b35a
263
py
Python
School146/forms/album_form.py
mihdenis85/Synergy
8811530b7d45a07f9f1be3da9d1a714d5677c1f7
[ "MIT" ]
null
null
null
School146/forms/album_form.py
mihdenis85/Synergy
8811530b7d45a07f9f1be3da9d1a714d5677c1f7
[ "MIT" ]
null
null
null
School146/forms/album_form.py
mihdenis85/Synergy
8811530b7d45a07f9f1be3da9d1a714d5677c1f7
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import DataRequired class AlbumForm(FlaskForm): title = StringField('Название альбома', validators=[DataRequired()]) submit = SubmitField('Подтвердить')
32.875
72
0.798479
795c6c4a8279b0f4c33350f3854f79649570c0c2
1,042
py
Python
src/datamigration/azext_dms/vendored_sdks/datamigration/models/name_availability_request.py
rahulgouthamDOTgs/azure-cli-extensions
a1b1198431c25dd88a3f9894712dfc394bba1b19
[ "MIT" ]
null
null
null
src/datamigration/azext_dms/vendored_sdks/datamigration/models/name_availability_request.py
rahulgouthamDOTgs/azure-cli-extensions
a1b1198431c25dd88a3f9894712dfc394bba1b19
[ "MIT" ]
null
null
null
src/datamigration/azext_dms/vendored_sdks/datamigration/models/name_availability_request.py
rahulgouthamDOTgs/azure-cli-extensions
a1b1198431c25dd88a3f9894712dfc394bba1b19
[ "MIT" ]
null
null
null
# 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 ...
31.575758
76
0.571977
795c6c5c0d96d0539b9126c4a22a5711199aa564
193
py
Python
config.py
trevorstam/text-similarity
5a549ef5900ca2522ddfd5ee7accf3358d10ca22
[ "MIT" ]
null
null
null
config.py
trevorstam/text-similarity
5a549ef5900ca2522ddfd5ee7accf3358d10ca22
[ "MIT" ]
null
null
null
config.py
trevorstam/text-similarity
5a549ef5900ca2522ddfd5ee7accf3358d10ca22
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() PGHOST = os.getenv('PGHOST') PGDBNAME = os.getenv('PGDBNAME') PGUSERNAME = os.getenv('PGUSERNAME') PGPASSWORD = os.getenv('PGPASSWORD')
19.3
36
0.756477
795c6c6501ddd6bb44b164a3d035c2f621eb530d
7,295
py
Python
_dev/inferences/rejection_abc.py
nicolossus/pylfi
7950aff5c36e7368cbe77b32ef348966b905f5cf
[ "MIT" ]
null
null
null
_dev/inferences/rejection_abc.py
nicolossus/pylfi
7950aff5c36e7368cbe77b32ef348966b905f5cf
[ "MIT" ]
null
null
null
_dev/inferences/rejection_abc.py
nicolossus/pylfi
7950aff5c36e7368cbe77b32ef348966b905f5cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging import time import numpy as np from pylfi.inferences import ABCBase from pylfi.journal import Journal from pylfi.utils import setup_logger from tqdm.auto import tqdm class RejectionABC(ABCBase): """Rejection ABC. """ def __init__(self, obser...
34.904306
88
0.566141
795c6cb6253495756f4dac8b5bf0a659e980d45b
360
py
Python
task_scripts/init_db.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
7
2018-04-01T18:18:23.000Z
2021-09-13T07:02:16.000Z
task_scripts/init_db.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
5
2018-10-24T19:36:03.000Z
2020-10-30T02:13:38.000Z
task_scripts/init_db.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
6
2018-07-12T17:59:54.000Z
2020-10-30T02:29:50.000Z
""" Initializes a database with the proper tables, etc. """ import synaptor as s import argparse parser = argparse.ArgumentParser() parser.add_argument("storagestr") args = parser.parse_args() args.storagestr = s.io.parse_storagestr(args.storagestr) print(vars(args)) s.proc.io.initdb.drop_db(args.storagestr) s....
17.142857
56
0.769444
795c6ed7d3258dd6c904fab685fc42dc89a8bea2
7,795
py
Python
L1Trigger/L1TMuonEndCap/python/simEmtfDigis_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TMuonEndCap/python/simEmtfDigis_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TMuonEndCap/python/simEmtfDigis_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms # EMTF emulator configuration # Check that proper switches are implemented in L1Trigger/Configuration/python/customiseReEmul.py - AWB 02.06.17 ############################################################################################### ### IMPORTANT!!! Any changes to this...
55.678571
143
0.651058
795c717e07d93de4bd6f740c4a6e842cf67accde
1,805
py
Python
chatto_transform/datastores/datastore_base.py
chatto-hub-test2/github-permission
dfb364b3663965720ba8b907617a247fec0eff7f
[ "Unlicense", "MIT" ]
1
2021-07-23T11:52:14.000Z
2021-07-23T11:52:14.000Z
chatto_transform/datastores/datastore_base.py
chatto-hub-test2/github-permission
dfb364b3663965720ba8b907617a247fec0eff7f
[ "Unlicense", "MIT" ]
null
null
null
chatto_transform/datastores/datastore_base.py
chatto-hub-test2/github-permission
dfb364b3663965720ba8b907617a247fec0eff7f
[ "Unlicense", "MIT" ]
null
null
null
class DataStore: """Base class - defines the DataStore abstraction. A DataStore is an adapter between a pandas DataFrame and a storage medium. Examples of storage media: HDF5 file format, SQL databases backed by SqlAlchemy, PostgreSQL databases.""" def __init__(self, schema): self.schema = ...
27.769231
84
0.619391
795c71a15b9a7238c45e4e8188e5d7c7873e5eba
2,029
py
Python
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/HVDS/HVDS_MZP800_MDP20_Ctau10000mm_Pythia8_13TeV_cff.py
jwill24/Timing
99c5712eae960646e02bbb796e91b584a9a96132
[ "MIT" ]
2
2017-10-19T12:28:53.000Z
2019-05-22T14:36:05.000Z
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/HVDS/HVDS_MZP800_MDP20_Ctau10000mm_Pythia8_13TeV_cff.py
jwill24/Timing
99c5712eae960646e02bbb796e91b584a9a96132
[ "MIT" ]
null
null
null
GEN_SIM/Configuration/GenProduction/python/ThirteenTeV/HVDS/HVDS_MZP800_MDP20_Ctau10000mm_Pythia8_13TeV_cff.py
jwill24/Timing
99c5712eae960646e02bbb796e91b584a9a96132
[ "MIT" ]
6
2017-09-13T13:16:10.000Z
2019-01-28T17:39:51.000Z
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", comEnergy = cms.double(13000.0), pythiaHepMCVerbosity = cms.untracked.bool(False), pythiaPylis...
44.108696
93
0.514046
795c7210576dbcd8988eccca859fd3abe108f5cf
6,052
py
Python
packages/python-packages/apistubgentest/apistubgentest/_client.py
chlowell/azure-sdk-tools
c24ecb0fe9ccd75795dd0f3f7bca2f5f9508e644
[ "MIT" ]
null
null
null
packages/python-packages/apistubgentest/apistubgentest/_client.py
chlowell/azure-sdk-tools
c24ecb0fe9ccd75795dd0f3f7bca2f5f9508e644
[ "MIT" ]
null
null
null
packages/python-packages/apistubgentest/apistubgentest/_client.py
chlowell/azure-sdk-tools
c24ecb0fe9ccd75795dd0f3f7bca2f5f9508e644
[ "MIT" ]
null
null
null
from datetime import datetime from azure.core.paging import ItemPaged from typing import Optional, Union, List, Any from .models import FakeObject, FakeError, PetEnumPy3Metaclass from azure.core import PipelineClient from typing import Optional, Union # pylint:disable=docstring-missing-return,docstring-missing-rtyp...
27.139013
149
0.611038
795c735aea9c49fae36db7e6a77a5a9370b2d477
2,036
py
Python
python/preprocess/monolabel.py
lewfish/cloud-buster
da31c4acea30bd97f68e1ff99dbbe11e0ba13db6
[ "MIT" ]
null
null
null
python/preprocess/monolabel.py
lewfish/cloud-buster
da31c4acea30bd97f68e1ff99dbbe11e0ba13db6
[ "MIT" ]
null
null
null
python/preprocess/monolabel.py
lewfish/cloud-buster
da31c4acea30bd97f68e1ff99dbbe11e0ba13db6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # The MIT License (MIT) # ===================== # # Copyright © 2020 Azavea # # 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 ...
33.933333
75
0.714145
795c74235f5653f951a426c106a5ff2c5b82af4b
155
py
Python
testproj/queue.py
musicwarez/testproj
88a6f95f58849cca455865358cfd0bec8a4437a0
[ "BSD-3-Clause" ]
null
null
null
testproj/queue.py
musicwarez/testproj
88a6f95f58849cca455865358cfd0bec8a4437a0
[ "BSD-3-Clause" ]
null
null
null
testproj/queue.py
musicwarez/testproj
88a6f95f58849cca455865358cfd0bec8a4437a0
[ "BSD-3-Clause" ]
null
null
null
from Queue import Queue queue = Queue() for i in range(0, 3): queue.put(i) print queue.get_nowait() print queue.get_nowait() print queue.get_nowait()
17.222222
24
0.722581
795c7446f0a1ef1c7067c648fb57dbfd0db6c8dc
668
py
Python
boofuzz/boofuzz/primitives/base_primitive.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:01.000Z
2021-06-04T14:27:15.000Z
boofuzz/boofuzz/primitives/base_primitive.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
null
null
null
boofuzz/boofuzz/primitives/base_primitive.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:09.000Z
2021-06-04T14:27:21.000Z
from ..fuzzable import Fuzzable class BasePrimitive(Fuzzable): """ The primitive base class implements common functionality shared across most primitives. """ def __init__(self, *args, **kwargs): super(BasePrimitive, self).__init__(*args, **kwargs) self._fuzz_library = [] # library o...
27.833333
91
0.655689
795c756cb4bd956ad2058a28f320b0a12cc9ea3d
37,798
py
Python
sets/generator/withpattern/codecs.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
1
2022-03-26T15:43:50.000Z
2022-03-26T15:43:50.000Z
sets/generator/withpattern/codecs.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
null
null
null
sets/generator/withpattern/codecs.py
ignacio-gallego/tbcnn_skill_pill
66c3939e2944160c864b61495ac4c7aaa56acd18
[ "MIT" ]
1
2022-03-28T19:28:45.000Z
2022-03-28T19:28:45.000Z
""" codecs -- Python Codec Registry, API and helpers. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """ import builtins import sys ### Registry and builtin stateless codec functions try: from _codecs import * except ImportError as why: ...
33.538598
85
0.604847
795c769755c3d79fffcb5270907a526a34c39f00
9,477
py
Python
test/algorithms/refinement/test_orientation_refinement.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
2
2021-03-17T11:25:46.000Z
2021-11-18T04:20:54.000Z
test/algorithms/refinement/test_orientation_refinement.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
null
null
null
test/algorithms/refinement/test_orientation_refinement.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
null
null
null
""" Test refinement of beam, detector and crystal orientation parameters using generated reflection positions from ideal geometry. Control of the experimental model and choice of minimiser is done via PHIL, which means we can do, for example: cctbx.python tst_orientation_refinement.py \ "random_seed=3; engine=LBFGScu...
34.212996
88
0.652105
795c76e73138530bad4f876a2c755b6861bc4164
10,333
py
Python
S2-045_n_S2-052_rce.py
m4udSec/S2-045-and-S2-051-Struts-2-in-1
654ad5df594542f13392c5fa4a3915fe024f278b
[ "MIT" ]
2
2021-12-02T17:50:14.000Z
2021-12-02T17:50:16.000Z
S2-045_n_S2-052_rce.py
m4udSec/S2-045-and-S2-052-Struts-2-in-1
654ad5df594542f13392c5fa4a3915fe024f278b
[ "MIT" ]
null
null
null
S2-045_n_S2-052_rce.py
m4udSec/S2-045-and-S2-052-Struts-2-in-1
654ad5df594542f13392c5fa4a3915fe024f278b
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Author (m4ud) # Apache Struts-045 # CVE : 2017-5638 from base64 import b64encode import sys import requests from optparse import OptionParser import os import subprocess import http.server import threading import time def serverShutdown(server): server = struts(options) ...
39.288973
546
0.566438
795c771e9ffa843ee2865de0b785fc3df23c6e22
32,484
py
Python
addons/io_scene_gltf2/__init__.py
julienduroure/glTF-Blender-IO
406a409d4740e6a67ec3e8699c7dec40afe5067e
[ "Apache-2.0" ]
2
2020-02-04T05:21:42.000Z
2020-08-29T09:49:06.000Z
addons/io_scene_gltf2/__init__.py
julienduroure/glTF-Blender-IO
406a409d4740e6a67ec3e8699c7dec40afe5067e
[ "Apache-2.0" ]
null
null
null
addons/io_scene_gltf2/__init__.py
julienduroure/glTF-Blender-IO
406a409d4740e6a67ec3e8699c7dec40afe5067e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 The glTF-Blender-IO 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 or ...
34.121849
147
0.646164
795c7855b29438d83e342fa0aef143712eb27ec0
6,070
py
Python
mydeepctr/examples/lr/controller.py
Liulinghzi/DeepCTR
bb3f204e368ad34d84639025480613abd99231c5
[ "Apache-2.0" ]
null
null
null
mydeepctr/examples/lr/controller.py
Liulinghzi/DeepCTR
bb3f204e368ad34d84639025480613abd99231c5
[ "Apache-2.0" ]
null
null
null
mydeepctr/examples/lr/controller.py
Liulinghzi/DeepCTR
bb3f204e368ad34d84639025480613abd99231c5
[ "Apache-2.0" ]
null
null
null
''' @Author: your name @Date: 2020-05-27 14:53:55 @LastEditTime: 2020-06-09 13:07:02 @LastEditors: Please set LastEditors @Description: In User Settings Edit @FilePath: /model-building/recommend/estimator/lr.py ''' import tensorflow as tf import os import sys import json import argparse tf.logging.set_verbosity(tf.logg...
39.673203
208
0.691928
795c78641403b17aae37d2faf634124d1b793c05
614
py
Python
revolt/__init__.py
XiehCanCode/revolt.py
0b14143610f544d73ba9dde02adedafc51d76228
[ "MIT" ]
null
null
null
revolt/__init__.py
XiehCanCode/revolt.py
0b14143610f544d73ba9dde02adedafc51d76228
[ "MIT" ]
null
null
null
revolt/__init__.py
XiehCanCode/revolt.py
0b14143610f544d73ba9dde02adedafc51d76228
[ "MIT" ]
null
null
null
from .asset import Asset from .channel import (Channel, DMChannel, GroupDMChannel, SavedMessageChannel, TextChannel, VoiceChannel) from .client import Client from .embed import Embed from .enums import AssetType, ChannelType, PresenceType, RelationshipType, SortType from .errors import HTTPError, ...
34.111111
83
0.786645
795c786d4d0f97caf8d1fdae3be96e252f939d35
742
py
Python
auth/migrations/0001_initial.py
JohnAzedo/NewsletterServer
0e9df39afcbb148064a8e25890597676e0e22a57
[ "MIT" ]
1
2021-11-30T23:44:25.000Z
2021-11-30T23:44:25.000Z
auth/migrations/0001_initial.py
JohnAzedo/NewsletterServer
0e9df39afcbb148064a8e25890597676e0e22a57
[ "MIT" ]
null
null
null
auth/migrations/0001_initial.py
JohnAzedo/NewsletterServer
0e9df39afcbb148064a8e25890597676e0e22a57
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-10 00:09 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
28.538462
118
0.641509
795c7971f438b9dffc216d8a05e45153776ec280
887
py
Python
various_scripts/metadata_script.py
cc-ai/floods-gans
787dc2a3c08483c68a687b4355c0f0f6f2711ab9
[ "Apache-2.0" ]
5
2019-05-07T15:14:58.000Z
2020-11-23T00:21:50.000Z
various_scripts/metadata_script.py
cc-ai/floods
787dc2a3c08483c68a687b4355c0f0f6f2711ab9
[ "Apache-2.0" ]
13
2019-04-25T01:06:20.000Z
2022-03-11T23:51:04.000Z
various_scripts/metadata_script.py
cc-ai/floods
787dc2a3c08483c68a687b4355c0f0f6f2711ab9
[ "Apache-2.0" ]
4
2019-04-24T18:06:10.000Z
2020-07-15T18:02:56.000Z
# run command : python3 metadata_script.py log_dir img_dir # log_dir is the logs folder # img_dir is the downloads folder import json import os import sys import os.path log_dir = sys.argv[1] img_dir = sys.argv[2] for filename in os.listdir(log_dir): if filename.endswith(".json"): data1 = [] with o...
32.851852
86
0.570462
795c79975b82f740c3b646348821272d855948da
826
py
Python
repair/featurize/featurizer.py
laferrieren/HoloClean
8242e541c84f60d5ad09b6689b3982de1e1e57d3
[ "Apache-2.0" ]
null
null
null
repair/featurize/featurizer.py
laferrieren/HoloClean
8242e541c84f60d5ad09b6689b3982de1e1e57d3
[ "Apache-2.0" ]
1
2018-11-21T06:59:55.000Z
2018-11-21T06:59:55.000Z
repair/featurize/featurizer.py
laferrieren/HoloClean
8242e541c84f60d5ad09b6689b3982de1e1e57d3
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod from multiprocessing import Pool class Featurizer: __metaclass__ = ABCMeta def __init__(self, name): self.name = name self.setup_done = False def setup_featurizer(self, dataset, total_vars, classes, processes=20): self.ds = dataset ...
25.8125
75
0.652542
795c79d5604ba4884feae539d3fcf791d1da6ad8
1,685
py
Python
main.py
CILAB-MA/Machine_ToM
8c168ee31cc95a7f57998e8907273799533fe04f
[ "MIT" ]
13
2021-12-08T07:17:55.000Z
2022-03-30T10:07:38.000Z
main.py
CILAB-MA/Machine_ToM
8c168ee31cc95a7f57998e8907273799533fe04f
[ "MIT" ]
null
null
null
main.py
CILAB-MA/Machine_ToM
8c168ee31cc95a7f57998e8907273799533fe04f
[ "MIT" ]
1
2022-01-14T02:56:38.000Z
2022-01-14T02:56:38.000Z
import experiment1.experiment as experiment1 import experiment2.experiment as experiment2 import argparse from utils import utils EXPERIMENTS = [experiment1, experiment2] # experiment 3 will be update def parse_args(): parser = argparse.ArgumentParser('For ToM Passive Exp') parser.add_argument('--num_epoch',...
45.540541
106
0.6273
795c79f9b2ce890c85d960d65da9d3d7b4503497
19,746
py
Python
pykarbon/can.py
onlogic/Pykarbon
c968a95d669595614476f38a7b117fdf86b629e0
[ "BSD-3-Clause" ]
4
2020-01-06T17:26:26.000Z
2021-12-16T09:36:03.000Z
pykarbon/can.py
onlogic/Pykarbon
c968a95d669595614476f38a7b117fdf86b629e0
[ "BSD-3-Clause" ]
2
2020-03-27T20:59:21.000Z
2020-06-26T15:31:49.000Z
pykarbon/can.py
onlogic/Pykarbon
c968a95d669595614476f38a7b117fdf86b629e0
[ "BSD-3-Clause" ]
1
2020-03-10T14:11:03.000Z
2020-03-10T14:11:03.000Z
# -*- coding: utf-8 -*- ''' Tool for running a session with the can interface. Example: .. code-block:: python import pykarbon.can as pkc from time import sleep with pkc.Session() as dev: dev.write(0x123, 0x11223344) # Send a message sleep(5) # Your code here! ...
33.298482
100
0.603261
795c79fb074641f862d53020c8d9ca40c5c72a7c
1,272
py
Python
jbupower/api/migrations/0001_initial.py
arc-menace/JBU-Solar-Power-Mobile-App
95cb97e273260e2f9ce0e0c492d60bff4008839c
[ "MIT" ]
null
null
null
jbupower/api/migrations/0001_initial.py
arc-menace/JBU-Solar-Power-Mobile-App
95cb97e273260e2f9ce0e0c492d60bff4008839c
[ "MIT" ]
null
null
null
jbupower/api/migrations/0001_initial.py
arc-menace/JBU-Solar-Power-Mobile-App
95cb97e273260e2f9ce0e0c492d60bff4008839c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-02-25 06:39 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Solar', fields=[ ('id', models.AutoField(au...
33.473684
114
0.537736
795c7adb4f3a632db9ddc66742da3c69ce8cf882
12,716
py
Python
epaper2in13b.py
astranome/micropython-waveshare-epaper
ef2f04da78c341b6469c420f384711e89d91b172
[ "MIT" ]
null
null
null
epaper2in13b.py
astranome/micropython-waveshare-epaper
ef2f04da78c341b6469c420f384711e89d91b172
[ "MIT" ]
null
null
null
epaper2in13b.py
astranome/micropython-waveshare-epaper
ef2f04da78c341b6469c420f384711e89d91b172
[ "MIT" ]
null
null
null
""" MicroPython Waveshare 2.13" Black/White/Red GDEW0213Z16 e-paper display driver https://github.com/mcauser/micropython-waveshare-epaper ERRORS ARE FIXED MIT License Copyright (c) 2017 Waveshare Copyright (c) 2018 Mike Causer Permission is hereby granted, free of charge, to any person obtaining a copy of th...
40.88746
130
0.566609
795c7aef00580472613173046e8e36975db6952f
7,105
py
Python
Proyecto/compilation/ast/operations.py
leynier/IA-Sim-Com
f6e99bb1aa4b02d5d558dc76a9bf802c3761e428
[ "MIT" ]
null
null
null
Proyecto/compilation/ast/operations.py
leynier/IA-Sim-Com
f6e99bb1aa4b02d5d558dc76a9bf802c3761e428
[ "MIT" ]
1
2022-02-11T07:26:54.000Z
2022-02-11T07:26:54.000Z
Proyecto/compilation/ast/operations.py
leynier/IA-Sim-Com
f6e99bb1aa4b02d5d558dc76a9bf802c3761e428
[ "MIT" ]
null
null
null
from compilation.errors import Error, CheckTypesError from compilation.ast.nodes import Node from compilation.context import Context def is_error(value: Error) -> bool: return isinstance(value, Error) def numbertype(type_): if type_ == "int" or type_ == "double": return True def is_number(value) -...
27.862745
115
0.629557
795c7af8c47f7bb298a1f427249732569a868fde
296
py
Python
Leetcode/0372. Super Pow/0372.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0372. Super Pow/0372.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0372. Super Pow/0372.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def superPow(self, a: int, b: List[int]) -> int: def powMod(x: int, y: int) -> int: pow = 1 for _ in range(y): pow = (pow * x) % k return pow k = 1337 ans = 1 for i in b: ans = powMod(ans, 10) * powMod(a, i) % k return ans
18.5
50
0.486486
795c7cf365cf44fe50777f5bee588f0ba9626ed9
348
py
Python
ja/code_snippets/api-embeds-revoke.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
ja/code_snippets/api-embeds-revoke.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
ja/code_snippets/api-embeds-revoke.py
quotecenter/documentation-1
f365703264761aa2b19d5d1d8ec55a3a6082ef4d
[ "BSD-3-Clause" ]
null
null
null
from datadog import initialize, api # Intialize request parameters including API/APP key options = { 'api_key': '<YOUR_API_KEY>', 'app_key': '<YOUR_APP_KEY>' } initialize(**options) # Set Embed ID (token) embed_id = "5f585b01c81b12ecdf5f40df0382738d0919170639985d3df5e2fc4232865b0c" # Call Embed API function...
21.75
77
0.761494
795c7d38804abdd49d2b717f49aa1387e89d26d0
4,728
py
Python
pyrobolearn/models/dmp/dmpytorch/rhythmic_dmp.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/models/dmp/dmpytorch/rhythmic_dmp.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/models/dmp/dmpytorch/rhythmic_dmp.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Define the rhythmic dynamic movement primitive. """ import numpy as np import torch from pyrobolearn.models.dmp.dmpytorch.canonical_systems import RhythmicCS from pyrobolearn.models.dmp.dmpytorch.forcing_terms import RhythmicForcingTerm from pyrobolearn.models.dmp.dmpy...
40.758621
118
0.648689
795c7d7f54ec0dc0adbbebaf28a5070c47bb922b
25,555
py
Python
sklearn/cluster/_birch.py
melkisedeath/scikit-learn
74a37de119d2c7c9ea1cce673c2ee207541a55d2
[ "BSD-3-Clause" ]
3
2021-02-04T16:57:23.000Z
2021-02-24T13:44:51.000Z
sklearn/cluster/_birch.py
melkisedeath/scikit-learn
74a37de119d2c7c9ea1cce673c2ee207541a55d2
[ "BSD-3-Clause" ]
null
null
null
sklearn/cluster/_birch.py
melkisedeath/scikit-learn
74a37de119d2c7c9ea1cce673c2ee207541a55d2
[ "BSD-3-Clause" ]
1
2019-04-18T16:25:21.000Z
2019-04-18T16:25:21.000Z
# Authors: Manoj Kumar <manojkumarsivaraj334@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Joel Nothman <joel.nothman@gmail.com> # License: BSD 3 clause import warnings import numbers import numpy as np from scipy import sparse from math import sqrt from ..metrics impor...
37.089985
79
0.632401
795c7db5b9a1153261e66af17f6ae5f314a512e7
33,456
py
Python
sdk/lusid/models/update_property_definition_request.py
fossabot/lusid-sdk-python-preview
2c95d870489d93dee921593877256d3869c090e6
[ "MIT" ]
null
null
null
sdk/lusid/models/update_property_definition_request.py
fossabot/lusid-sdk-python-preview
2c95d870489d93dee921593877256d3869c090e6
[ "MIT" ]
null
null
null
sdk/lusid/models/update_property_definition_request.py
fossabot/lusid-sdk-python-preview
2c95d870489d93dee921593877256d3869c090e6
[ "MIT" ]
1
2020-10-29T08:35:32.000Z
2020-10-29T08:35:32.000Z
# coding: utf-8 """ LUSID API # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages : * [C#](https://gith...
209.1
28,439
0.690638
795c7f0cfc73a36d9db7b8e35933a25d8690cb36
2,038
py
Python
examples/dfp/v201611/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
agencia-watermelons/googleads-python-lib
d2e55863ecf7e5090c225d74b3f4c1f948cd5a21
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201611/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
agencia-watermelons/googleads-python-lib
d2e55863ecf7e5090c225d74b3f4c1f948cd5a21
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201611/content_metadata_key_hierarchy_service/get_all_content_metadata_key_hierarchies.py
agencia-watermelons/googleads-python-lib
d2e55863ecf7e5090c225d74b3f4c1f948cd5a21
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2016 Google 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 required b...
36.392857
78
0.728656
795c7ffcd8f783bf2f39a42165e9c46e1ce5446a
69,136
py
Python
pyboto3/codepipeline.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/codepipeline.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/codepipeline.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud 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, merge, p...
39.642202
430
0.538475
795c80061120a94b89c5851eaf6605833294608f
81
py
Python
tests/__init__.py
UofU-Cryosphere/weather_forecast_retrieval
b06fe2e09b49ace9eba55bf424c1b2d1e358858c
[ "CC0-1.0" ]
6
2017-12-20T22:42:24.000Z
2021-08-07T03:32:27.000Z
tests/__init__.py
UofU-Cryosphere/weather_forecast_retrieval
b06fe2e09b49ace9eba55bf424c1b2d1e358858c
[ "CC0-1.0" ]
26
2019-03-07T17:47:13.000Z
2021-06-25T15:43:27.000Z
tests/__init__.py
UofU-Cryosphere/weather_forecast_retrieval
b06fe2e09b49ace9eba55bf424c1b2d1e358858c
[ "CC0-1.0" ]
3
2019-03-08T07:28:59.000Z
2021-02-12T21:59:12.000Z
# -*- coding: utf-8 -*- """Unit test package for weather_forecast_retrieval."""
20.25
55
0.666667
795c803ae35193ebd2ce7bd865cbe5f65cc447ce
3,644
py
Python
manim/scene/section.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
1
2021-10-17T15:43:51.000Z
2021-10-17T15:43:51.000Z
manim/scene/section.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
null
null
null
manim/scene/section.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
null
null
null
"""building blocks of segmented video API""" from __future__ import annotations import os from enum import Enum from typing import Any, Dict, List, Optional from manim import get_video_metadata class DefaultSectionType(str, Enum): """The type of a section can be used for third party applications. A present...
35.378641
113
0.642975
795c824e7ec1d604bd9ae1e219321a9ae8dc8c85
1,835
py
Python
redis_metrics/management/commands/reset_weekly_metrics.py
sporteasy/django-redis-metrics
8f3d55651c3e2c1dff1aa1d96d04ddc7e9e5680e
[ "MIT" ]
1
2019-02-10T19:33:41.000Z
2019-02-10T19:33:41.000Z
redis_metrics/management/commands/reset_weekly_metrics.py
sporteasy/django-redis-metrics
8f3d55651c3e2c1dff1aa1d96d04ddc7e9e5680e
[ "MIT" ]
null
null
null
redis_metrics/management/commands/reset_weekly_metrics.py
sporteasy/django-redis-metrics
8f3d55651c3e2c1dff1aa1d96d04ddc7e9e5680e
[ "MIT" ]
null
null
null
import re from datetime import date from django.core.management.base import BaseCommand, CommandError from redis_metrics.models import R class Command(BaseCommand): """ Updates the weekly metrics so they use the new key format. For more information, see Issue #7: http://bit.ly/YEjtF9 Essentially, w...
29.126984
77
0.565668
795c842caee13836bb4b2a7c3e6e94488f62b031
4,957
py
Python
pysnmp/JUNIPER-BFD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/JUNIPER-BFD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/JUNIPER-BFD-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module JUNIPER-BFD-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-BFD-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:47:55 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
112.659091
653
0.773452
795c855d60b77e20c876cacec9a8091a695ddc63
258
py
Python
plugins/giveaways/requirements/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
null
null
null
plugins/giveaways/requirements/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
4
2021-12-10T06:18:12.000Z
2022-03-24T14:43:57.000Z
plugins/giveaways/requirements/__init__.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
null
null
null
from .lottery import Lottery from .roles import Role, Bypass, Blacklist from .amari import Amari from .mee6 import Mee6 from .boost import Boost def setup(bot): for req in [Role, Bypass, Blacklist, Amari, Mee6, Boost, Lottery]: req.inject(bot)
23.454545
70
0.724806
795c8565478a287468f8fe19c1c1ccbf9c40fc16
11,835
py
Python
__init__.py
Chainmail-Project/ChainmailEssentials
4df9725770e72856f39e260f810edac3f179e03d
[ "MIT" ]
null
null
null
__init__.py
Chainmail-Project/ChainmailEssentials
4df9725770e72856f39e260f810edac3f179e03d
[ "MIT" ]
null
null
null
__init__.py
Chainmail-Project/ChainmailEssentials
4df9725770e72856f39e260f810edac3f179e03d
[ "MIT" ]
null
null
null
import builtins import threading import time import traceback from typing import TypeVar, List, Optional, Match from Chainmail import Wrapper from Chainmail.Events import CommandSentEvent, PlayerConnectedEvent, Events from Chainmail.MessageBuilder import MessageBuilder, Colours from Chainmail.Player import Player from...
44.829545
160
0.657203
795c857a9bb8183e2032d8e2c033749a7c05e114
1,611
py
Python
common/schemas/ffxiv.py
zhudotexe/FFXIV_PaissaDB
8ce7edbc0e2b383a201b8789a09bd263eb0713c7
[ "MIT" ]
2
2021-09-07T00:44:05.000Z
2022-03-26T17:14:46.000Z
common/schemas/ffxiv.py
zhudotexe/FFXIV_PaissaDB
8ce7edbc0e2b383a201b8789a09bd263eb0713c7
[ "MIT" ]
null
null
null
common/schemas/ffxiv.py
zhudotexe/FFXIV_PaissaDB
8ce7edbc0e2b383a201b8789a09bd263eb0713c7
[ "MIT" ]
1
2021-09-15T17:45:46.000Z
2021-09-15T17:45:46.000Z
""" Schemas defined by FFXIV game code. See https://github.com/zhudotexe/FFXIV_PaissaHouse/tree/main/Structures """ import enum from pydantic import BaseModel, conlist, constr from common import models # ---- substructures ---- class HousingFlags(enum.IntFlag): PlotOwned = 1 << 0 VisitorsAllowed = 1 << 1 ...
24.044776
113
0.693358
795c85faf50d1ad76996aebbcd983f71a5e378ac
3,292
py
Python
analysis_codes_v1/oscillations_run.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
analysis_codes_v1/oscillations_run.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
analysis_codes_v1/oscillations_run.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('Agg') import oscillations import pickle import numpy as np import matplotlib.pyplot as plt matplotlib.rcParams.update({'font.size': 20}) bin_start = 500.0 bin_stop = 3000.0 bin_size = 1.0 electrode_pos = [0.0, 0.0, 0.0] r_cutoff = 10.0 # Distance, in um, below which the weights for ...
46.366197
216
0.626367
795c870bf304e00bfcecd9e8b781a3472967b4f2
6,475
py
Python
pymc3/step_methods/nuts.py
MichielCottaar/pymc3
f37198653e7d09881e7bc411cbd10fffbab442c2
[ "Apache-2.0" ]
null
null
null
pymc3/step_methods/nuts.py
MichielCottaar/pymc3
f37198653e7d09881e7bc411cbd10fffbab442c2
[ "Apache-2.0" ]
null
null
null
pymc3/step_methods/nuts.py
MichielCottaar/pymc3
f37198653e7d09881e7bc411cbd10fffbab442c2
[ "Apache-2.0" ]
null
null
null
from .quadpotential import * from .arraystep import * from ..core import * from numpy import exp, log from numpy.random import uniform from .hmc import leapfrog, Hamiltonian, bern, energy from ..distributions import * from ..tuning import guess_scaling import theano from ..theanof import make_shared_replacements, join_...
30.687204
140
0.545483
795c870fb161d0514bee3682d79d1a5dea9371fb
17,381
py
Python
algorithmic_efficiency/workloads/wmt/wmt_jax/models.py
Bezenek/algorithmic-efficiency
84aac20796d685f810960dfa4fe5524798db876e
[ "Apache-2.0" ]
1
2022-01-29T07:51:55.000Z
2022-01-29T07:51:55.000Z
algorithmic_efficiency/workloads/wmt/wmt_jax/models.py
Bezenek/algorithmic-efficiency
84aac20796d685f810960dfa4fe5524798db876e
[ "Apache-2.0" ]
null
null
null
algorithmic_efficiency/workloads/wmt/wmt_jax/models.py
Bezenek/algorithmic-efficiency
84aac20796d685f810960dfa4fe5524798db876e
[ "Apache-2.0" ]
1
2022-01-20T17:43:29.000Z
2022-01-20T17:43:29.000Z
"""Transformer-based machine translation model.""" from typing import Any, Callable, Optional from flax import linen as nn from flax import struct from jax import lax import jax.numpy as jnp import numpy as np @struct.dataclass class TransformerConfig: """Global hyperparameters used to minimize obnoxious kwarg pl...
31.43038
79
0.663541
795c8724aa06a697b7ffecde0f34d6198d488266
1,586
py
Python
Python/Essential things/testing.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
null
null
null
Python/Essential things/testing.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
3
2020-03-24T16:26:35.000Z
2020-04-15T19:40:41.000Z
Python/Essential things/testing.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
null
null
null
import unittest class TestUM(unittest.TestCase): def setUp(self): """This method executes BEFORE each test""" pass def tearDown(self): """This method executes AFTER each test""" pass """ def setUpClass(cls): # This method executes BEFORE ALL tests prin...
28.836364
98
0.691047
795c88188f258fbe30dd9b3ce08d4e5848afb0cc
604
py
Python
timer.py
measiala/ctools
2776f63222d2fa934adcbbd51dc048c2391e45bd
[ "CC0-1.0" ]
null
null
null
timer.py
measiala/ctools
2776f63222d2fa934adcbbd51dc048c2391e45bd
[ "CC0-1.0" ]
null
null
null
timer.py
measiala/ctools
2776f63222d2fa934adcbbd51dc048c2391e45bd
[ "CC0-1.0" ]
null
null
null
import sys import time def print_stderr(s): print(s,file=sys.stderr) class Timer: def __init__(self,message='Elapsed time:',notifier=print_stderr): self.notifier = notifier if '%' in message: self.message = message else: self.message = message + " %f seconds...
24.16
69
0.577815
795c88cb1dd9a26b5483b450cfa1e5b775227713
2,393
py
Python
YTV/mywidgets/tmscreen_contents/booktab.py
Eghosa-Osayande/ytv-series-downloader
6b0efa69ca002279226ac6063e1bbc3eae9b2c97
[ "MIT" ]
1
2020-11-22T20:30:28.000Z
2020-11-22T20:30:28.000Z
YTV/mywidgets/tmscreen_contents/booktab.py
yande-eghosa/ytv-series-downloader
6b0efa69ca002279226ac6063e1bbc3eae9b2c97
[ "MIT" ]
null
null
null
YTV/mywidgets/tmscreen_contents/booktab.py
yande-eghosa/ytv-series-downloader
6b0efa69ca002279226ac6063e1bbc3eae9b2c97
[ "MIT" ]
null
null
null
import cfg from kivymd.uix.bottomnavigation import * from kivymd.uix.bottomsheet import * from kivy.clock import Clock from kivy.properties import * from threading import Thread import ytvApi as ytv from kivy.lang import Builder Builder.load_string(''' <BookTab>: name:'s3' icon:'star' text:'BookMar...
23.693069
90
0.664856
795c892a8f76fe0f4b498c1810c74c7facaae37b
704
py
Python
2020/day2/day2.py
victormartinez/adventofcode
347ae0ae6e9223265d0ad61794e3976525e7497e
[ "MIT" ]
null
null
null
2020/day2/day2.py
victormartinez/adventofcode
347ae0ae6e9223265d0ad61794e3976525e7497e
[ "MIT" ]
null
null
null
2020/day2/day2.py
victormartinez/adventofcode
347ae0ae6e9223265d0ad61794e3976525e7497e
[ "MIT" ]
null
null
null
from pathlib import Path def get_file_rows(): return filter(lambda x: bool(x), Path("input.txt").read_text().split("\n")) def parse_row(row): row = row.replace(":", "") row = row.replace("-", " ") min_, max_, char, password = row.split(" ") return int(min_), int(max_), char, password def count...
22
79
0.619318
795c8b2b19114377dea4734ae4c8a6bdbdaed262
4,256
py
Python
tensorflow/python/keras/layers/serialization.py
junhee-yoo/tensorflow
90169feba2d0b082e26c58f7264c353778ffe361
[ "Apache-2.0" ]
2
2019-08-04T20:28:14.000Z
2019-10-27T23:26:42.000Z
tensorflow/python/keras/layers/serialization.py
omalleyt12/tensorflow
4af94829b94a15c4dc51571a2ddf5a015a81d98a
[ "Apache-2.0" ]
1
2019-08-19T08:03:52.000Z
2019-08-19T08:03:52.000Z
tensorflow/python/keras/layers/serialization.py
omalleyt12/tensorflow
4af94829b94a15c4dc51571a2ddf5a015a81d98a
[ "Apache-2.0" ]
1
2018-09-03T18:32:25.000Z
2018-09-03T18:32:25.000Z
# Copyright 2015 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 applica...
42.989899
102
0.776786
795c8b3b12da8483c8c32df738411e472244974e
451
py
Python
users/users/admin_api/context.py
madEng84/pycon
31d71b7a86398a7b0518e909ae939aaffd181091
[ "MIT" ]
56
2018-01-20T17:18:40.000Z
2022-03-28T22:42:04.000Z
users/users/admin_api/context.py
madEng84/pycon
31d71b7a86398a7b0518e909ae939aaffd181091
[ "MIT" ]
2,029
2018-01-20T11:37:24.000Z
2022-03-31T04:10:51.000Z
users/users/admin_api/context.py
madEng84/pycon
31d71b7a86398a7b0518e909ae939aaffd181091
[ "MIT" ]
17
2018-03-17T09:44:28.000Z
2021-12-27T19:57:35.000Z
from __future__ import annotations from dataclasses import dataclass from sqlalchemy.ext.asyncio import AsyncSession from starlette.requests import Request from users.domain.repository import UsersRepository @dataclass class Info: context: Context @dataclass class Context: request: Request session: A...
18.791667
52
0.784922
795c8be201f0666154bcf46ac9e744264a481d3a
850
py
Python
boss-key_wio-link_2.py
awong1900/Boss-Key_Wio-link
d18ab3a07783edd339bbb72d0310345197b350a0
[ "Apache-2.0" ]
null
null
null
boss-key_wio-link_2.py
awong1900/Boss-Key_Wio-link
d18ab3a07783edd339bbb72d0310345197b350a0
[ "Apache-2.0" ]
null
null
null
boss-key_wio-link_2.py
awong1900/Boss-Key_Wio-link
d18ab3a07783edd339bbb72d0310345197b350a0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import websocket import thread import time def on_message(ws, message): print message def on_error(ws, error): print error def on_close(ws): print "### closed ###" def on_open(ws): ws.send("5e91e4a43b451c5af5efee3e13599cf5") # def run(*args): # for i in range(30000): ...
23.611111
70
0.552941
795c8d7c0b8949ee32cdf3f3575f573012be6083
1,050
py
Python
scrapy/conf.py
ajah/scrapy
9685c24059a1eb95216dcab8f76805c8c0025a60
[ "BSD-3-Clause" ]
5
2019-04-02T05:00:03.000Z
2021-04-21T11:03:50.000Z
scrapy/conf.py
xiongww/scrapy
f012cecbd8d32317529c6859e691083ba07ca117
[ "BSD-3-Clause" ]
null
null
null
scrapy/conf.py
xiongww/scrapy
f012cecbd8d32317529c6859e691083ba07ca117
[ "BSD-3-Clause" ]
null
null
null
""" Scrapy settings manager See documentation in docs/topics/settings.rst """ import os import cPickle as pickle from scrapy.settings import CrawlerSettings from scrapy.utils.conf import init_env ENVVAR = 'SCRAPY_SETTINGS_MODULE' def get_project_settings(): if ENVVAR not in os.environ: project = os.env...
27.631579
83
0.715238
795c8e7330a6bc9c079fc95e44753e0091aa94c1
1,111
py
Python
kolejka/common/gpu.py
Raalsky/kolejka
af0b4d8fa2e4dddfb6b6806fb0fd1639ba4f71f6
[ "MIT" ]
null
null
null
kolejka/common/gpu.py
Raalsky/kolejka
af0b4d8fa2e4dddfb6b6806fb0fd1639ba4f71f6
[ "MIT" ]
1
2021-08-18T18:05:37.000Z
2021-08-18T18:05:37.000Z
kolejka/common/gpu.py
Raalsky/kolejka
af0b4d8fa2e4dddfb6b6806fb0fd1639ba4f71f6
[ "MIT" ]
null
null
null
import gpustat from kolejka.common.limits import KolejkaStats def normalize_name(name: str) -> str: return '-'.join(name.lower().split(' ')[1:]) def gpu_stats(gpus: list = None): query = gpustat.GPUStatCollection.new_query() stats = KolejkaStats() stats.load({ 'gpus': { f'{index}...
28.487179
95
0.591359