hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
33b01a69c3d39b5be3da9f2f5ee4d52ee1634c3e
941
py
Python
blender/instructions.py
walls-of-doom/walls-of-doom
1ffaaed77ddbb28204fe1189ffefba59e69e5fc8
[ "BSD-3-Clause" ]
1
2019-10-13T05:52:48.000Z
2019-10-13T05:52:48.000Z
blender/instructions.py
walls-of-doom/walls-of-doom
1ffaaed77ddbb28204fe1189ffefba59e69e5fc8
[ "BSD-3-Clause" ]
129
2016-06-21T21:19:30.000Z
2018-04-10T21:13:22.000Z
blender/instructions.py
walls-of-doom/walls-of-doom
1ffaaed77ddbb28204fe1189ffefba59e69e5fc8
[ "BSD-3-Clause" ]
2
2016-08-28T22:45:02.000Z
2016-10-03T11:28:17.000Z
import bpy def derive_image_path(): filename = bpy.path.basename(bpy.context.blend_data.filepath) filename = "//output/" + filename.replace(".blend", ".png") return filename if __name__ == "__main__": bpy.context.scene.render.engine = "CYCLES" bpy.context.scene.render.resolution_x = 1920 bpy....
32.448276
70
0.701382
0
0
0
0
0
0
0
0
155
0.164718
33b1f67518e86f1ae4b5aae061f51022e1f46341
230
py
Python
config/app.py
ophioglossum/video
31b969bddc7f3509d5ebaab1aff9d7e2399365ff
[ "MIT" ]
null
null
null
config/app.py
ophioglossum/video
31b969bddc7f3509d5ebaab1aff9d7e2399365ff
[ "MIT" ]
null
null
null
config/app.py
ophioglossum/video
31b969bddc7f3509d5ebaab1aff9d7e2399365ff
[ "MIT" ]
null
null
null
#app名称标记,不能设置为中文 APP_NAME="baiduphone" #业务逻辑日志记录,True:开启,False:关闭 LOGIC_DEBUG=True #业务逻辑日志输出的文件,空字符串表示输出到控制台,不记录到日志文件中 LOGIC_DEBUG_FILE="" #短信通道的用户名和密码 SMS_URL='http://xxx.xxx.xxx:xxx/xxxx' SMS_USERNAME='test' SMS_PASSWD='test'
17.692308
37
0.8
0
0
0
0
0
0
0
0
276
0.762431
33b21765db87e055663ba068290a988c042d3e61
1,992
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_12/rule_11.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_12/rule_11.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_12/rule_11.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation, obj[3]: Distance # {"feature": "Education", "instances": 85, "metric_value": 0.9975, "depth": 1} if obj[1]<=2: # {"feature": "Distance", "instances": 70, "metric_value": 0.9787, "depth": 2} if obj[3]<=2: # {"feature": "Coupon", "ins...
32.655738
95
0.568273
0
0
0
0
0
0
0
0
1,158
0.581325
33b5df3a56f3c389456f72077ac2ebc5b90ce742
5,657
py
Python
src/oci/data_safe/models/alert_aggregation_items.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/alert_aggregation_items.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/alert_aggregation_items.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
29.617801
245
0.638501
5,117
0.904543
0
0
5,147
0.909846
0
0
3,784
0.668906
33b7faddaf9bc0cb8e5a9b63ad2f398485bee83a
2,959
py
Python
main.py
traian-d/compact_cellular_automata
f2d1d0aaaad357fc3516e00138c3efb36481c45f
[ "MIT" ]
2
2020-02-12T14:17:57.000Z
2020-04-29T13:35:03.000Z
main.py
traian-d/compact_cellular_automata
f2d1d0aaaad357fc3516e00138c3efb36481c45f
[ "MIT" ]
null
null
null
main.py
traian-d/compact_cellular_automata
f2d1d0aaaad357fc3516e00138c3efb36481c45f
[ "MIT" ]
null
null
null
import topologies as top import rules as rules import starting_patterns as sp from Game import Game import os import time import numpy as np def run_game(topology, rule, starting_pattern, start_pos, iterations): starting_pattern_instance = starting_pattern(topology.n_rows, topology.n_cols, start_pos) game = G...
34.406977
135
0.711727
0
0
0
0
0
0
0
0
1,204
0.406894
33ba3cc755c2a9206c00fdc1be1e77ea3da0a51b
548
py
Python
Day-1/Andelabs/data_types.py
kamaumike/bootcamp-10
59ef238518cdd9434afeb07eac0d586dc75821db
[ "MIT" ]
null
null
null
Day-1/Andelabs/data_types.py
kamaumike/bootcamp-10
59ef238518cdd9434afeb07eac0d586dc75821db
[ "MIT" ]
null
null
null
Day-1/Andelabs/data_types.py
kamaumike/bootcamp-10
59ef238518cdd9434afeb07eac0d586dc75821db
[ "MIT" ]
null
null
null
def data_type(data): """Returns a specific result based on the data type of the argument supplied """ if type(data) == str: return len(data) elif data == None: return 'no value' elif data == True or data == False: return data elif type(data) == int: if data < 100: return 'less th...
20.296296
44
0.578467
0
0
0
0
0
0
0
0
139
0.25365
33bb3dba6ba5b625fe5cf4f70e25aeae3cafe24f
95
py
Python
Exercicios/aula08a.py
Vitmambro/Python9
d084e6fd8230b71e4dade87086a411210e131320
[ "MIT" ]
null
null
null
Exercicios/aula08a.py
Vitmambro/Python9
d084e6fd8230b71e4dade87086a411210e131320
[ "MIT" ]
null
null
null
Exercicios/aula08a.py
Vitmambro/Python9
d084e6fd8230b71e4dade87086a411210e131320
[ "MIT" ]
null
null
null
import emoji print(emoji.emojize(' Ola mundo :sunglasses:', use_aliases=True))
7.307692
65
0.642105
0
0
0
0
0
0
0
0
25
0.263158
33be3d84bce31cd3e91a5c47d1f4596a4006fe31
3,850
py
Python
main.py
R3dsc4rf/ErrorTicketTool
79acae796b4c3411495c0a4caa218668bbb5c153
[ "MIT" ]
null
null
null
main.py
R3dsc4rf/ErrorTicketTool
79acae796b4c3411495c0a4caa218668bbb5c153
[ "MIT" ]
null
null
null
main.py
R3dsc4rf/ErrorTicketTool
79acae796b4c3411495c0a4caa218668bbb5c153
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # for linux. exestiert -> program can be executed by terminal without "Python 3" in command # does not exist for windows ''' Main.py for Error TicketTool_v001 this tool aims to help Quality tester to create tickets and show some simple diagramm with often to use data th...
41.397849
118
0.581039
2,513
0.652727
0
0
0
0
0
0
1,668
0.433247
33c0385b782f367408a11e61a102f7ba38bcbea5
1,688
py
Python
tests/test_serialization.py
dwhall/farc
05856119a43288214b9bd0a2605452d1eb48b808
[ "MIT" ]
21
2018-10-21T15:54:45.000Z
2022-03-29T19:27:44.000Z
tests/test_serialization.py
Datacraft-GaaS/farc
05856119a43288214b9bd0a2605452d1eb48b808
[ "MIT" ]
9
2019-06-22T04:51:10.000Z
2020-12-21T17:14:48.000Z
tests/test_serialization.py
Datacraft-GaaS/farc
05856119a43288214b9bd0a2605452d1eb48b808
[ "MIT" ]
8
2019-06-21T16:13:32.000Z
2022-03-29T19:34:27.000Z
#!/usr/bin/env python3 """This unit test proves that event values are immutable. An event with a global-scope array is declared. A simple state machine event handler modifies the value of the event it is given. The state machine is called with the global-scope array and the framework is stopped. The test passess if the...
23.444444
57
0.647512
956
0.566351
0
0
631
0.373815
0
0
455
0.26955
33c1e4374c9158716c8a41a27ad3efbd56ce34b4
7,771
py
Python
grafanahelper.py
Voronenko/errbot-grafana
eea280dac5f61f96b37f7b45e0413be90e23fc27
[ "MIT" ]
3
2019-11-15T20:16:52.000Z
2020-05-04T08:14:48.000Z
grafanahelper.py
Voronenko/errbot-grafana
eea280dac5f61f96b37f7b45e0413be90e23fc27
[ "MIT" ]
null
null
null
grafanahelper.py
Voronenko/errbot-grafana
eea280dac5f61f96b37f7b45e0413be90e23fc27
[ "MIT" ]
1
2019-03-28T17:42:07.000Z
2019-03-28T17:42:07.000Z
import requests import json from jinja2 import Template import urllib.request import re class GrafanaHelper(object): def __init__(self, grafana_server_address, grafana_token): self.grafana_token = grafana_token self.grafana_server_address = grafana_server_address def get_dashboards(self, tag=...
36.829384
111
0.49659
7,681
0.988418
0
0
0
0
0
0
1,577
0.202934
33c3f14699195277f17d952dc3dbda4f45cbdd35
504
py
Python
core/migrations/0006_alter_customer_data_sheet.py
krishdp/Customer_Rest_API
4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e
[ "MIT" ]
null
null
null
core/migrations/0006_alter_customer_data_sheet.py
krishdp/Customer_Rest_API
4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e
[ "MIT" ]
null
null
null
core/migrations/0006_alter_customer_data_sheet.py
krishdp/Customer_Rest_API
4a6ca52dd35188e17b6ce02c9ec2b6ee3d46c09e
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-23 11:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0005_alter_customer_doc_num'), ] operations = [ migrations.AlterField( model_name='cust...
25.2
128
0.650794
378
0.75
0
0
0
0
0
0
120
0.238095
33c45593e1c6d3a8ad98e019dc38be9163694fd5
1,392
py
Python
inspection.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
inspection.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
inspection.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 3 21:28:32 2016 @author: thasegawa """ import cv2 import numpy as np # ============================================================================ INPUT_WIDTH = 160 INPUT_HEIGHT = 120 OUTPUT_TILE_WIDTH = 10 OUTPUT_TILE_HEIGHT = 12 TILE_COUNT = OUTPUT_TILE_WIDTH * O...
30.933333
87
0.559626
0
0
0
0
0
0
0
0
480
0.344828
33c55634f10c709ca36cc80a9cac7247cbd479f4
1,878
py
Python
synth/tests/input_checks/test_input_checks.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
63
2020-03-26T15:26:10.000Z
2020-10-22T06:26:38.000Z
synth/tests/input_checks/test_input_checks.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
82
2020-03-10T17:54:48.000Z
2020-10-23T02:11:06.000Z
synth/tests/input_checks/test_input_checks.py
AprilXiaoyanLiu/whitenoise-system
0e94d2cc8114b97a61d5d2e45278428f91f1e687
[ "MIT" ]
15
2020-03-10T05:52:14.000Z
2020-10-09T09:09:52.000Z
import pandas as pd import numpy as np from snsynth.pytorch.nn import DPCTGAN, PATECTGAN from snsynth.preprocessors import DPSSTransformer eps = 3.0 batch_size = 20 size = 100 pd_data = pd.DataFrame(columns=["A"], data=np.array(np.arange(0.0, size)).T) np_data = np.array(np.arange(0.0, size)).astype(np.double) clas...
37.56
88
0.677316
1,561
0.831203
0
0
0
0
0
0
233
0.124068
33c85aaad5eb9ce8484adaf9eee5b4b25b961376
3,337
py
Python
server/attender-mobile/tests/eventbrite_tester.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
server/attender-mobile/tests/eventbrite_tester.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
server/attender-mobile/tests/eventbrite_tester.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
null
null
null
__author__ = 'olesya' import unittest from engine.api_request import ApiRequest from engine.sources_wrapper import SearchEventsUsingAPI from engine.eventbrite_api import EventbriteApi import json from google.appengine.ext import ndb from google.appengine.ext import testbed try: from google.appengine....
37.077778
91
0.664369
2,934
0.879233
0
0
0
0
0
0
334
0.10009
33c896e298d79bbd19efa3f04edd11b852097f58
4,037
py
Python
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
# python import atexit import logging import subprocess import urllib3 from collections import namedtuple from datetime import datetime from multiprocessing.dummy import Pool as ThreadPool from typing import List, Dict, Callable, Optional, Any # libs import influxdb from cloudcix.conf import settings # Suppress Insec...
30.816794
119
0.680951
0
0
0
0
0
0
0
0
1,648
0.408224
33c9c2bedb422dc4b8e3a72166c46b5208e06970
3,223
py
Python
fedireads/tests/status/test_review.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/tests/status/test_review.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/tests/status/test_review.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
from django.test import TestCase from fedireads import models from fedireads import status as status_builder class Review(TestCase): ''' we have hecka ways to create statuses ''' def setUp(self): self.user = models.User.objects.create_user( 'mouse', 'mouse@mouse.mouse', 'mouseword') ...
39.304878
113
0.57493
3,110
0.964939
0
0
0
0
0
0
1,034
0.320819
33cb1849ec5f3de5bd50256cf13966f6e710718b
1,273
py
Python
tests/unit/test_oauth_client_backend.py
przemekk1385/django-oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
null
null
null
tests/unit/test_oauth_client_backend.py
przemekk1385/django-oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
3
2022-03-02T18:08:13.000Z
2022-03-02T18:29:33.000Z
tests/unit/test_oauth_client_backend.py
przemekk1385/django_oac
379b29921551ea1d53edb5e3fbb6fa8d3c972acb
[ "MIT" ]
null
null
null
from unittest.mock import Mock, PropertyMock import pytest from django.contrib.auth import get_user_model from django_oac.backends import OAuthClientBackend from django_oac.exceptions import NoUserError from ..common import USER_PAYLOAD UserModel = get_user_model() @pytest.mark.django_db def test_get_user_does_no...
25.46
60
0.785546
0
0
0
0
729
0.572663
0
0
12
0.009427
33cb3e9ee0f3ad9bd01804758d64e223faf33a37
10,725
py
Python
Dlg_lvbo.py
hinczhang/OSPyQGIS
6d5c13c06cf2cc6a6dfa30684d78a30be62a1053
[ "Apache-2.0" ]
2
2020-11-03T08:23:34.000Z
2020-11-03T09:05:10.000Z
Dlg_lvbo.py
hinczhang/OSPyQGIS
6d5c13c06cf2cc6a6dfa30684d78a30be62a1053
[ "Apache-2.0" ]
null
null
null
Dlg_lvbo.py
hinczhang/OSPyQGIS
6d5c13c06cf2cc6a6dfa30684d78a30be62a1053
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Dlg_lvbo.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Dlg_lvbo_class(object): def setupUi(self, Dialog): ...
49.652778
72
0.666014
10,570
0.976263
0
0
0
0
0
0
1,186
0.109541
33cf3174ad53c2b52d8f80ce94cd572841a6a3d1
1,520
py
Python
actions_levels/discrete_actions.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-06-03T20:03:50.000Z
2021-06-03T20:03:50.000Z
actions_levels/discrete_actions.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
null
null
null
actions_levels/discrete_actions.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-03-14T01:22:33.000Z
2021-03-14T01:22:33.000Z
from hfo import MOVE_TO, DRIBBLE_TO, KICK_TO from actions_levels import BaseActions class DiscreteActions: actions = ["MOVE_UP", "MOVE_DOWN", "MOVE_LEFT", "MOVE_RIGHT", "KICK_TO_GOAL", "DRIBBLE_UP", "DRIBBLE_DOWN", "DRIBBLE_LEFT", "DRIBBLE_RIGHT"] def get_num_actions(self):...
34.545455
78
0.571711
1,432
0.942105
0
0
0
0
0
0
208
0.136842
33d00a7613ecc002e69a038b2036dfaa2537b297
2,946
py
Python
websocket-microphone/asr_server_microphone.py
madkote/kaldi-websocket-python
202ae7b34ca68e04d212ffbcc7a501dcde76d481
[ "Apache-2.0" ]
1
2021-11-06T22:08:13.000Z
2021-11-06T22:08:13.000Z
websocket-microphone/asr_server_microphone.py
madkote/kaldi-websocket-python
202ae7b34ca68e04d212ffbcc7a501dcde76d481
[ "Apache-2.0" ]
null
null
null
websocket-microphone/asr_server_microphone.py
madkote/kaldi-websocket-python
202ae7b34ca68e04d212ffbcc7a501dcde76d481
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import os import sys import asyncio import websockets import logging import sounddevice as sd import argparse import queue from vosk import Model, KaldiRecognizer def int_or_str(text): """Helper function for argument parsing.""" try: return int(text) except Valu...
32.733333
107
0.637135
0
0
0
0
0
0
2,353
0.79871
509
0.172777
33d2208ec8fb2c7353028d27618bbea1b163e588
10,955
py
Python
docker/utils.py
lanfanb/OpenLane
ebad315d1def25d9d253eb2ec1c56d7b4e59d7ca
[ "Apache-2.0" ]
null
null
null
docker/utils.py
lanfanb/OpenLane
ebad315d1def25d9d253eb2ec1c56d7b4e59d7ca
[ "Apache-2.0" ]
null
null
null
docker/utils.py
lanfanb/OpenLane
ebad315d1def25d9d253eb2ec1c56d7b4e59d7ca
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Efabless 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...
29.448925
109
0.601917
0
0
0
0
8,905
0.812871
0
0
3,626
0.33099
33d2b934d1604144667cc9d5e178b0a84377ef88
201
py
Python
python/orientacao-objetos-2/ABCs.py
LMThomaz-Study/cursos-alura
eeb9d29b5627365309ee0b0d69cae18e6166ccac
[ "MIT" ]
null
null
null
python/orientacao-objetos-2/ABCs.py
LMThomaz-Study/cursos-alura
eeb9d29b5627365309ee0b0d69cae18e6166ccac
[ "MIT" ]
null
null
null
python/orientacao-objetos-2/ABCs.py
LMThomaz-Study/cursos-alura
eeb9d29b5627365309ee0b0d69cae18e6166ccac
[ "MIT" ]
null
null
null
from abc import ABC # abstract base class from collections.abc import MutableSequence from number import Complex class Playlist(MutableSequence): pass filmes = Playlist() num = Complex(1, 2)
15.461538
43
0.761194
41
0.20398
0
0
0
0
0
0
21
0.104478
33d2ba64d8c2f1ea5e7dad3f01f1cb0fa2938a91
32,467
py
Python
torchrec/datasets/criteo.py
xing-liu/torchrec
82ffde7a69fdb9c66b79a753d6f03afa5db3f73e
[ "BSD-3-Clause" ]
814
2022-02-23T17:24:14.000Z
2022-03-31T16:52:23.000Z
torchrec/datasets/criteo.py
xing-liu/torchrec
82ffde7a69fdb9c66b79a753d6f03afa5db3f73e
[ "BSD-3-Clause" ]
89
2022-02-23T17:29:56.000Z
2022-03-31T23:44:13.000Z
torchrec/datasets/criteo.py
xing-liu/torchrec
82ffde7a69fdb9c66b79a753d6f03afa5db3f73e
[ "BSD-3-Clause" ]
68
2022-02-23T17:42:17.000Z
2022-03-28T06:39:55.000Z
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import os import time from typing import Any, Callable, Dict, Iterable, Iterator, List, ...
39.069795
114
0.59137
28,642
0.882188
2,698
0.0831
18,071
0.556596
0
0
13,139
0.404688
33d41dd487f252aee80096c5a7bd7849cbd314b7
575
py
Python
torchility/losses.py
hitlic/torchility
c28701d8c93955ad115d364b35b680a60ecfd360
[ "MIT" ]
9
2021-05-15T14:48:47.000Z
2021-11-08T04:09:59.000Z
torchility/losses.py
hitlic/torchility
c28701d8c93955ad115d364b35b680a60ecfd360
[ "MIT" ]
null
null
null
torchility/losses.py
hitlic/torchility
c28701d8c93955ad115d364b35b680a60ecfd360
[ "MIT" ]
1
2021-07-01T08:04:55.000Z
2021-07-01T08:04:55.000Z
import torch.nn.functional as F import torch # --- losses def masked_nll_loss(preds, targets): return F.nll_loss(preds[targets.mask], targets.data[targets.mask]) def masked_TOP_loss(preds, targets): """ Top One Probability(TOP) loss,from <<Learning to Rank: From Pairwise Approach to Listwise Approach>> ...
30.263158
104
0.707826
0
0
0
0
0
0
0
0
130
0.225303
33d49199210bdab53a1c95e998d2a61711888f00
9,101
py
Python
rectified_gaussian.py
david-salac/Rectified-Gaussian-distribution
305f8bd2e3ff02b0528947bff06f0fce58dab36f
[ "MIT" ]
1
2021-04-28T11:26:57.000Z
2021-04-28T11:26:57.000Z
rectified_gaussian.py
david-salac/Rectified-Gaussian-distribution
305f8bd2e3ff02b0528947bff06f0fce58dab36f
[ "MIT" ]
null
null
null
rectified_gaussian.py
david-salac/Rectified-Gaussian-distribution
305f8bd2e3ff02b0528947bff06f0fce58dab36f
[ "MIT" ]
null
null
null
from typing import Tuple, Union import numpy as np from scipy.special import erf class RectifiedGaussianDistribution(object): """Implementation of the rectified Gaussian distribution. To see what is the rectified Gaussian distribution, visit: https://en.wikipedia.org/wiki/Rectified_Gaussian_distribu...
35.972332
78
0.452478
9,016
0.99066
0
0
8,546
0.939018
0
0
3,558
0.390946
33d512fe4ef4282f580b512b36a8cd7e237c6e6b
2,138
py
Python
Game/test.py
LexCoolplay/API-Project
0656532e4e7fc67c1235d92c8caf1508572752d7
[ "MIT" ]
null
null
null
Game/test.py
LexCoolplay/API-Project
0656532e4e7fc67c1235d92c8caf1508572752d7
[ "MIT" ]
null
null
null
Game/test.py
LexCoolplay/API-Project
0656532e4e7fc67c1235d92c8caf1508572752d7
[ "MIT" ]
1
2018-04-05T21:24:19.000Z
2018-04-05T21:24:19.000Z
from telegram.ext import ConversationHandler from telegram.ext import CommandHandler from telegram.ext import Filters, MessageHandler from telegram.ext import Updater def start(bot, update): update.message.reply_text( "Привет. Пройдите небольшой опрос, пожалуйста!\n" "Вы можете прервать опр...
32.393939
105
0.672123
0
0
0
0
0
0
0
0
1,302
0.49393
33d7b60dfa081ba4782b84274ce3e231e6a92a72
277
py
Python
src/serving/api/best_model.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
null
null
null
src/serving/api/best_model.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
6
2020-08-13T13:02:58.000Z
2022-02-10T02:21:49.000Z
src/serving/api/best_model.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Request from src.utils import best_saved_model router = APIRouter() @router.put("/update", name="update-best-model") async def update_best_model(request: Request): request.app.state.best_model = best_saved_model(request.app.state.run_id)
25.181818
77
0.783394
0
0
0
0
173
0.624549
124
0.447653
28
0.101083
33d8f9547baee0b5df90b1229cfe43f902dcdeb7
1,693
py
Python
xrpc_tests/serde/test_walk.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
xrpc_tests/serde/test_walk.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
xrpc_tests/serde/test_walk.py
andreycizov/python-xrpc
ed403ae74d5e89e0ebac68bcc58591d6b32742ff
[ "Apache-2.0" ]
null
null
null
import sys import unittest from typing import NamedTuple, Optional, Dict from xrpc.const import SERVER_SERDE_INST from xrpc.serde.abstract import SerdeSet, SerdeStepContext from xrpc.serde.types import CallableArgsWrapper class Simple2(NamedTuple): y: Optional[str] = 'asd' class Simple(NamedTuple): x: Opt...
24.185714
106
0.56645
1,460
0.862374
0
0
0
0
0
0
89
0.052569
33da2612b90a61e970432c500d11f4363c18626f
30
py
Python
.history/ClassFiles/PythonModulesPackages/ImportingModules/Pychache/File1_20210107135307.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/PythonModulesPackages/ImportingModules/Pychache/File1_20210107135307.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/PythonModulesPackages/ImportingModules/Pychache/File1_20210107135307.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
print("Hello from file 1") pr
10
26
0.7
0
0
0
0
0
0
0
0
19
0.633333
33db0d368565ea1d5ffe9547a593c86507c344b4
8,873
py
Python
TrainingExtensions/torch/src/python/aimet_torch/svd/svd.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/torch/src/python/aimet_torch/svd/svd.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/torch/src/python/aimet_torch/svd/svd.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2018, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
55.45625
167
0.648822
6,751
0.760848
0
0
6,652
0.74969
0
0
4,989
0.562268
33dc1bc8737ae5efb9539a0e2630c93788a5dee3
70
py
Python
src/coberturas_medicas/__init__.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
src/coberturas_medicas/__init__.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
32
2016-05-09T19:37:08.000Z
2022-01-13T01:00:52.000Z
src/coberturas_medicas/__init__.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
default_app_config = 'coberturas_medicas.apps.CoberturasMedicasConfig'
70
70
0.9
0
0
0
0
0
0
0
0
49
0.7
33dd0ef7334bc05b76d6858442d6a802f26e47aa
948
py
Python
migrations/versions/650_change_service_id_datatype_change_orders_service_id_to_string.py
pebblecode/cirrus-marketplace-api
64d9e3be8705a2fe64c964b16947e9877885de7b
[ "MIT" ]
null
null
null
migrations/versions/650_change_service_id_datatype_change_orders_service_id_to_string.py
pebblecode/cirrus-marketplace-api
64d9e3be8705a2fe64c964b16947e9877885de7b
[ "MIT" ]
null
null
null
migrations/versions/650_change_service_id_datatype_change_orders_service_id_to_string.py
pebblecode/cirrus-marketplace-api
64d9e3be8705a2fe64c964b16947e9877885de7b
[ "MIT" ]
null
null
null
"""Change orders.service_id to String Revision ID: 650_change_service_id_datatype Revises: 640_add_orders_table Create Date: 2016-07-01 13:15:29.629574 """ # revision identifiers, used by Alembic. revision = '650_change_service_id_datatype' down_revision = '640_add_orders_table' from alembic import op import sqlalc...
31.6
98
0.721519
0
0
0
0
0
0
0
0
611
0.644515
33de28b32660b01bc6a1d8881d5ea5df8352484b
1,254
py
Python
v_server/urls.py
binalyadav/VigilantServer
3b0d31d760789ffddf78a8988db9b77aecaf8910
[ "MIT" ]
null
null
null
v_server/urls.py
binalyadav/VigilantServer
3b0d31d760789ffddf78a8988db9b77aecaf8910
[ "MIT" ]
null
null
null
v_server/urls.py
binalyadav/VigilantServer
3b0d31d760789ffddf78a8988db9b77aecaf8910
[ "MIT" ]
null
null
null
from django.urls import include, path, re_path from rest_framework import routers from . import views from .utils import * router = routers.SimpleRouter() router.register(r'users', views.UserViewSet) router.register(r'groups', views.GroupViewSet) router.register(r'organizations', views.OrganizationViewSet) router.regi...
46.444444
87
0.754386
0
0
0
0
0
0
0
0
425
0.338915
33de738d5420e9582d24dcf1b949315e220cc17d
9,241
py
Python
Milestone1/_deepzoom_coastpilot.py
jaybo/CoastPilot
a4c2751a82769ad093d93144731f85b51843087f
[ "MIT" ]
null
null
null
Milestone1/_deepzoom_coastpilot.py
jaybo/CoastPilot
a4c2751a82769ad093d93144731f85b51843087f
[ "MIT" ]
null
null
null
Milestone1/_deepzoom_coastpilot.py
jaybo/CoastPilot
a4c2751a82769ad093d93144731f85b51843087f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 ########################################################################################## #### Import libraries import requests import os from zipfile import ZipFile import xml.etree.ElementTree as ET import pandas as pd import glob import numpy as np import re import shutil ###...
38.991561
114
0.617249
0
0
0
0
0
0
0
0
4,498
0.486744
33defaed0d42ccdb417b1a62787a9629eac7629b
3,777
py
Python
test/base/test_engine.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
test/base/test_engine.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
test/base/test_engine.py
m-philipps/pyPESTO
4c30abfca56ba714c302141cd44a9dd366bff4bb
[ "BSD-3-Clause" ]
null
null
null
"""Test the execution engines.""" import copy import amici import cloudpickle as pickle import numpy as np import pypesto import pypesto.optimize import pypesto.petab from ..petab.petab_util import folder_base from ..util import rosen_for_sensi def test_basic(): for engine in [ pypesto.engine.SingleCo...
28.832061
78
0.699232
0
0
0
0
0
0
0
0
351
0.092931
33df0927f5b437195a203736b7d2f1db8e4fec68
5,214
py
Python
mvn/test/fixture.py
MarkDaoust/mvn
2c82cbfa898fd063c08752f03c08a2a043c245f9
[ "BSD-2-Clause" ]
7
2016-02-01T04:26:38.000Z
2021-11-17T10:24:19.000Z
mvn/test/fixture.py
MarkDaoust/mvn
2c82cbfa898fd063c08752f03c08a2a043c245f9
[ "BSD-2-Clause" ]
null
null
null
mvn/test/fixture.py
MarkDaoust/mvn
2c82cbfa898fd063c08752f03c08a2a043c245f9
[ "BSD-2-Clause" ]
3
2016-03-04T16:29:28.000Z
2019-10-05T16:48:51.000Z
#! /usr/bin/env python """ ************ Test Objects ************ """ import os import sys import copy import pickle import optparse import numpy from mvn import Mvn from mvn.matrix import Matrix from mvn.helpers import randint (fileDir, _) = os.path.split(os.path.abspath(__file__)) pickleName = os.path.join(...
23.276786
81
0.508439
3,200
0.613732
0
0
2,200
0.421941
0
0
713
0.136747
33e07f7711180ebd14a71f4eb2dfdcec9a31df8b
5,868
py
Python
Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
Splunk_TA_google/bin/google_wrapper/pubsub_wrapper.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
import traceback import time import base64 import ssl import google_wrapper.common as gwc PUBSUB_SCOPES = ["https://www.googleapis.com/auth/pubsub"] def get_full_subscription_name(project, subscription): """Return a fully qualified subscription name.""" return gwc.fqrn("subscriptions", project, subscriptio...
30.722513
80
0.558623
4,271
0.727846
1,673
0.285106
0
0
0
0
1,729
0.294649
33e09c1449da0336671f91f7a7e5ef0d6d953474
86
py
Python
testprojects/pants-plugins/src/python/test_pants_plugin/__init__.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
1
2020-06-13T22:01:39.000Z
2020-06-13T22:01:39.000Z
testprojects/pants-plugins/src/python/test_pants_plugin/__init__.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
testprojects/pants-plugins/src/python/test_pants_plugin/__init__.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
__import__("pkg_resources").declare_namespace(__name__) # type: ignore[attr-defined]
43
85
0.802326
0
0
0
0
0
0
0
0
43
0.5
33e1e5dfe63926bb7626b2515a6463d6783a9e38
397
py
Python
booksite/booksite/sitemap.py
awesome-archive/bookspider
d51f909fe95dc27339242ecdd2b6f1f6d811851f
[ "Apache-2.0" ]
39
2015-05-24T08:45:22.000Z
2020-02-18T07:42:58.000Z
booksite/booksite/sitemap.py
awesome-archive/bookspider
d51f909fe95dc27339242ecdd2b6f1f6d811851f
[ "Apache-2.0" ]
3
2016-01-05T15:28:33.000Z
2017-03-18T12:40:45.000Z
booksite/booksite/sitemap.py
awesome-archive/bookspider
d51f909fe95dc27339242ecdd2b6f1f6d811851f
[ "Apache-2.0" ]
36
2015-04-30T08:06:08.000Z
2019-01-22T15:12:49.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.sitemaps import Sitemap from booksite.book.models import Book class BookSitemaps(Sitemap): changefreq = 'hourly' priority = 0.5 def items(self): return Book.objects.order_by("-last_update").filter(last_update__isnu...
26.466667
92
0.715365
249
0.627204
0
0
0
0
0
0
45
0.11335
33e202595bcff5408c85f89714403151350da0e9
7,411
py
Python
main.py
YOULOF2/Speedest
437ec1e3ce274ab58e1f35b04c57f42f8247819b
[ "MIT" ]
null
null
null
main.py
YOULOF2/Speedest
437ec1e3ce274ab58e1f35b04c57f42f8247819b
[ "MIT" ]
null
null
null
main.py
YOULOF2/Speedest
437ec1e3ce274ab58e1f35b04c57f42f8247819b
[ "MIT" ]
null
null
null
from playsound import playsound from renit import reinit_app from shape_creators import * from testbrain import TestBrain from tkinter import ttk from ttkthemes import ThemedTk import math REC_WIDTH = 600 REC_HEIGHT = 200 RECTANGLE_COLOUR = "#3fc1c9" RECTANGLE_TEXT_COLOUR = "#364f6b" BACKGROUND_COLOUR = "#f5f5f5" RE...
42.83815
120
0.612603
0
0
0
0
0
0
0
0
1,542
0.208069
33e224dce84cd098e6d5bb11fe55ee39e1bc3fea
1,687
py
Python
pyvast/vast.py
knapperzbusch/vast
9d2af995254519b47febe2062adbc55965055cbe
[ "BSD-3-Clause" ]
null
null
null
pyvast/vast.py
knapperzbusch/vast
9d2af995254519b47febe2062adbc55965055cbe
[ "BSD-3-Clause" ]
1
2019-11-29T12:43:41.000Z
2019-11-29T12:43:41.000Z
pyvast/vast.py
knapperzbusch/vast
9d2af995254519b47febe2062adbc55965055cbe
[ "BSD-3-Clause" ]
null
null
null
"""python vast module Example: Disclaimer: `await` does not work in the python3.7 repl, use either python3.8 or ipython. Create a connector to a VAST server: > from pyvast import VAST > vast = VAST(app="/opt/tenzir/bin/vast") Test if the connector works: > await vast.connect() Extract ...
30.125
86
0.637226
1,074
0.636633
0
0
0
0
953
0.564908
778
0.461174
33e2816a3db6db079f7b3bb329fdb909bb3e9cf8
458
py
Python
backend/wallet/migrations/0022_position_total_dividends.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
2
2019-04-15T20:36:48.000Z
2020-02-09T23:20:27.000Z
backend/wallet/migrations/0022_position_total_dividends.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
5
2020-02-12T00:06:06.000Z
2020-06-05T05:09:45.000Z
backend/wallet/migrations/0022_position_total_dividends.py
felipemaion/financial-management-gate-django
5f93a7d28a55852fed0a16d1830f92b0ee065948
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-09-06 21:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wallet', '0021_auto_20200905_0845'), ] operations = [ migrations.AddField( model_name='position', name='total_divide...
24.105263
114
0.635371
365
0.796943
0
0
0
0
0
0
124
0.270742
33e4cd7219f4ca477ecd9a9016025d803e4d41b9
633
py
Python
Point charges/main.py
NoahSchiro/3d-physics
bb1700f968016953b5781f3266882377f35d3ac2
[ "MIT" ]
null
null
null
Point charges/main.py
NoahSchiro/3d-physics
bb1700f968016953b5781f3266882377f35d3ac2
[ "MIT" ]
4
2021-09-01T21:03:52.000Z
2021-09-09T13:32:14.000Z
Point charges/main.py
NoahSchiro/3d-physics
bb1700f968016953b5781f3266882377f35d3ac2
[ "MIT" ]
null
null
null
from electric_field import * from physics_engine import * import math # Constant variables scene.width = 1600 scene.height = 800 # Create field my_field = electric_field() my_charge = point_charge(0.001, -1E-9, 10, 10, 10) while True: # Set frame rate rate(20) # This allows the charge to bounce around...
22.607143
53
0.672986
0
0
0
0
0
0
0
0
158
0.249605
33e5c4ef0a62c2a0771e4127069e6b6a46219107
58
py
Python
oo/__init__.py
anthonysilvaa/pythonbirds
776ef93ffdb3f3365967e87df6cff54020c1d65c
[ "MIT" ]
null
null
null
oo/__init__.py
anthonysilvaa/pythonbirds
776ef93ffdb3f3365967e87df6cff54020c1d65c
[ "MIT" ]
null
null
null
oo/__init__.py
anthonysilvaa/pythonbirds
776ef93ffdb3f3365967e87df6cff54020c1d65c
[ "MIT" ]
null
null
null
from oo.pessoa import Pessoa p = Pessoa() print(type(p))
11.6
28
0.706897
0
0
0
0
0
0
0
0
0
0
33e6c4a804a5c34f1f8e8f628f3414186d87ca4d
110
py
Python
import_csv_fix_field_limit/models.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
null
null
null
import_csv_fix_field_limit/models.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
null
null
null
import_csv_fix_field_limit/models.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
3
2020-08-25T01:57:59.000Z
2021-09-11T15:38:02.000Z
# -*- coding: utf-8 -*- import sys from odoo.tools import convert convert.csv.field_size_limit(sys.maxsize)
15.714286
41
0.736364
0
0
0
0
0
0
0
0
23
0.209091
33e727d76b8ef633ed4385538bc9aa5adf0eb38a
17,733
py
Python
tests/opwen_email_client/domain/email/test_store.py
resonancellc/opwen-webapp
20d008415727016a908921cc6bbbb55dc9dfffe1
[ "Apache-2.0" ]
null
null
null
tests/opwen_email_client/domain/email/test_store.py
resonancellc/opwen-webapp
20d008415727016a908921cc6bbbb55dc9dfffe1
[ "Apache-2.0" ]
null
null
null
tests/opwen_email_client/domain/email/test_store.py
resonancellc/opwen-webapp
20d008415727016a908921cc6bbbb55dc9dfffe1
[ "Apache-2.0" ]
1
2019-12-18T14:35:46.000Z
2019-12-18T14:35:46.000Z
from abc import ABCMeta from abc import abstractmethod from unittest import TestCase from typing import Iterable from typing import List from opwen_email_client.domain.email.store import EmailStore class Base(object): class EmailStoreTests(TestCase, metaclass=ABCMeta): page_size = 10 @abstractme...
39.582589
120
0.498788
17,531
0.988609
0
0
122
0.00688
0
0
4,265
0.240512
33e744f33625829e440fa00f41cd61908cd2efcb
1,513
py
Python
src/functions/floodControl.py
dinesh-0602/TorrentSeedr
51bc75f34e9b07feba39af91021655914be85b6e
[ "MIT" ]
32
2021-08-20T04:05:26.000Z
2022-03-27T17:35:47.000Z
src/functions/floodControl.py
rajV2/TorrentSeedr
51bc75f34e9b07feba39af91021655914be85b6e
[ "MIT" ]
null
null
null
src/functions/floodControl.py
rajV2/TorrentSeedr
51bc75f34e9b07feba39af91021655914be85b6e
[ "MIT" ]
32
2021-08-21T14:21:46.000Z
2022-03-30T02:05:02.000Z
import time from src.objs import * #: Flood prevention def floodControl(message, userLanguage): userId = message.from_user.id if userId == config['adminId']: return True #! If the user is not banned if not dbSql.getSetting(userId, 'blockTill', table='flood') - int(time.time()) > 0: ...
40.891892
130
0.610707
0
0
0
0
0
0
0
0
341
0.22538
33e7e1642c5fa7247fbfda698e93071dbce85aab
1,138
py
Python
Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py
lbdlbdlbdl/stepik-big-data-for-data-science
4b025333fa33d6fe82d9e78653ca730393f0338e
[ "Apache-2.0" ]
11
2019-11-14T20:22:25.000Z
2021-05-17T16:32:46.000Z
Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py
lbdlbdlbdl/stepik-big-data-for-data-science
4b025333fa33d6fe82d9e78653ca730393f0338e
[ "Apache-2.0" ]
null
null
null
Week4_Airflow/Airflow/container-data/airflow/dags/hello_dag.py
lbdlbdlbdl/stepik-big-data-for-data-science
4b025333fa33d6fe82d9e78653ca730393f0338e
[ "Apache-2.0" ]
15
2019-12-21T18:05:06.000Z
2022-03-05T19:51:09.000Z
from datetime import datetime from airflow import DAG, AirflowException from datetime import datetime from airflow.operators.python_operator import PythonOperator from airflow.utils.trigger_rule import TriggerRule def print_1(): return 'Step 1' def print_2(): #raise AirflowException('Oops!') #Uncomment to m...
27.756098
95
0.685413
0
0
0
0
0
0
0
0
235
0.206503
33e7f51187f7b1f15f67e176d3d2914a0ae8b45e
3,449
py
Python
src/legacy/unit/basedimension.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
98
2015-03-31T06:42:14.000Z
2022-03-13T12:07:37.000Z
src/legacy/unit/basedimension.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
121
2015-07-13T15:57:02.000Z
2022-03-24T20:07:10.000Z
src/legacy/unit/basedimension.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
66
2015-04-06T03:05:04.000Z
2022-02-26T05:11:59.000Z
#!/bin/env python """ Module simtk.unit.basedimension BaseDimension class for use by units and quantities. BaseDimensions are things like "length" and "mass". This is part of the OpenMM molecular simulation toolkit originating from Simbios, the NIH National Center for Physics-Based Simulation of Biological Structur...
34.148515
88
0.71354
1,594
0.462163
0
0
0
0
0
0
2,581
0.748333
33e7fe72c262d1092a729f884ea3e0c68d37b8db
3,224
py
Python
dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
dwh_analytic/dags/data_warehouse_prod/functions/db_connect.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine import pandas as pd import psycopg2 class EngineConnect: def __init__( self, uri: str ): self.engine = create_engine(uri) self.conn = self.engine.connect() def create(self, data, schema, table): df = pd.json_normalize(d...
33.583333
162
0.563275
3,131
0.971154
0
0
0
0
0
0
278
0.086228
33e9f158ff66486224b4550051246b6dec72343a
21,743
py
Python
eodag_cube/rpc/protocol/eodag_pb2.py
CS-SI/eodag-cube
db13af685e6b07411aaaedcac0a6cb47caefb799
[ "Apache-2.0" ]
11
2021-01-15T14:26:28.000Z
2021-12-15T08:37:03.000Z
eodag_cube/rpc/protocol/eodag_pb2.py
CS-SI/eodag-cube
db13af685e6b07411aaaedcac0a6cb47caefb799
[ "Apache-2.0" ]
14
2021-03-15T16:31:47.000Z
2022-01-07T14:52:10.000Z
eodag_cube/rpc/protocol/eodag_pb2.py
CS-SI/eodag-cube
db13af685e6b07411aaaedcac0a6cb47caefb799
[ "Apache-2.0" ]
1
2021-04-28T10:15:52.000Z
2021-04-28T10:15:52.000Z
# -*- coding: utf-8 -*- # Copyright 2021, CS GROUP - France, http://www.c-s.fr # # This file is part of EODAG project # https://www.github.com/CS-SI/EODAG # # 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...
30.79745
1,667
0.625811
0
0
0
0
0
0
0
0
5,100
0.234558
33eea147dcf11c511b4a9c8d6be444a952495a54
1,962
py
Python
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/lab_announcement_properties_fragment_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
40.875
137
0.625382
1,446
0.737003
0
0
0
0
0
0
1,345
0.685525
33eea834853e14b35733d601c03bdedc405549d4
30,432
py
Python
target_extraction/dataset_parsers.py
apmoore1/target-extraction
4139ecdc432411fcc4ed2723f4165e7dae93544d
[ "Apache-2.0" ]
5
2019-07-27T13:57:47.000Z
2021-06-16T13:17:44.000Z
target_extraction/dataset_parsers.py
apmoore1/target-extraction
4139ecdc432411fcc4ed2723f4165e7dae93544d
[ "Apache-2.0" ]
26
2019-05-01T11:56:35.000Z
2020-06-18T16:06:40.000Z
target_extraction/dataset_parsers.py
apmoore1/target-extraction
4139ecdc432411fcc4ed2723f4165e7dae93544d
[ "Apache-2.0" ]
1
2019-07-11T07:16:09.000Z
2019-07-11T07:16:09.000Z
''' This module contains all the functions that will parse a particular dataset into a `target_extraction.data_types.TargetTextCollection` object. Functions: 1. semeval_2014 ''' import json from pathlib import Path import xml.etree.ElementTree as ET from xml.etree.ElementTree import Element from xml.etree.ElementTree...
50.889632
159
0.592961
0
0
0
0
0
0
0
0
15,539
0.510614
33ef41e085b8b97dcad376973e5a2651938e30d6
309
py
Python
1672-richest-customer-wealth/1672-richest-customer-wealth.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
1672-richest-customer-wealth/1672-richest-customer-wealth.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
1672-richest-customer-wealth/1672-richest-customer-wealth.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
class Solution: def maximumWealth(self, accounts: List[List[int]]) -> int: max_acc = 0 for account in accounts: sum_acc = 0 for num in account: sum_acc += num if max_acc < sum_acc: max_acc = sum_acc return max_acc
30.9
62
0.514563
309
1
0
0
0
0
0
0
0
0
33f0ba344a37591b7f4944804b11701aa4ff2ca0
6,973
py
Python
campaign/backends/mailgun_api.py
tiktn/django-campaign
7f6872a39d1b70d968a2384a6af87e7760fbca51
[ "BSD-3-Clause" ]
53
2015-01-28T09:42:57.000Z
2022-03-26T15:32:16.000Z
campaign/backends/mailgun_api.py
tiktn/django-campaign
7f6872a39d1b70d968a2384a6af87e7760fbca51
[ "BSD-3-Clause" ]
20
2015-02-11T02:47:12.000Z
2022-03-18T03:06:54.000Z
campaign/backends/mailgun_api.py
tiktn/django-campaign
7f6872a39d1b70d968a2384a6af87e7760fbca51
[ "BSD-3-Clause" ]
25
2015-04-29T15:55:17.000Z
2022-01-21T15:46:51.000Z
from __future__ import unicode_literals import logging import json import requests from django.template import Context from django.conf import settings from django.urls import reverse from django.contrib.sites.models import Site from django import template from campaign.backends.base import BaseBackend from campaign.c...
37.28877
122
0.625699
6,546
0.938764
0
0
0
0
0
0
2,715
0.389359
33f262ac354b5b387c54d37c6e16bd4e1f39f3dc
1,444
py
Python
GUI_tkinter_all/gui_oop_intro.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
GUI_tkinter_all/gui_oop_intro.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
GUI_tkinter_all/gui_oop_intro.py
dogancantorun8/python-application
3ef972e52bb6950108cde36974ceaf5c3cde3667
[ "MIT" ]
null
null
null
import tkinter as tk class GUI: def __init__(self,master): self.master=master #penceremin ustundeki configler icin master tanımımı kullandım self.label_name=tk.Label(master,text='Adı soyadı:',font=('Arial',10)) self.label_name.place(x=10,y=10) #text fieldlerdan tkinter uygulamala...
39.027027
111
0.707756
1,226
0.838577
0
0
0
0
0
0
527
0.360465
33f2a1181b60f50c26fb109838c1de75fa98f910
160
py
Python
services/scheduler/src/api/routes.py
dmenezesgabriel/celery-task-scheduler
9f4cc02e0bb884bae2e86d89c3841dea6b9d726e
[ "MIT" ]
null
null
null
services/scheduler/src/api/routes.py
dmenezesgabriel/celery-task-scheduler
9f4cc02e0bb884bae2e86d89c3841dea6b9d726e
[ "MIT" ]
11
2020-09-15T12:15:51.000Z
2020-11-03T01:18:46.000Z
services/scheduler/src/api/routes.py
dmenezesgabriel/celery-task-scheduler
9f4cc02e0bb884bae2e86d89c3841dea6b9d726e
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify bp = Blueprint("api", __name__, url_prefix="/api") @bp.route("/hello") def hello(): return jsonify("Hello, World!")
17.777778
50
0.68125
0
0
0
0
68
0.425
0
0
34
0.2125
33f3de99c68b0762c69ffc423533d91bb34f53c2
4,053
py
Python
Function/local_functions_20200813.py
JoneYu45/Global_investigation
2d9d86111517919d1581d35f34c425f4fda729c0
[ "MIT" ]
null
null
null
Function/local_functions_20200813.py
JoneYu45/Global_investigation
2d9d86111517919d1581d35f34c425f4fda729c0
[ "MIT" ]
null
null
null
Function/local_functions_20200813.py
JoneYu45/Global_investigation
2d9d86111517919d1581d35f34c425f4fda729c0
[ "MIT" ]
null
null
null
#Import modules import numpy as np from sklearn.linear_model import ElasticNetCV import pandas as pd import time from joblib import Parallel, delayed import multiprocessing #Define functions def make_weights(E_dist, theta): w = [np.exp(-1 * theta * E_dist[i] / np.mean(E_dist)) for i in range(E_dist.shape[0])] ...
44.538462
120
0.635332
0
0
0
0
0
0
0
0
618
0.15248
33f3e2d22b81c258c7bdcf256c47921cf209baa9
16,634
py
Python
tests/asr/test_speech_commands.py
borisdayma/NeMo
88f6c5b93574adb219185d5ded14b6393c485ea0
[ "Apache-2.0" ]
null
null
null
tests/asr/test_speech_commands.py
borisdayma/NeMo
88f6c5b93574adb219185d5ded14b6393c485ea0
[ "Apache-2.0" ]
null
null
null
tests/asr/test_speech_commands.py
borisdayma/NeMo
88f6c5b93574adb219185d5ded14b6393c485ea0
[ "Apache-2.0" ]
null
null
null
# ! /usr/bin/python # -*- coding: utf-8 -*- # Copyright 2020 NVIDIA. 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 #...
41.899244
116
0.639113
15,552
0.934953
0
0
1,116
0.067091
0
0
3,672
0.220753
33f4d47972d31539ed3a98ea5f8f901bb19e8986
2,314
py
Python
sympycore/polynomials/tests/test_algebra.py
radovankavicky/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
96
2015-01-25T05:59:56.000Z
2021-12-29T14:05:22.000Z
sympycore/polynomials/tests/test_algebra.py
1zinnur9/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
3
2015-12-17T19:25:46.000Z
2018-06-19T07:05:20.000Z
sympycore/polynomials/tests/test_algebra.py
1zinnur9/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
36
2016-01-31T15:22:01.000Z
2021-03-29T07:03:07.000Z
from sympycore import * P = PolynomialRing def test_default_ring(): r = repr(P.convert(0)) assert r=="PolynomialRing('0')", r assert P.zero==P.convert(0) assert str(0)=='0' assert `P.convert(2)`=="PolynomialRing('2')",repr(P.convert(2)) def test_X(): X = PolynomialRing['x'] C = X.convert...
39.896552
97
0.474071
0
0
0
0
0
0
0
0
859
0.371219
33f527e6618f06c1a9c11b30446518af5b81e11c
594
py
Python
locale/pot/api/core/pointsets-7.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/core/pointsets-7.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/core/pointsets-7.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Label the Z position values = grid.points[:, 2] # Create plotting class and add the unstructured grid plotter = pv.Plotter() # color mesh according to z value plotter.add_mesh(grid, scalars=values, scalar_bar_args={'title': 'Z Position'}, show_edges=True) # Add labels to points on ...
31.263158
75
0.675084
0
0
0
0
0
0
0
0
236
0.397306
33f6489ece71e9453add661efec4fd1216138fa6
5,676
py
Python
paasta_tools/native_mesos_scheduler.py
yuanxu-li/paasta
5b04f45659293f873c65111a9d1d0909aeed4019
[ "Apache-2.0" ]
null
null
null
paasta_tools/native_mesos_scheduler.py
yuanxu-li/paasta
5b04f45659293f873c65111a9d1d0909aeed4019
[ "Apache-2.0" ]
null
null
null
paasta_tools/native_mesos_scheduler.py
yuanxu-li/paasta
5b04f45659293f873c65111a9d1d0909aeed4019
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import sys import time from time import sleep from typing import Optional from typing import Sequence from typing import Tuple from paasta_tools import mesos_tools from paasta_tools.frameworks.native_scheduler import create_driver from paasta_tools.frameworks.native_scheduler impo...
39.692308
109
0.713354
0
0
0
0
0
0
0
0
1,017
0.179175
33f7e13a9320dff2213752e8e1f1ef5a669b102b
1,070
py
Python
chapter8/8_25Creating Cached Instances/8_25.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
chapter8/8_25Creating Cached Instances/8_25.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
chapter8/8_25Creating Cached Instances/8_25.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
''' weakref weakref.WeakValueDictionary ''' import logging a = logging.getLogger('foo') b = logging.getLogger('bar') print( a is b ) c = logging.getLogger('foo') print( a is c ) #True.same name logger is same instance # The class in question class Spam: def __init__(self, name): self.name = name # Caching...
21.4
55
0.626168
435
0.406542
0
0
0
0
0
0
192
0.179439
33f8b719e9ba98ddfcaba344177eff9b1a186f00
841
py
Python
setup.py
danielkanzel/my_friend
f26b6d73211128128a3a70b9705881059f794959
[ "Unlicense" ]
null
null
null
setup.py
danielkanzel/my_friend
f26b6d73211128128a3a70b9705881059f794959
[ "Unlicense" ]
null
null
null
setup.py
danielkanzel/my_friend
f26b6d73211128128a3a70b9705881059f794959
[ "Unlicense" ]
null
null
null
from setuptools import setup, find_packages setup(name='my_friend', version='0.1', description="Python library to make my days better", long_description='just 4 lulz', classifiers=[], keywords='', author='Daniel Kanzel', author_email='danersow@gmail.com', url='', l...
30.035714
63
0.602854
0
0
0
0
0
0
0
0
462
0.549346
33f9fcd070c093507534268a7e91b68253af14f5
1,254
py
Python
inventory/settings/production.py
cnobile2012/inventory
bc09ccdead39a5cd758088dbfe5c56dec43c7e29
[ "MIT" ]
10
2015-02-16T17:12:44.000Z
2021-06-04T18:14:01.000Z
inventory/settings/production.py
cnobile2012/inventory
bc09ccdead39a5cd758088dbfe5c56dec43c7e29
[ "MIT" ]
1
2021-09-20T01:17:38.000Z
2021-09-20T01:17:50.000Z
inventory/settings/production.py
cnobile2012/inventory
bc09ccdead39a5cd758088dbfe5c56dec43c7e29
[ "MIT" ]
5
2015-09-09T02:01:33.000Z
2021-05-29T09:09:14.000Z
from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'inventory', 'USER': 'inventory', 'PASSWORD': 'inventory', 'HOST': 'localhost', 'PORT': '', } } #KEY_PREFIX = 'prod' #KEY_FUNCTION = 'testsite.common.cachi...
26.125
78
0.650718
0
0
0
0
0
0
0
0
671
0.535088
33fca6b803aa07b91cf3c576d1059df9cb579535
3,986
py
Python
console.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
39
2017-02-27T15:21:21.000Z
2021-12-31T03:23:43.000Z
console.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
18
2017-07-09T00:16:28.000Z
2021-12-03T21:01:38.000Z
console.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
25
2017-03-05T07:59:34.000Z
2021-12-15T15:22:58.000Z
import subprocess import platform from os import linesep from time import sleep from pyspectator.convert import UnitByte CLEAR_CMD = 'cls' if platform.system() == 'Windows' else 'clear' def clear(): subprocess.call(CLEAR_CMD, shell=True) def print_hr(space_before=False, space_after=False): before = linese...
33.779661
79
0.607627
759
0.190369
0
0
720
0.180587
0
0
743
0.186356
33fd0062b63d3540dad25bfc41a907a035a81d4c
95
py
Python
tests/scripts/python2-test.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
112
2019-10-29T10:36:20.000Z
2020-12-19T08:08:27.000Z
tests/scripts/python2-test.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
53
2020-12-29T07:52:40.000Z
2022-03-31T10:11:54.000Z
tests/scripts/python2-test.py
Honzys/clearml-agent
f58071fc74e2df9bdba8ca91569e0bfd70ad4f46
[ "Apache-2.0" ]
29
2019-10-29T13:06:29.000Z
2020-12-19T08:09:24.000Z
def main(): assert 1 / 2 == 0 print('success') if __name__ == "__main__": main()
11.875
26
0.526316
0
0
0
0
0
0
0
0
19
0.2
33feab5aa973cfa55aca4928158ae51920e92f2e
11,500
py
Python
scripts/bert/conversion_tools/convert_paddle_to_gluon.py
zburning/gluon-nlp
101ce13bad3c26c802a4ff8ef47954fd2d0555d2
[ "Apache-2.0" ]
7
2019-12-05T02:49:07.000Z
2020-08-17T01:11:59.000Z
scripts/bert/conversion_tools/convert_paddle_to_gluon.py
zburning/gluon-nlp
101ce13bad3c26c802a4ff8ef47954fd2d0555d2
[ "Apache-2.0" ]
null
null
null
scripts/bert/conversion_tools/convert_paddle_to_gluon.py
zburning/gluon-nlp
101ce13bad3c26c802a4ff8ef47954fd2d0555d2
[ "Apache-2.0" ]
3
2021-03-12T04:41:00.000Z
2021-03-12T04:41:24.000Z
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Li...
44.921875
101
0.670783
0
0
0
0
0
0
0
0
3,926
0.341391
33fece3a93d648aa9dc2fd580f1e130193907359
1,065
py
Python
django-rgd-imagery/rgd_imagery/admin/processed.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
3
2020-03-10T14:47:07.000Z
2020-05-05T16:55:27.000Z
django-rgd-imagery/rgd_imagery/admin/processed.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
13
2020-04-14T14:36:06.000Z
2020-05-07T15:03:42.000Z
django-rgd-imagery/rgd_imagery/admin/processed.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
1
2020-03-03T15:47:52.000Z
2020-03-03T15:47:52.000Z
from django.contrib import admin from django.contrib.gis.admin import OSMGeoAdmin from rgd.admin.mixins import MODIFIABLE_FILTERS, TASK_EVENT_FILTERS, TASK_EVENT_READONLY, reprocess from rgd_imagery.models import ProcessedImage, ProcessedImageGroup class ProcessedImageAdmin(admin.StackedInline): model = Processed...
27.307692
99
0.687324
773
0.725822
0
0
347
0.325822
0
0
138
0.129577
d50148ac813ac58f82fe3db88377732cbe72a00c
137
py
Python
PythonExercicios/02-dados-e-contas/ex006.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
PythonExercicios/02-dados-e-contas/ex006.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
PythonExercicios/02-dados-e-contas/ex006.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
n = int(input('Digite um número: ')) print('O dobro é {}.\nO triplo é {}.\nA raiz quadrada é {:.2f}'.format(n * 2, n * 3, n ** (1/2)))
45.666667
98
0.540146
0
0
0
0
0
0
0
0
81
0.574468
d5036b24bf1ba9544ffa7388314b414500db5c1b
7,755
py
Python
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ """ C4705586 - Altering connections on graph nodes appropriately updates component properties C22715182 - Compo...
46.437126
155
0.680206
6,534
0.842553
0
0
6,760
0.871696
0
0
3,856
0.497228
d507acaa5ff799bb80d565eb8620d6d539f4af7e
115
py
Python
src/files_manip.py
TaySai/First_python
507734bce57afac5cdf1b29d59f8e2e824bc0f75
[ "MIT" ]
null
null
null
src/files_manip.py
TaySai/First_python
507734bce57afac5cdf1b29d59f8e2e824bc0f75
[ "MIT" ]
null
null
null
src/files_manip.py
TaySai/First_python
507734bce57afac5cdf1b29d59f8e2e824bc0f75
[ "MIT" ]
null
null
null
import csv with open('int.csv') as my_file: read = csv.reader(my_file) for row in read: print(row)
19.166667
32
0.626087
0
0
0
0
0
0
0
0
9
0.078261
d5081bfdbd40201a1c5ee69971c996b644b8d536
1,657
py
Python
main.py
RSA-TEMPZ/VIEW-RACKS
9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7
[ "Apache-2.0" ]
null
null
null
main.py
RSA-TEMPZ/VIEW-RACKS
9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7
[ "Apache-2.0" ]
null
null
null
main.py
RSA-TEMPZ/VIEW-RACKS
9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7
[ "Apache-2.0" ]
null
null
null
#imports import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys #variables #these variables will be #changed by the input funcation Timer = 3 link = '' views = 10 print('''____________________________________________________ ...
33.816327
87
0.491249
0
0
0
0
0
0
0
0
1,275
0.765766
d50957df3bce439392a340db63f7eed8100060ea
835
py
Python
applications/graphpipe/graphpipe_demo.py
StijnMatsHendriks/adversarial_attack_demo
956fd8a96c0c8abf1f4a3e0ffb9d83eeda79b8ff
[ "MIT" ]
819
2019-06-10T08:33:28.000Z
2022-03-29T10:55:25.000Z
applications/graphpipe/graphpipe_demo.py
awesomemachinelearning/AdvBox
ff784e90f107a43afdbec826c7e5365b9db90750
[ "Apache-2.0" ]
38
2019-07-11T01:57:41.000Z
2022-03-15T06:59:21.000Z
applications/graphpipe/graphpipe_demo.py
awesomemachinelearning/AdvBox
ff784e90f107a43afdbec826c7e5365b9db90750
[ "Apache-2.0" ]
167
2019-06-12T09:11:34.000Z
2022-03-28T15:54:46.000Z
#coding=utf-8 #graphpipe官网的一个例子 #https://oracle.github.io/graphpipe/#/guide/user-guide/quickstart #pip install graphpipe #pip install pillow # needed for image manipulation ''' #服务器端启动方式为: docker run -it --rm \ -e https_proxy=${https_proxy} \ -p 9000:9000 \ sleepsonthefloor/graphpipe-tf:cpu \ --mo...
23.857143
75
0.71018
0
0
0
0
0
0
0
0
521
0.59954
d509cf67293f1735e6d0859807c6de2afbabf6e9
164
py
Python
model/group.py
KlimenkovDM/Python_for_Test
29ec28f4d424514a674ce1fccb69494095e2e300
[ "Apache-2.0" ]
null
null
null
model/group.py
KlimenkovDM/Python_for_Test
29ec28f4d424514a674ce1fccb69494095e2e300
[ "Apache-2.0" ]
null
null
null
model/group.py
KlimenkovDM/Python_for_Test
29ec28f4d424514a674ce1fccb69494095e2e300
[ "Apache-2.0" ]
null
null
null
class Group: def __init__(self,name = None, header = None, footer = None): Group.name = name Group.header = header Group.footer = footer
32.8
65
0.609756
164
1
0
0
0
0
0
0
0
0
d50a6ea2da3b7fcb7f431124f710d9fb773bb4c9
142
py
Python
Homework/Lesson_8/seventh.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
Homework/Lesson_8/seventh.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
Homework/Lesson_8/seventh.py
Torkvamedo/smx
a5aef4f430f56ac67100c505902f55e18fba5978
[ "Unlicense" ]
null
null
null
import math def is_prime(n): if (math.factorial(n-1)+1) % n!=0: print ("NO") else: print ("YES") print(is_prime(13))
15.777778
38
0.535211
0
0
0
0
0
0
0
0
9
0.06338
d50abffcd18bed58f6c21161425b857656235845
2,170
py
Python
test/scenario_pubsub.py
coopernurse/radiator
85e88fd7055e287c506405f9e5a34e6ddadf3d45
[ "MIT" ]
5
2015-06-26T03:26:18.000Z
2018-02-21T17:07:37.000Z
test/scenario_pubsub.py
coopernurse/radiator
85e88fd7055e287c506405f9e5a34e6ddadf3d45
[ "MIT" ]
null
null
null
test/scenario_pubsub.py
coopernurse/radiator
85e88fd7055e287c506405f9e5a34e6ddadf3d45
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Basic: 1 topic, 50 consumer/producer clients # - Each consumer writes 10 messages # - Each consumer gets all 10 messages # - 1 consumer unsubs # - 1 more message sent # - Only the remaining 9 clients get the msg # import time import helper from radiator import Broker consumers =...
24.659091
80
0.611982
730
0.336406
0
0
0
0
0
0
431
0.198618
d50cfe4b7fdff37beacd8c1bde6eb8b8d4fb26b2
429
py
Python
checkpasssword.py
Davidzhaojb/Python
68e0f8cce2e30bcce9baf95fc992e3916835da60
[ "MIT" ]
null
null
null
checkpasssword.py
Davidzhaojb/Python
68e0f8cce2e30bcce9baf95fc992e3916835da60
[ "MIT" ]
null
null
null
checkpasssword.py
Davidzhaojb/Python
68e0f8cce2e30bcce9baf95fc992e3916835da60
[ "MIT" ]
null
null
null
# 设计一个验证用户密码程序,用户只有三次机会输入错误,不过如果用户输入的内容中包含"*"则不计算在内。#设计一个验证用户密码程序,用户只有三次机会输入错误,不过如果用户输入的内容中包含"*"则不计算在内。 # 次数 count = 3 # 密码 password = "fishc" while count: Password = input("请输入密码:") if Password == password: print("密码输入正确") break elif '*' in Password: print("密码中不能包含'*',请重新输入,您还有",cou...
23.833333
103
0.610723
0
0
0
0
0
0
0
0
468
0.656381
d50d4d535730a15821107b585fb0b70fbba86f4a
2,567
py
Python
sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
1
2020-05-04T09:58:07.000Z
2020-05-04T09:58:07.000Z
sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
2
2020-04-21T02:32:32.000Z
2020-04-21T19:37:54.000Z
sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
4
2020-07-31T10:39:22.000Z
2021-11-10T08:14:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
35.164384
90
0.664979
1,889
0.735878
0
0
0
0
0
0
1,234
0.480717
d50d9e2ca679df89c4e0a95ae7adb1bc28f9bbe3
4,126
py
Python
pyclustering/cluster/mbsas.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/cluster/mbsas.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/cluster/mbsas.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Cluster analysis algorithm: MBSAS (Modified Basic Sequential Algorithmic Scheme). @details Implementation based on paper @cite book::pattern_recognition::2009. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ from pyclustering.core.mbsas_wrapper import mbsas ...
34.966102
140
0.676442
3,683
0.892632
0
0
0
0
0
0
2,549
0.61779
d50db675488cc0120d66ef219cb9713d49a77950
126
py
Python
core/models/py_utils/__init__.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
1
2020-12-03T03:07:15.000Z
2020-12-03T03:07:15.000Z
core/models/py_utils/__init__.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
1
2019-08-23T09:27:33.000Z
2019-08-29T01:46:12.000Z
core/models/py_utils/__init__.py
OctopusRice/LineNet
a03ce3bf741dc497ae6bc680cd779128bda1a34b
[ "BSD-3-Clause" ]
null
null
null
from ._cpools import TopPool, BottomPool, LeftPool, RightPool from ._cpools_lines import HorizontalLinePool, VerticalLinePool
42
63
0.857143
0
0
0
0
0
0
0
0
0
0
d50e06f01333daeea1620e158ae353617743fd95
2,306
py
Python
activitysim/example/extensions/data_exchange.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
activitysim/example/extensions/data_exchange.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
activitysim/example/extensions/data_exchange.py
ual/DOE-repo-deliverable
4bafdd9a702a9a6466dd32ae62f440644d735d3c
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd # system vars path_to_usim = '/home/mgardner/src/bayarea_urbansim/' usim_data_dir = 'data/' usim_output_dir = 'output/' usim_h5_file = '2015_09_01_bayarea_v3.h5' path_to_asim = '/home/mgardner/src/activitysim/' asim_data_dir = 'example/data/' asim_h5_file = 'mtc_asim.h5' # load both data stores us...
41.927273
88
0.793148
0
0
0
0
0
0
0
0
715
0.310061
d50e1c7d8231edcbe1246f3d5ced5e7928184531
433
py
Python
loader/__init__.py
mmendiet/gate-decorator-pruning
ebff861626296638619f48cdf0ff8bf3c5eccc2f
[ "Apache-2.0" ]
192
2019-09-18T10:02:16.000Z
2022-03-24T16:31:18.000Z
loader/__init__.py
pawopawo/gate-decorator-pruning
d89021802fa56b1eba97921db3d8cadcacdd2073
[ "Apache-2.0" ]
25
2019-09-24T10:53:51.000Z
2022-01-18T07:13:52.000Z
loader/__init__.py
pawopawo/gate-decorator-pruning
d89021802fa56b1eba97921db3d8cadcacdd2073
[ "Apache-2.0" ]
33
2019-09-19T02:21:58.000Z
2022-03-31T10:04:20.000Z
import torchvision from torch.utils.data import DataLoader from torchvision import transforms from PIL import Image from config import cfg from loader.cifar10 import get_cifar10 from loader.cifar100 import get_cifar100 from loader.imagenet import get_imagenet def get_loader(): pair = { 'cifar10': get_cif...
21.65
40
0.741339
0
0
0
0
0
0
0
0
29
0.066975
d50e3f18bc5365f3dc7c9e1baf034077011723f5
970
py
Python
project_watson/utils.py
alexisgourdol/project_watson
706378a51833534b5188ca705054074ec2bc4ee2
[ "MIT" ]
3
2020-09-07T09:06:30.000Z
2020-09-22T10:27:26.000Z
project_watson/utils.py
alexisgourdol/project_watson
706378a51833534b5188ca705054074ec2bc4ee2
[ "MIT" ]
6
2020-09-07T09:42:54.000Z
2020-09-14T10:23:36.000Z
project_watson/utils.py
alexisgourdol/project_watson
706378a51833534b5188ca705054074ec2bc4ee2
[ "MIT" ]
null
null
null
import time ################ # DECORATORS # ################ def simple_time_tracker(method): """Time tracker to check the fitting times when training the models.""" def timed(*args, **kw): ts = time.time() result = method(*args, **kw) te = time.time() if "log_time" in kw: ...
28.529412
83
0.570103
0
0
0
0
0
0
0
0
304
0.313402
d50e69416441ec59cb3e6ea30d341781ca743940
2,712
py
Python
libs/environments/gym.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
libs/environments/gym.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
libs/environments/gym.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
import gym from gym.envs.registration import register from bark_ml.environments.single_agent_runtime import SingleAgentRuntime from bark_ml.environments.blueprints.highway.highway import DiscreteHighwayBlueprint from bark_ml.environments.blueprints.merging.merging import DiscreteMergingBlueprint from bark_ml.environm...
38.197183
99
0.643068
1,887
0.695796
0
0
65
0.023968
0
0
224
0.082596
d50f0b1b425f7055c0a2f622927cba3c742a11b0
805
py
Python
openapi_core/schema/security_schemes/models.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/security_schemes/models.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/security_schemes/models.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
1
2022-01-19T21:23:56.000Z
2022-01-19T21:23:56.000Z
"""OpenAPI core security schemes models module""" from openapi_core.schema.security_schemes.enums import ( SecuritySchemeType, ApiKeyLocation, HttpAuthScheme, ) class SecurityScheme(object): """Represents an OpenAPI Security Scheme.""" def __init__( self, scheme_type, description=None, name=N...
35
75
0.695652
637
0.791304
0
0
0
0
0
0
93
0.115528
d50f3f6b4b82627008988bf45869e704015aa14c
3,589
py
Python
3_prg/4_py/84_dat/panTut10.py
wobweger/wro-h-base
a826227534fb3b74b45a9bea1651c403a0d1502d
[ "MIT" ]
null
null
null
3_prg/4_py/84_dat/panTut10.py
wobweger/wro-h-base
a826227534fb3b74b45a9bea1651c403a0d1502d
[ "MIT" ]
null
null
null
3_prg/4_py/84_dat/panTut10.py
wobweger/wro-h-base
a826227534fb3b74b45a9bea1651c403a0d1502d
[ "MIT" ]
null
null
null
# gotten from https://pbpython.com/improve-pandas-excel-output.html """ Show examples of modifying the Excel output generated by pandas """ import pandas as pd import numpy as np from xlsxwriter.utility import xl_rowcol_to_cell df = pd.read_excel("../in/excel-comp-datav2.xlsx") # We need the number of rows in order...
35.534653
80
0.665924
0
0
0
0
0
0
0
0
1,626
0.453051
d51062e86ee2d313db17fee23177b0806f0fa5c7
895
py
Python
tests/test_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
1
2021-08-04T05:09:16.000Z
2021-08-04T05:09:16.000Z
tests/test_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
4
2021-08-16T07:15:10.000Z
2021-09-04T08:47:47.000Z
tests/test_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
1
2021-08-04T05:09:13.000Z
2021-08-04T05:09:13.000Z
import numpy as np import numpy.testing as npt import riip from riip.formulas import formulas_cython_dict, formulas_numpy_dict def test_cython_formulas(): rid = riip.RiiDataFrame() fbps = { 1: ("MgAl2O4", "Tropf"), 2: ("Ar", "Borzsonyi"), 3: ("methanol", "Moutzouris"), 4: ("Ba...
28.870968
67
0.52514
0
0
0
0
0
0
0
0
190
0.212054
d513f0b0b3497bbfb312c51c5f45c22bee83ba8e
470
py
Python
tests/data/build/cost-wheelchair.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
4
2019-04-24T16:38:57.000Z
2021-12-28T20:38:08.000Z
tests/data/build/cost-wheelchair.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
3
2021-06-02T04:06:33.000Z
2021-11-02T01:47:20.000Z
tests/data/build/cost-wheelchair.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
1
2020-08-13T04:42:05.000Z
2020-08-13T04:42:05.000Z
def cost_fun_generator(avoidCurbs=True, uphill=0.083, downhill=-0.1): def cost_fun(u, v, d): # No curb ramps? No route if d["footway"] == "crossing" and not d["curbramps"]: return None # Too steep? if d["incline"] is not None: if d["incline"] > uphill or d["in...
29.375
69
0.534043
0
0
0
0
0
0
0
0
110
0.234043
1d108170bdbd66d850dc91b904933812c15cd5c8
6,823
py
Python
checkers/gallery/checker.py
vient/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
2
2020-04-22T19:36:16.000Z
2020-09-16T07:45:54.000Z
checkers/gallery/checker.py
vient/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
3
2021-03-31T19:21:51.000Z
2021-06-08T20:31:48.000Z
checkers/gallery/checker.py
leetchicken/proctf-2019
b7b954fff2396a7a7a83c90ec55d75bce4a3485c
[ "MIT" ]
3
2019-10-26T00:25:03.000Z
2019-11-23T21:10:10.000Z
#!/usr/bin/env python3 import sys import requests import hashlib import random import re import functools import time import json import pathlib import base64 import traceback import PIL.Image from io import BytesIO from Crypto.PublicKey import RSA from Crypto.Signature import PKCS1_v1_5 from Crypto.Hash import SHA25...
28.668067
100
0.651913
0
0
0
0
0
0
0
0
1,270
0.186135
1d10c3897441cb862e73f1ef89704a35b6ac4a35
1,569
py
Python
plenum/test/monitoring/test_monitoring_params_with_zfn.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
1
2019-03-19T23:44:56.000Z
2019-03-19T23:44:56.000Z
plenum/test/monitoring/test_monitoring_params_with_zfn.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
1
2019-03-20T14:57:22.000Z
2019-03-20T15:01:55.000Z
plenum/test/monitoring/test_monitoring_params_with_zfn.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
null
null
null
import pytest from plenum.common.throughput_measurements import RevivalSpikeResistantEMAThroughputMeasurement from plenum.test.helper import get_key_from_req nodeCount = 7 @pytest.fixture(scope="module") def tconf(tconf): old_throughput_measurement_class = tconf.throughput_measurement_class old_throughput_m...
36.488372
95
0.753346
0
0
520
0.331421
552
0.351816
0
0
66
0.042065
1d10fc4b27b6136c47a7bdee2bd28cad40658f1e
1,929
py
Python
oolearning/model_wrappers/RidgeRegressor.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
1
2020-10-09T09:11:46.000Z
2020-10-09T09:11:46.000Z
oolearning/model_wrappers/RidgeRegressor.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
48
2018-04-09T01:30:31.000Z
2021-06-13T03:25:59.000Z
oolearning/model_wrappers/RidgeRegressor.py
shane-kercheval/oo-learning
9e3ebe5f7460179e23f6801bc01f1114bb896dea
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.linear_model import Ridge from oolearning.model_wrappers.HyperParamsBase import HyperParamsBase from oolearning.model_wrappers.ModelExceptions import MissingValueError from oolearning.model_wrappers.ModelWrapperBase import ModelWrapperBase from oolearning.model_wrapp...
32.694915
109
0.67548
1,547
0.80197
0
0
63
0.032659
0
0
305
0.158113
1d11f267496db1cb326dde77871d125bf62ade88
190
py
Python
contest/abc140/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc140/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc140/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
n = int(input()) b = list(map(int, input().split())) ans = [0] * n ans[0] = b[0] ans[1] = b[0] for i in range(1, n - 1): ans[i] = min(ans[i], b[i]) ans[i + 1] = b[i] print(sum(ans))
19
35
0.484211
0
0
0
0
0
0
0
0
0
0
1d134a402fc45bc125b2b0be81bcc29b582b22ee
59
py
Python
mangrove/utils/__init__.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/utils/__init__.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/utils/__init__.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
from google_spreadsheets import GoogleSpreadsheetsClient
14.75
56
0.898305
0
0
0
0
0
0
0
0
0
0
1d13ffdd92866e672e85c762c9e0524a6d8a8a21
801
py
Python
orcamentos/crm/tests/_test_model_seller.py
rg3915/orcamentos
5cd8c4f6cbeabeb5e069c58f583c38f44c3af99a
[ "MIT" ]
94
2016-01-27T14:35:05.000Z
2022-02-22T00:01:02.000Z
orcamentos/crm/tests/_test_model_seller.py
pliniocefet/orcamentos
b84eaad7dbc49cb3ad13e037b12074b466b70a70
[ "MIT" ]
96
2015-07-31T21:50:28.000Z
2021-06-24T15:31:10.000Z
orcamentos/crm/tests/_test_model_seller.py
pliniocefet/orcamentos
b84eaad7dbc49cb3ad13e037b12074b466b70a70
[ "MIT" ]
43
2015-07-28T12:09:48.000Z
2021-08-06T18:20:55.000Z
from django.test import TestCase from django.contrib.auth.models import User from orcamentos.crm.models import Employee, Occupation from .data import USER_DICT # , SELLER_DICT # class SellerTest(TestCase): # def setUp(self): # self.user = User.objects.create(**USER_DICT) # self.occupation = Occu...
33.375
81
0.684145
0
0
0
0
0
0
0
0
620
0.774032
1d15e7acb91ccd3de12d84ce5f5173fde7c621a7
73
py
Python
python/api/pocapi/settings.py
osl-incubator/poc-api-multi-language
79bcac5684f7c8397434d3efe55bc95d5791b967
[ "MIT" ]
null
null
null
python/api/pocapi/settings.py
osl-incubator/poc-api-multi-language
79bcac5684f7c8397434d3efe55bc95d5791b967
[ "MIT" ]
null
null
null
python/api/pocapi/settings.py
osl-incubator/poc-api-multi-language
79bcac5684f7c8397434d3efe55bc95d5791b967
[ "MIT" ]
1
2022-03-23T04:48:51.000Z
2022-03-23T04:48:51.000Z
import os POCAPI_URL = os.getenv("POCAPI_URL", "http://localhost:6666")
18.25
61
0.726027
0
0
0
0
0
0
0
0
35
0.479452
1d164d92f8df106a33e5db8f4a80c18b71d6631d
692
py
Python
Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/binary-tree-level-order-traversal-ii/ from typing import List from collections import deque class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def levelOrderBottom(self,...
23.862069
69
0.559249
561
0.810694
0
0
0
0
0
0
69
0.099711
1d1678d331abf9de5f08c748bfc58f17ba31170e
51
py
Python
sets1.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
1
2018-07-02T03:37:03.000Z
2018-07-02T03:37:03.000Z
sets1.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
null
null
null
sets1.py
Kalpavrikshika/python_modules
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
[ "Apache-2.0" ]
null
null
null
a_set = {'red', 'blue', 'green'} print(type(a_set))
25.5
32
0.607843
0
0
0
0
0
0
0
0
18
0.352941
1d187bbc7e5fa4b6e07de45ddf33ac96bec48eae
393
py
Python
venta/urls.py
cor14095/backGaresa
6dffcff513c1812a88315d16303b90996f6b98d7
[ "MIT" ]
null
null
null
venta/urls.py
cor14095/backGaresa
6dffcff513c1812a88315d16303b90996f6b98d7
[ "MIT" ]
null
null
null
venta/urls.py
cor14095/backGaresa
6dffcff513c1812a88315d16303b90996f6b98d7
[ "MIT" ]
1
2021-08-09T00:55:17.000Z
2021-08-09T00:55:17.000Z
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from .views import SalesViewSet urlpatterns = [ path('', SalesViewSet.as_view({'get': 'listcode'})), path('forecast/', SalesViewSet.as_view({'get': 'forecast'})), path('product_factor/', SalesViewSet.as_view({'get': ...
35.727273
77
0.745547
0
0
0
0
0
0
0
0
81
0.206107
1d19cd709d43bcc2b8f554495c58d5b7a1afce89
5,453
py
Python
rl_1.py
canbefine/CO2-heat-pump-system-optimization
253b54b5bdfafbfde4776f0226e79e290fce43a9
[ "MIT" ]
1
2021-11-15T17:32:11.000Z
2021-11-15T17:32:11.000Z
rl_1.py
canbefine/CO2-heat-pump-system-optimization
253b54b5bdfafbfde4776f0226e79e290fce43a9
[ "MIT" ]
null
null
null
rl_1.py
canbefine/CO2-heat-pump-system-optimization
253b54b5bdfafbfde4776f0226e79e290fce43a9
[ "MIT" ]
1
2021-07-03T13:19:12.000Z
2021-07-03T13:19:12.000Z
""" Note: This is a updated version from my previous code, for the target network, I use moving average to soft replace target parameters instead using assign function. By doing this, it has 20% speed up on my machine (CPU). Deep Deterministic Policy Gradient (DDPG), Reinforcement Learning. DDPG is Actor Critic ba...
42.271318
113
0.61269
4,436
0.813497
0
0
0
0
0
0
1,319
0.241885